Instantly share code, notes, and snippets.

View install_makemkv.sh
#!/bin/bash
set +x
set -e
sudo -v
pushd `mktemp -d`
wget "http://www.makemkv.com/download/makemkv-bin-1.9.10.tar.gz" "http://www.makemkv.com/download/makemkv-oss-1.9.10.tar.gz" "http://ffmpeg.org/releases/ffmpeg-3.0.2.tar.bz2"
View install_makemkv.sh
#!/bin/bash
set +x
set -e
sudo -v
sudo mount -o remount,size=2048M /tmp
pushd `mktemp -d`
View async-basics.js
// Time elapsed: 0µs
var a = 200000000000;
for (var i = 1000; i; i--){
a = a / 3;
}
// Time elapsed: 1µs, probably less
View gist:4272872
Applicant
Organization belongs to
Email
Starred?
Status
Attributes (hstore)
Added by (user)
Ddate
Cdate
Mdate
View HackerHire.md

HackerHire

Topics

Why "HackerHire"?

My closest friends are true hackers - curious people who love to create and to master tools and systems. It seemed like companies had no way of identifying these people - at the resume stage, they tend to look like crap early in their careers. So this is for them: they are the best, and we're giving companies x-ray vision.

Doesn't "hacker" carry negative connotations? Criminals, identity theft, etc.

View gist:4126850
[
{
path: "images/"
},
{
path: "images/asdf.png",
mimeType: "image/png"
},
{
path: "README",
View gist:4126770
{
label: "files",
children: [
{
label: "images",
children: [
View q-test.js
var q = require('q');
/*
* ncall / nbind test
*/
function simpleAdmin(callback) {
setTimeout(
function () {
console.log('nc admin ok');
callback();
View vmup.sh
# With Vmware Fusion bin path in $PATH...
alias vmup="vmrun -T fusion start $HOME/Documents/Virtual\ Machines.localized/$VMIMAGE.vmwarevm/$VMIMAGE.vmx nogui"
alias vmp="vmrun -T fusion pause $HOME/Documents/Virtual\ Machines.localized/$VMIMAGE.vmwarevm/$VMIMAGE.vmx"
alias vusu="ssh -A -l $VMUSER $VMIP"
View ps1.sh
function dirs_depth () {
echo `dirs -v | wc -l`
}
function parse_git_branch () {
BRANCH=$(git branch --no-color 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
BLEN=$(echo `echo $BRANCH | wc -c` " - 1" | bc)
echo $BRANCH | cut -c1 | sed -e "s/^./${BLEN}\0/"
}