Keybase proof
I hereby claim:
- I am fzero on github.
- I am fzero (https://keybase.io/fzero) on keybase.
- I have a public key whose fingerprint is DA0C 9E5A 7876 3F73 7259 40E4 11E4 861C C844 D066
To claim this, I am signing this object:
| # Git prompt goodness, adapted and curated from several sources. | |
| # Just add this code to your .bash_profile/.bashrc to use it. | |
| # | |
| # It looks like this: | |
| # ~/my/folder(my-git-branch)$ | |
| # | |
| # There are variations if there are untracked files (a + will appear), uncommited changes | |
| # (branch colour turns yellow) and if you need to pull/push (arrows will appear). | |
| function parse_git_branch { |
| #!/bin/bash | |
| # wav1644.sh - Converts .wav files to 16bits/44khz (CD quality) | |
| # Many iPad audio apps need this, and it's a good size/quality ratio for | |
| # uncompressed audio anyway. Fuck Neil Young and other clueless audiophiles. | |
| # Download this to somewhere in your $PATH and make it exectutable with | |
| # chmod a+x wav1644.sh | |
| # WAV conversion function - uses ffmpeg | |
| function convertwav { |
| " Customizations | |
| if has("gui_macvim") | |
| " Get rid of toolbar buttons | |
| set go=egmrLi | |
| let macvim_hig_shift_movement=1 | |
| endif | |
| let g:solarized_termcolors=256 | |
| set t_Co=256 | |
| set background=dark |
I hereby claim:
To claim this, I am signing this object:
| { | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
| "ensure_newline_at_eof_on_save": true, | |
| "font_face": "Fantasque Sans Mono", // http://openfontlibrary.org/en/font/fantasque-sans-mono | |
| "font_size": 14.0, | |
| "highlight_line": true, | |
| "ignored_packages": | |
| [ | |
| ], |
Example OAuth callbacks as received by the omniauth gem for Twitter, Tumblr and Instagram. The respective plugins are:
Depending on what you want to do, you may simply ignore everything in the extra key. The important information is always inside info and credentials. See the auth hash schema page for more info.
Fabio Neves (fzero)
Maybe you're listening to your favourite song on Rdio, or maybe checking your Soundcloud stream. You reach for the play/pause key on your keyboard and BAM, motherfucking iTunes comes up. Don't you hate that? I do.
Luckily, there's a way to fix it. Open your terminal and type:
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
Voilà, iTunes no longer responds to the media keys. The only downside is that now iTunes doesn't respond to the media keys at all. I couldn't care less, but if you're a crazy person who actually likes iTunes (poor you!), you can reattach the keys at any time with:
| # I prefer ctrl-a - helps when dealing with machines that only have Screen | |
| unbind C-b | |
| set -g prefix C-a | |
| # Making windows purrty | |
| set-window-option -g status-bg cyan | |
| set-window-option -g status-fg black | |
| set-window-option -g window-status-current-bg black | |
| set-window-option -g window-status-current-fg white |
| #!/usr/bin/env ruby | |
| # Dependencies: wget and the following gems: | |
| require 'rubygems' | |
| require 'feedzirra' | |
| require 'httparty' | |
| feed_url = 'http://feeds.xlr8r.com/xlr8rmp3s' | |
| feed = Feedzirra::Feed.fetch_and_parse(feed_url) |
| #!/bin/bash | |
| # Halt on all errors | |
| set -e | |
| # Check for size parameter and display usage if needed | |
| if [ "$1" == "" ]; then | |
| printf "\nRamdisk - creates a RAM disk (what else?)\n\n" | |
| printf "Usage: ramdisk <size in MB>\n\n" | |
| exit 1 |