diff --git a/config.toml b/config.toml index dcb1bee..39471c5 100644 --- a/config.toml +++ b/config.toml @@ -5,6 +5,10 @@ compile_sass = true highlight_code = true generate_rss = true +taxonomies = [ + { name = "tags", rss = true } +] + [extra] nav_links = [ { url = "/pages/about", text = "about" }, diff --git a/content/2018-02-01-my-new-life-stack.md b/content/2018-02-01-my-new-life-stack.md index 5942642..8cfa41b 100644 --- a/content/2018-02-01-my-new-life-stack.md +++ b/content/2018-02-01-my-new-life-stack.md @@ -2,7 +2,8 @@ title = "my new life stack" date = 2018-02-01 -tags = ["life", "technology"] +[taxonomies] +tags = ["arch", "linux", "life"] +++ This is my first post on my new blog! I used to put a CTF challenge writeup here but decided to change it up a bit. Recently, I've been changing a lot of the technology that I use day to day. Here's some of the changes that I've made! @@ -12,11 +13,11 @@ This is my first post on my new blog! I used to put a CTF challenge writeup here I've ran regular Ubuntu on my laptop for a while, then switched to Elementary OS, which I found a lot more pleasing to use. After using Elementary OS for about 6 months, some of the software on my computer started behaving strangely, and I decided it was time for some change. ``` -# michael @ arch in ~ [3:20:09] +# michael @ arch in ~ [3:20:09] $ screenfetch - -` + -` .o+` michael@arch - `ooo/ OS: Arch Linux + `ooo/ OS: Arch Linux `+oooo: Kernel: x86_64 Linux 4.14.15-1-ARCH `+oooooo: Uptime: 6h 3m -+oooooo+: Packages: 546 @@ -26,11 +27,11 @@ $ screenfetch `/+++ooooooooooooo/` CPU: Intel Core i7-6500U @ 4x 3.1GHz [37.0°C] ./ooosssso++osssssso+` GPU: intel .oossssso-````/ossssss+` RAM: 2963MiB / 7872MiB - -osssssso. :ssssssso. - :osssssss/ osssso+++. - /ossssssss/ +ssssooo/- - `/ossssso+/:- -:/+osssso+- - `+sso+:-` `.-/+oso: + -osssssso. :ssssssso. + :osssssss/ osssso+++. + /ossssssss/ +ssssooo/- + `/ossssso+/:- -:/+osssso+- + `+sso+:-` `.-/+oso: `++:. `-/+/ .` `/ @@ -54,4 +55,4 @@ I used to use Chromium, and ..I still do. I've tried several alternatives, like ## Personal Server -I got a droplet off DigitalOcean for hosting things that I regularly depend on. In fact, this blog (running Ghost) is hosted there now! I'm also hosting a Git server over at [https://git.mzhang.me](https://git.mzhang.me). It's running Gitea, a Go-based GitHub alternative. This doesn't mean I'm completely ditching GitHub, I just have things that I _really_ want to keep private, private. \ No newline at end of file +I got a droplet off DigitalOcean for hosting things that I regularly depend on. In fact, this blog (running Ghost) is hosted there now! I'm also hosting a Git server over at [https://git.mzhang.me](https://git.mzhang.me). It's running Gitea, a Go-based GitHub alternative. This doesn't mean I'm completely ditching GitHub, I just have things that I _really_ want to keep private, private. diff --git a/content/2018-02-25-cleaning-up-your-shell.md b/content/2018-02-25-cleaning-up-your-shell.md index 8ac18d8..d376a6f 100644 --- a/content/2018-02-25-cleaning-up-your-shell.md +++ b/content/2018-02-25-cleaning-up-your-shell.md @@ -2,11 +2,12 @@ title = "cleaning up your shell" date = 2018-02-25 -tags = ["technology", "shell"] +[taxonomies] +tags = ["bash", "zsh", "oh-my-zsh"] +++ Is your shell loading slower than it used to? Maybe you've been sticking a bit more into your `.bashrc`/`.zshrc` than you thought. It's only been a couple weeks since I installed my computer, and already my shell has been starting to lag. Since there's not that much I've put into my `.zshrc` file, I knew who the main culprits were. Namely, oh-my-zsh's "git" plugin and the nvm (node version manager) trying to load itself on startup. I'm not exactly in a situation where I need nvm most of the time I open my shell, so getting rid of that made my shell load a lot faster. It also means that every time I want to use node or npm, I'd have to manually call nvm, but that's not as important to me as a faster shell load time, especially since I don't really touch node that much. -One trick you can use to see what scripts are being called at startup is the `-x` option (stands for xtrace) that popular shells like `bash` and `zsh` support. If you go into your shell and run `set -o xtrace`, you'll see it start to spit out some bash commands; this is the list of everything that is being run when your shell starts. You might find that some apps take a ridiculous amount of time to start up. These are some of the things you'd want to eliminate. \ No newline at end of file +One trick you can use to see what scripts are being called at startup is the `-x` option (stands for xtrace) that popular shells like `bash` and `zsh` support. If you go into your shell and run `set -o xtrace`, you'll see it start to spit out some bash commands; this is the list of everything that is being run when your shell starts. You might find that some apps take a ridiculous amount of time to start up. These are some of the things you'd want to eliminate. diff --git a/content/2018-04-23-fixing-tmux-colors.md b/content/2018-04-23-fixing-tmux-colors.md index b97e76c..96e325e 100644 --- a/content/2018-04-23-fixing-tmux-colors.md +++ b/content/2018-04-23-fixing-tmux-colors.md @@ -2,7 +2,8 @@ title = "fixing tmux colors" date = 2018-04-23 -tags = ["technology", "shell"] +[taxonomies] +tags = ["tmux", "terminal"] +++ Put this in your `~/.tmux.conf`. @@ -11,4 +12,4 @@ Put this in your `~/.tmux.conf`. set -g default-terminal "screen-256color" ``` -If this isn't set properly, tmux usually assumes 16-color mode, which displays colors probably not like what you're used to. \ No newline at end of file +If this isn't set properly, tmux usually assumes 16-color mode, which displays colors probably not like what you're used to. diff --git a/content/2018-05-28-web-apps.md b/content/2018-05-28-web-apps.md index 0d844c1..76b93c9 100644 --- a/content/2018-05-28-web-apps.md +++ b/content/2018-05-28-web-apps.md @@ -2,7 +2,8 @@ title = "web apps" date = 2018-05-28 -tags = ["technology", "opinion"] +[taxonomies] +tags = ["javascript", "web", "rant"] +++ The other day, I just turned off JavaScript from my browser. "fucking neckbeard", "you'll turn it back in 2 weeks", "living without JavaScript is like living without electricity" were some of the responses I got. And they might be right. But let's see why things are the way they are and what we can do about it. @@ -44,4 +45,4 @@ I'm helping with a project called flubber, which originated as an IRC bouncer, b And of course, I've disabled JavaScript in my browser. -\ thanks for reading! \ No newline at end of file +\ thanks for reading! diff --git a/content/2018-10-18-weechat-relay.md b/content/2018-10-18-weechat-relay.md index c01a633..d86c648 100644 --- a/content/2018-10-18-weechat-relay.md +++ b/content/2018-10-18-weechat-relay.md @@ -2,7 +2,8 @@ title = "setting up irc with weechat" date = 2018-10-18 -tags = ["technology", "irc"] +[taxonomies] +tags = ["irc", "life"] +++ I've just recently discovered that weechat has a "relay" mode, which means it can act as a relay server to other clients (for example, my phone). If I leave an instance of weechat running on, say, my server that's always running, it can act as a bouncer and my phone can receive notifications for highlights as well. @@ -83,4 +84,4 @@ That's it! If you're also using the android app to connect, just type in your ho [2]: https://github.com/ubergeek42/weechat-android [3]: https://www.weechat.org/files/doc/stable/weechat_user.en.html#relay_commands [4]: https://letsencrypt.org/ -[5]: https://www.glowing-bear.org/ \ No newline at end of file +[5]: https://www.glowing-bear.org/ diff --git a/content/2018-10-26-twenty-years-of-rsa-attacks.md b/content/2018-10-26-twenty-years-of-rsa-attacks.md index 4b1e56d..8c9f69e 100644 --- a/content/2018-10-26-twenty-years-of-rsa-attacks.md +++ b/content/2018-10-26-twenty-years-of-rsa-attacks.md @@ -2,7 +2,8 @@ title = "twenty years of attacks on rsa.. with examples!" date = 2018-10-26 -tags = ["rsa", "cryptography"] +[taxonomies] +tags = ["rsa", "math", "crypto", "python"] [extra] toc = true diff --git a/content/2019-02-01-magic-forms-with-proc-macros.md b/content/2019-02-01-magic-forms-with-proc-macros.md index db78c9a..f9acce0 100644 --- a/content/2019-02-01-magic-forms-with-proc-macros.md +++ b/content/2019-02-01-magic-forms-with-proc-macros.md @@ -2,7 +2,8 @@ title = "magic forms with proc macros: ideas" date = 2019-02-01 -tags = ["rust"] +[taxonomies] +tags = ["rust", "web", "macros"] +++ Procedural macros (proc macros for short) in Rust are incredible because they allow pre-compile source transformation. Many of the greatest abstractions in Rust take advantage of this feature. For example, you can diff --git a/static/resume.json b/static/resume.json index d2ab007..33bc549 100644 --- a/static/resume.json +++ b/static/resume.json @@ -25,5 +25,5 @@ "language": "English", "fluency": "Native speaker" } - ], -} \ No newline at end of file + ] +} diff --git a/templates/layout.html b/templates/layout.html index aded6f1..9f894e0 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -19,6 +19,7 @@

+ tags · all pages

diff --git a/templates/tags/list.html b/templates/tags/list.html new file mode 100644 index 0000000..0d85e12 --- /dev/null +++ b/templates/tags/list.html @@ -0,0 +1,14 @@ +{% extends "layout.html" %} + +{% block title %} + tags - {{ config.title }} +{% endblock %} + +{% block content %} +

tags

+

+ {% for term in terms %} + {{ term.name }} + {% endfor %} +

+{% endblock %} diff --git a/templates/tags/single.html b/templates/tags/single.html new file mode 100644 index 0000000..5690144 --- /dev/null +++ b/templates/tags/single.html @@ -0,0 +1,13 @@ +{% extends "layout.html" %} +{% import "macros/blog.html" as blog %} + +{% block title %} + articles under {{ term.name }} - {{ config.title }} +{% endblock %} + +{% block content %} + « back to tags +

articles under {{ term.name }}

+

+ {{ blog::postlisting(posts=term.pages) }} +{% endblock %}