Skip to content

Instantly share code, notes, and snippets.

Avatar

Fabio Neves fzero

View GitHub Profile
View keybase.md

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:

@fzero
fzero / .vimrc.after.vim
Created Jul 16, 2014
.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
endif
let g:solarized_termcolors=256
set t_Co=256
set background=dark
@fzero
fzero / wav1644.sh
Last active Aug 29, 2015
wav1644.sh - Converts .wav files to 16bits/44khz (CD quality)
View wav1644.sh
#!/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 {
@fzero
fzero / masstagger.sh
Created Jul 15, 2011
A quick automatic tagger for MP3 (uses eyeD3 - http://eyed3.nicfit.net)
View masstagger.sh
#!/bin/bash
# This expects files ordered like:
# Artist/Album/01 Track Title.mp3
#
# You should provide the dir containing the Artist dirs at the command line.
START="$1"
if [ "$START" == "" ]; then
@fzero
fzero / wp-upgrade.sh
Created Jul 15, 2011
Update several self-hosted Wordpress blogs at once on Dreamhost
View wp-upgrade.sh
#!/bin/bash
cd $HOME
# Add here every domain/folder where you have Wordpress installed.
# Dreamhost normally puts all domains on $HOME, so this is what I do.
DOMAINS="mydomain1.com mydomain2.com mydomain3.com"
# Add here any dirs, file patterns etc. that you don't want to backup before upgrading.
# These are MY settings; tweak according to your needs.
@fzero
fzero / gist:1111866
Created Jul 28, 2011
Vim: Remove trailing blanks from all lines in a file
View gist:1111866
" Removes trailing spaces
function TrimWhiteSpace()
%s/\s*$//
''
:endfunction
" Associates it with F2 key
map! <F2> :call TrimWhiteSpace()<CR>
@fzero
fzero / vimrc.after.vim
Last active Sep 26, 2015
My VIM customizations on top of Janus (https://github.com/carlhuda/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
endif
" Sets default colorscheme to Solarized and configures 256-color terminal.
set t_Co=256
let g:solarized_termcolors=256
@fzero
fzero / xlr8r.rb
Created Oct 31, 2012
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 = 'http://feeds.xlr8r.com/xlr8rmp3s'
feed = Feedzirra::Feed.fetch_and_parse(feed_url)
@fzero
fzero / dataoauth.md
Last active Dec 17, 2015
Example OAuth callbacks as received by the omniauth gem for Twitter, Tumblr and Instagram.
View dataoauth.md
@fzero
fzero / 1 Preferences.sublime-settings.js
Last active Dec 18, 2015
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", // http://openfontlibrary.org/en/font/fantasque-sans-mono
"font_size": 14.0,
"highlight_line": true,
"ignored_packages":
[
],