Skip to content

Instantly share code, notes, and snippets.

View fzero's full-sized avatar

Fabio Neves fzero

View GitHub Profile
@fzero
fzero / 1 Preferences.sublime-settings.js
Last active December 18, 2015 15:49
My Sublime Text 2 user configs.
{
"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":
[
],

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 July 16, 2014 03:41
.vimrc.after - My VIM configs on top of Janus
" 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 August 29, 2015 14:18
wav1644.sh - Converts .wav files to 16bits/44khz (CD quality)
#!/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 / gitprompt.sh
Last active March 27, 2017 15:19
Bash prompt customizations for git use
# 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 {
@fzero
fzero / pgfix.md
Created December 7, 2016 16:42
Fix Postgres encoding issue

Is you attempt to do a bin/rails db:setup or something similar and it complains like this:

PG::InvalidParameterValue: ERROR:  encoding "UTF8" does not match locale "en_US"
DETAIL:  The chosen LC_CTYPE setting requires encoding "LATIN1".

Run these commands in your Vagrant box:

@fzero
fzero / keymap.cson
Created January 24, 2017 20:26
Fix atom keymap with vim-mode-plus
'atom-text-editor.vim-mode-plus':
'ctrl-c': 'core:copy'
'ctrl-x': 'core:cut'
'ctrl-v': 'core:paste'
'atom-text-editor.vim-mode-plus.insert-mode':
'ctrl-c': 'core:copy'
'ctrl-x': 'core:cut'
'ctrl-v': 'core:paste'
@fzero
fzero / voice-recog.js
Last active January 9, 2023 16:25
Google Voice Recognition API example
// We've followed documentation links and played with the example code a bit:
// Start here: https://cloud.google.com/speech
// If you need an audio editor, try Audacity:
// https://www.audacityteam.org
//
// usage: node voice-recog.js soundfile.flac en-US
//
// The second argument is the language code (e.g. en-US, pt-BR, fr-CA...)
@fzero
fzero / 0README.md
Last active May 22, 2018 16:17
RBC - Lecture notes - May 22, 2018

Intro to CSS

This is the code we've worked on during May 22 class. Feel free to use it as reference!

@fzero
fzero / 0README.md
Last active May 24, 2018 20:01
RBC Frontend fundamentals - Flexbox