Skip to content

Instantly share code, notes, and snippets.

View gabeio's full-sized avatar

Gabe De Luca gabeio

View GitHub Profile
@gabeio
gabeio / gulpfile.js
Created February 7, 2015 20:17
yo-no-say
var del, gulp, gulpMocha, gulpLivescript, livescript, paths;
del = require('del');
gulp = require('gulp');
gulpMocha = require('gulp-mocha');
gulpLivescript = require('gulp-livescript');
livescript = gulpLivescript != null ? gulpLivescript : void 8;
paths = [
{
scripts: './src/*.ls',
tests: './test/*.ls'
@gabeio
gabeio / makeapp.sh
Last active August 29, 2015 14:14 — forked from demonbane/makeapp.sh
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name="$inputline"
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url="$inputline"
@gabeio
gabeio / amazon.js
Last active August 29, 2015 14:14
My Browser, Website Mods
window.location.href = window.location.href.split('www.amazon.com')[0]+"smile.amazon.com"+window.location.href.split('www.amazon.com')[1];
/*
moduble: setupDB.ls
Run this to setup the level db with arrays
*/
require! {
'levelup'
'leveldown'
'bcrypt'
}
@gabeio
gabeio / app.js
Last active August 29, 2015 14:12
bower static server
var express = require('express');
var serveStatic = require('serve-static');
var app = express();
app.use('/static', serveStatic(__dirname + '/public'));
app.use('/bower_components', serveStatic(__dirname + '/bower_components'));
if (process.env.HTTP != null || process.env.PORT != null) {
port = process.env.HTTP || process.env.PORT;
console.log('Server started on port ' + port + ' at ' + new Date(Date.now()));
server = app.listen(port);
} else {
@gabeio
gabeio / final.md
Last active August 29, 2015 14:11
Math 2526 Applied Statistics Study Guide
@gabeio
gabeio / bash.sh
Created November 15, 2014 20:23
Convert ISO to IMG for bootable usb drives
hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso
mv ~/path/to/target.img.dmg ~/path/to/target.img #hdiutil likes dmgs...
sudo dd if=~/path/to/target.img of=/dev/rdisk{int} #must be disk and not partition for bootable
@gabeio
gabeio / app.js
Created November 1, 2014 03:08
node kill switch
process.on('SIGINT', function() {
/* shutdown here */
})
#! /usr/bin/env python
import fileinput
import argparse
from operator import itemgetter
parser = argparse.ArgumentParser()
parser.add_argument('--target-mb', action = 'store', dest = 'target_mb', default = 61000, type = int)
parser.add_argument('vmtouch_output_file', action = 'store', nargs = '+')
args = parser.parse_args()
@gabeio
gabeio / LICENSE.txt
Created October 11, 2013 05:20 — forked from jed/LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE