Update to jekyll 3.0

This commit is contained in:
Tyler Hallada 2016-02-03 12:53:10 -05:00
parent dc13fac7be
commit ed344e732f
6 changed files with 32 additions and 31 deletions

View File

@ -2,9 +2,11 @@ name: Tyler Hallada - Blog
description: Musings on technology, literature, and interesting topics description: Musings on technology, literature, and interesting topics
url: http://hallada.net/blog url: http://hallada.net/blog
assets: http://hallada.net/assets/ assets: http://hallada.net/assets/
markdown: redcarpet markdown: kramdown
highlighter: pygments kramdown:
syntax_highlighter: rouge
paginate: 10 paginate: 10
paginate_path: "blog/page:num" paginate_path: "blog/page:num"
gems: gems:
- jekyll-redirect-from - jekyll-redirect-from
- jekyll-paginate

View File

@ -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 intall it using your Linux distro's package manager. For Ubuntu, that would be
typing the following into your terminal: typing the following into your terminal:
```bash ~~~ bash
sudo apt-get install rtmpdump sudo apt-get install rtmpdump
``` ~~~
###Redirect ALL the RTMP!### ###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 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: 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 sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
``` ~~~
###Run rtmpsrv### ###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 performed earlier before you can do anything else, so run this in your
terminal: terminal:
```bash ~~~ bash
sudo iptables -t nat -D OUTPUT -p tcp --dport 1935 -j REDIRECT sudo iptables -t nat -D OUTPUT -p tcp --dport 1935 -j REDIRECT
``` ~~~
###Finally, Download the Precious Video### ###Finally, Download the Precious Video###

View File

@ -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 error in the comment uri cortex outputs that desktop reddit accepts but mobile
reddit 404s on). The script: reddit 404s on). The script:
```bash ~~~ bash
#!/bin/bash #!/bin/bash
args=() args=()
@ -64,7 +64,7 @@ for arg in "${args[@]}" ; do
w3m "${url}" w3m "${url}"
fi fi
done done
``` ~~~
Since I regurally use [Tmux](http://tmux.sourceforge.net/) (with Since I regurally use [Tmux](http://tmux.sourceforge.net/) (with
[Byobu](http://byobu.co/)), I also added an optional `-t`/`--tmux` switch that [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 I saved the script as `w3m-reddit` and made it an executable command. In Ubuntu
that's done with the following commands: that's done with the following commands:
```bash ~~~ bash
$ sudo mv w3m-reddit /usr/bin/ $ sudo mv w3m-reddit /usr/bin/
$ sudo chmod +x /usr/bin/w3m-reddit $ sudo chmod +x /usr/bin/w3m-reddit
``` ~~~
Now cortex needs to be configured to use `w3m-reddit`, and that's done by 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 setting `browser-command` in the cortex config at `~/.cortex/config` to

View File

@ -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): Save the following python file in `/usr/bin/` as `search-pane` (no extension):
```python ~~~ python
#!/usr/bin/python #!/usr/bin/python
from subprocess import call, check_output from subprocess import call, check_output
from threading import Thread from threading import Thread
@ -106,27 +106,27 @@ except Exception, errtxt:
print errtxt print errtxt
call(['w3m', url]) # pass url off to w3m call(['w3m', url]) # pass url off to w3m
``` ~~~
Make the directory and file for search history: Make the directory and file for search history:
```bash ~~~ bash
mkdir ~/.search-pane mkdir ~/.search-pane
touch ~/.search-pane/history touch ~/.search-pane/history
``` ~~~
Allow anyone to execute the python script (make it into a program): Allow anyone to execute the python script (make it into a program):
```bash ~~~ bash
chmod a+x /usr/bin/search-pane chmod a+x /usr/bin/search-pane
``` ~~~
To get quick access to the program from the command-line edit `~/.bashrc` to To get quick access to the program from the command-line edit `~/.bashrc` to
add: add:
```bash ~~~ bash
alias s='search-pane' alias s='search-pane'
``` ~~~
To add byobu key bindings edit `~/.byobu/keybindings.tmux` (or `/usr/share/byobu/keybindings/f-keys.tmux`): To add byobu key bindings edit `~/.byobu/keybindings.tmux` (or `/usr/share/byobu/keybindings/f-keys.tmux`):

View File

@ -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 Making vim dark is pretty easy. Just put this in the
[`.vimrc`](https://github.com/thallada/dotfiles/blob/master/vim/.vimrc): [`.vimrc`](https://github.com/thallada/dotfiles/blob/master/vim/.vimrc):
```vim ~~~ vim
set background=dark set background=dark
``` ~~~
I use the colorscheme I use the colorscheme
[distinguished](https://github.com/Lokaltog/vim-distinguished) which is [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) [`~/.vim/colors/`](https://github.com/thallada/dotfiles/tree/master/vim/.vim/colors)
and adding this to the `.vimrc`: and adding this to the `.vimrc`:
```vim ~~~ vim
colorscheme distinguished colorscheme distinguished
``` ~~~
###tmux/byobu### ###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 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. 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....)[/:]).*"){ @-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 Here is the list of dark themes I'm currently using with Stylish in addition to
Midnight Surfing Alternative: 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 made [a script that would disable redshift before
inverting](https://github.com/thallada/dotfiles/blob/master/invert/bin/invert). inverting](https://github.com/thallada/dotfiles/blob/master/invert/bin/invert).
```bash ~~~ bash
#!/bin/bash #!/bin/bash
inverted=$(xcalib -a -p | head -c 1) inverted=$(xcalib -a -p | head -c 1)
if [ "$inverted" == "W" ] if [ "$inverted" == "W" ]
@ -241,7 +241,7 @@ if [ "$inverted" == "W" ]
xrandr-invert-colors xrandr-invert-colors
fi fi
fi fi
``` ~~~
And, now I have [a And, now I have [a
@ -254,13 +254,13 @@ can fix that.
For firefox, I made a global userstyle to invert images and videos. For firefox, I made a global userstyle to invert images and videos.
```css ~~~ css
@-moz-document regexp("(https?|liberator|file)://(?!([^.]+\\.)?[/:]).*"){ @-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"] { 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%); filter: invert(100%);
} }
} }
``` ~~~
Whenever I invert the colors, I enable that global theme on firefox. Whenever I invert the colors, I enable that global theme on firefox.

View File

@ -1,5 +1,4 @@
--- ---
layout: none
redirect_from: "/rss" redirect_from: "/rss"
--- ---
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>