Skip to content

Instantly share code, notes, and snippets.

View fzero's full-sized avatar

Fabio Neves fzero

View GitHub Profile
fzero / .vimrc.after.vim
Created July 16, 2014 03:41
.vimrc.after - My VIM configs on top of Janus
View .vimrc.after.vim
" Customizations
if has("gui_macvim")
" Get rid of toolbar buttons
set go=egmrLi
let macvim_hig_shift_movement=1
let g:solarized_termcolors=256
set t_Co=256
set background=dark

Keybase proof

I hereby claim:

  • I am fzero on github.
  • I am 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:

fzero / 1 Preferences.sublime-settings.js
Last active December 18, 2015 15:49
My Sublime Text 2 user configs.
View 1 Preferences.sublime-settings.js
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"ensure_newline_at_eof_on_save": true,
"font_face": "Fantasque Sans Mono", //
"font_size": 14.0,
"highlight_line": true,
fzero /
Last active December 17, 2015 05:08
Example OAuth callbacks as received by the omniauth gem for Twitter, Tumblr and Instagram.
fzero / gist:5182483
Last active September 13, 2016 17:40
Detaching/reattaching Mac media keys to iTunes
View gist:5182483

You've been there...

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/

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:

fzero / 1 tmux.conf
Last active August 29, 2023 07:37
Some tmux configurations, scripts and aliases I use.
View 1 tmux.conf
# 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
fzero / xlr8r.rb
Created October 31, 2012 17:09
Downloads the latest MP3 from XLR8R
View xlr8r.rb
#!/usr/bin/env ruby
# Dependencies: wget and the following gems:
require 'rubygems'
require 'feedzirra'
require 'httparty'
feed_url = ''
feed = Feedzirra::Feed.fetch_and_parse(feed_url)
fzero /
Created August 24, 2012 15:05
Create a RAM Drive in OS X
# 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
fzero / 1
Last active August 4, 2021 00:06
My bash customizations with git-aware prompt and some aliases.
View 1
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Prompt goodness
# This is for my local machine, so I don't display the host to save space (I do on remote servers).
# It looks like this:
# ~/Code/some_dir(my-git-branch)$
fzero / vimrc.after.vim
Last active September 26, 2015 15:38
My VIM customizations on top of Janus ( - ~/.vimrc.after
View vimrc.after.vim
" Customizations
if has("gui_macvim")
" Get rid of toolbar buttons
set go=egmrLi
let macvim_hig_shift_movement=1
" Sets default colorscheme to Solarized and configures 256-color terminal.
set t_Co=256
let g:solarized_termcolors=256