diff --git a/_config.yml b/_config.yml index ba38a87..5b26820 100644 --- a/_config.yml +++ b/_config.yml @@ -2,9 +2,11 @@ name: Tyler Hallada - Blog description: Musings on technology, literature, and interesting topics url: http://hallada.net/blog assets: http://hallada.net/assets/ -markdown: redcarpet -highlighter: pygments +markdown: kramdown +kramdown: + syntax_highlighter: rouge paginate: 10 paginate_path: "blog/page:num" gems: - jekyll-redirect-from + - jekyll-paginate diff --git a/_posts/2013-04-18-how-download-rtmp-video.md b/_posts/2013-04-18-how-download-rtmp-video.md index ce1b545..494365e 100644 --- a/_posts/2013-04-18-how-download-rtmp-video.md +++ b/_posts/2013-04-18-how-download-rtmp-video.md @@ -43,9 +43,9 @@ This open source goodness can be found at intall it using your Linux distro's package manager. For Ubuntu, that would be typing the following into your terminal: -```bash +~~~ bash sudo apt-get install rtmpdump -``` +~~~ ###Redirect ALL the RTMP!### @@ -55,9 +55,9 @@ RTMP streaming video you try to watch on your computer, so make sure you run the undo command in one of the later steps to return things to normal). Type the following into your terminal, there should be no output from the command: -```bash +~~~ bash sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT -``` +~~~ ###Run rtmpsrv### @@ -93,9 +93,9 @@ You must undo the iptables redirection command we performed earlier before you can do anything else, so run this in your terminal: -```bash +~~~ bash sudo iptables -t nat -D OUTPUT -p tcp --dport 1935 -j REDIRECT -``` +~~~ ###Finally, Download the Precious Video### diff --git a/_posts/2013-06-04-w3m-reddit.md b/_posts/2013-06-04-w3m-reddit.md index c21aab3..885e47b 100644 --- a/_posts/2013-06-04-w3m-reddit.md +++ b/_posts/2013-06-04-w3m-reddit.md @@ -29,7 +29,7 @@ reddit urls before passing them to w3m (as well as fixing a double forward slash error in the comment uri cortex outputs that desktop reddit accepts but mobile reddit 404s on). The script: -```bash +~~~ bash #!/bin/bash args=() @@ -64,7 +64,7 @@ for arg in "${args[@]}" ; do w3m "${url}" fi done -``` +~~~ Since I regurally use [Tmux](http://tmux.sourceforge.net/) (with [Byobu](http://byobu.co/)), I also added an optional `-t`/`--tmux` switch that @@ -73,10 +73,10 @@ will open w3m in a temporary new tmux window that will close when w3m is closed. I saved the script as `w3m-reddit` and made it an executable command. In Ubuntu that's done with the following commands: -```bash +~~~ bash $ sudo mv w3m-reddit /usr/bin/ $ sudo chmod +x /usr/bin/w3m-reddit -``` +~~~ Now cortex needs to be configured to use `w3m-reddit`, and that's done by setting `browser-command` in the cortex config at `~/.cortex/config` to diff --git a/_posts/2013-07-10-quick-command-line-search-search-pane.md b/_posts/2013-07-10-quick-command-line-search-search-pane.md index 7a29704..0c359da 100644 --- a/_posts/2013-07-10-quick-command-line-search-search-pane.md +++ b/_posts/2013-07-10-quick-command-line-search-search-pane.md @@ -53,7 +53,7 @@ This is how I got it setup (on any Ubuntu machine with sudo privileges): Save the following python file in `/usr/bin/` as `search-pane` (no extension): -```python +~~~ python #!/usr/bin/python from subprocess import call, check_output from threading import Thread @@ -106,27 +106,27 @@ except Exception, errtxt: print errtxt call(['w3m', url]) # pass url off to w3m -``` +~~~ Make the directory and file for search history: -```bash +~~~ bash mkdir ~/.search-pane touch ~/.search-pane/history -``` +~~~ Allow anyone to execute the python script (make it into a program): -```bash +~~~ bash chmod a+x /usr/bin/search-pane -``` +~~~ To get quick access to the program from the command-line edit `~/.bashrc` to add: -```bash +~~~ bash alias s='search-pane' -``` +~~~ To add byobu key bindings edit `~/.byobu/keybindings.tmux` (or `/usr/share/byobu/keybindings/f-keys.tmux`): diff --git a/_posts/2015-06-03-midnight-desktop.md b/_posts/2015-06-03-midnight-desktop.md index 4a2698e..2f0f014 100644 --- a/_posts/2015-06-03-midnight-desktop.md +++ b/_posts/2015-06-03-midnight-desktop.md @@ -70,9 +70,9 @@ I can then map my hotkeys for starting a new terminal to the command Making vim dark is pretty easy. Just put this in the [`.vimrc`](https://github.com/thallada/dotfiles/blob/master/vim/.vimrc): -```vim +~~~ vim set background=dark -``` +~~~ I use the colorscheme [distinguished](https://github.com/Lokaltog/vim-distinguished) which is @@ -80,9 +80,9 @@ installed by putting the `distinguished.vim` file under [`~/.vim/colors/`](https://github.com/thallada/dotfiles/tree/master/vim/.vim/colors) and adding this to the `.vimrc`: -```vim +~~~ vim colorscheme distinguished -``` +~~~ ###tmux/byobu### @@ -141,9 +141,9 @@ edit](http://superuser.com/questions/463153/disable-stylish-on-certain-sites-in- Now, whenever I add a new dark theme to Stylish, I edit the regex to add the domains it covers to the parenthesized list that is delimited by pipes. -```css +~~~ css @-moz-document regexp("(https?|liberator|file)://(?!([^.]+\\.)?(maps\\.google\\.com|...other domains....)[/:]).*"){ -``` +~~~ Here is the list of dark themes I'm currently using with Stylish in addition to Midnight Surfing Alternative: @@ -221,7 +221,7 @@ The only problem was that this utility seemed to interfere with redshift, so I made [a script that would disable redshift before inverting](https://github.com/thallada/dotfiles/blob/master/invert/bin/invert). -```bash +~~~ bash #!/bin/bash inverted=$(xcalib -a -p | head -c 1) if [ "$inverted" == "W" ] @@ -241,7 +241,7 @@ if [ "$inverted" == "W" ] xrandr-invert-colors fi fi -``` +~~~ And, now I have [a @@ -254,13 +254,13 @@ can fix that. For firefox, I made a global userstyle to invert images and videos. -```css +~~~ css @-moz-document regexp("(https?|liberator|file)://(?!([^.]+\\.)?[/:]).*"){ img, video, div.html5-video-container, div.player-api, span.emoji, i.emoji, span.emoticon, object[type="application/x-shockwave-flash"], embed[type="application/x-shockwave-flash"] { filter: invert(100%); } } -``` +~~~ Whenever I invert the colors, I enable that global theme on firefox. diff --git a/feed.xml b/feed.xml index f6b6d1c..221419e 100644 --- a/feed.xml +++ b/feed.xml @@ -1,5 +1,4 @@ --- -layout: none redirect_from: "/rss" ---