Skip to content

Instantly share code, notes, and snippets.

@netmute
netmute / Monokai.itermcolors
Created December 2, 2011 16:26
iTerm Monokai Colorscheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.30093687772750854</real>
<key>Green Component</key>
<real>0.36639997363090515</real>
@netmute
netmute / Molokai.itermcolors
Created December 2, 2011 16:44
iTerm Molokai Colorscheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.48771023750305176</real>
<key>Green Component</key>
<real>0.48781105875968933</real>
@netmute
netmute / init.vim
Last active October 17, 2019 11:20
init.vim
" PLEASE NOTE: I'm assuming nvim defaults in this configuration.
" Regular vimmers might need to tweak here and there.
" Add autogenerated tags file to the lookup path.
set tags+=.git/tags
" Add fzf plugin.
set rtp+=/usr/local/opt/fzf
" Use a source for FZF that respects '.gitignore'.
@netmute
netmute / README.md
Last active October 27, 2022 13:22
Game of Life

Game of Life

An implementation of Conway's Game of Life in 140 characters of Ruby.

Author

Created by Simon Ernst (@sier).

@netmute
netmute / gist:2689625
Created May 13, 2012 18:26
Run a loop at defined intervals on Arduino.
/* Run a loop at defined intervals.
This was tested with an Arduino Uno.
Other boards might require tweaking of the boardFrequency constant.
*/
/* How many times per second timedLoop() gets executed */
int loopFrequency = 1;
void timedLoop() {
/* Do stuff. */
@netmute
netmute / config.fish
Last active October 17, 2019 11:28
fish config
# frees up ctrl-s and ctrl-q
stty -ixon -ixoff
# set the go path
set --export PATH $GOPATH/bin $PATH
# rbenv
status --is-interactive && source (rbenv init - | psub)
@netmute
netmute / spinner.sh
Last active September 3, 2015 16:39
a simple spinning animation for your shell scripts
#!/usr/bin/env bash
#
# a simple spinning animation for your shell scripts
# prints message in front of spinner
# - argument 1: the message to print
spinner_init() {
printf "$1 "
}
@netmute
netmute / error_handler.sh
Created October 23, 2015 14:02
bash error handler
#!/usr/bin/env bash
set -e
error_handler() {
local lineno="$1"
local message="$2"
if [[ -n "$message" ]]; then
echo "error on line $lineno: $message"
else