Skip to content

Instantly share code, notes, and snippets.

View eighteyes's full-sized avatar
💭
Building the Future With Friends

Sean Canton eighteyes

💭
Building the Future With Friends
  • Eight Eyes Creations
  • Earth (Sol)
  • 23:37 (UTC -07:00)
View GitHub Profile
@eighteyes
eighteyes / .todoisht
Created March 8, 2016 18:10
System Of Random Todos
# Cleaning
Laundry
Box Pile
Floor Wires
alc video setup
empty moving boxes
clean work area
start keyboard desk
start monitor desk
# Creative
@eighteyes
eighteyes / new_gist_file_0
Created January 13, 2016 21:49
Cross Volume Fix for Docker Compose Volumes
# Add /Volumes mount in Virtualbox
sudo mkdir /Volumes;sudo mount -t vboxsf volumes /Volumes
@eighteyes
eighteyes / new_gist_file
Last active October 5, 2023 19:27
Big List of Git Aliases
# git
alias glm='log --graph --abbrev-commit --decorate --date=relative --format=format:"%C(yellow)%h%C(reset) - %C(blue)(%ar)%C(reset)%C(dim white) %an%C(reset) %C(white)%s%C(reset) %C(auto)%d%C(reset)" --all'
#this branch story
function __gbstory(){
git log --graph --oneline --decorate --all $1 HEAD;
}
alias gbstory=__gbstory
@eighteyes
eighteyes / 0_reuse_code.js
Created October 19, 2015 18:42
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@eighteyes
eighteyes / auth.js
Created May 15, 2015 14:48
Express Auth 1 Liner
app.use(require('basic-auth-connect')('admin', '1234'));
@eighteyes
eighteyes / pianowig.js
Created March 12, 2014 19:18
Transform Velocity from PianoTeq to use in BitWig setVelocityTranslationTable
var input = "Velocity = [0, 48, 57, 65, 108, 127; 0, 32, 64, 96, 127, 127]";
input = input.replace(/[a-z\]\[=]/ig, '');
var special = input.split(';')[0].split(',');
var normal = input.split(';')[1].split(',');
var special = [0, 48, 57, 65, 108, 127];
var normal = [ 0, 32, 64, 96, 127, 127];
console.log(special,normal);
@eighteyes
eighteyes / grid.styl
Last active August 29, 2015 13:56
Stylus Generated Grid System
makeGridWidth(a, b)
c=round((b/a)*10000)/100
unit(c,'%')
// partial are the column sizes
// whole is the entire column width size
// so to do a 50% > .g-1-2, a 33% > .g-1-3
// feel free to modify these numbers as needed
.grid
width:100%
@eighteyes
eighteyes / gist:6444286
Created September 4, 2013 23:43
Performance Measure JS
var start = performance.timing.fetchStart, obj = {}; for (var i in performance.timing){ obj[i] = performance.timing[i]-start }; console.log(obj)
@eighteyes
eighteyes / gist:6338656
Created August 26, 2013 06:46
single line of most expensive program
top -F -R -l2 -n 1 -o cpu | cut -c 1-31 | grep -v '0.0' | tail -n +23 | grep -v 'LIVE'