Skip to content

Instantly share code, notes, and snippets.

View energee's full-sized avatar
:atom:
Coding

Ted Slesinski energee

:atom:
Coding
View GitHub Profile
@energee
energee / cabana-fingerprint.js
Last active August 20, 2019 07:23 — forked from gregjhogan/cabana-fingerprint.js
cabana fingerprint
const fs = require('fs');
const content = fs.readFileSync('./data.csv', 'utf8');
const messages = content
.split('\n')
.map(line => line.trim())
.filter(line => line.length > 0 && line !== 'time,addr,bus,data')
.map(line => line.split(','))
.map(msg => ({
addr: parseInt(msg[1]),
@energee
energee / cabana_fingerprint.js
Last active December 7, 2017 07:04 — forked from mcampa/cabana_fingerprint.js
cabana_fingerprint.js
const fs = require('fs');
const content = fs.readFileSync('./data.csv', 'utf8');
const data = content.trim()
.split('\n')
.filter(l => l)
.map(l => l.split(','))
.map(row => ({ time: row[0], id: `${row[2]}:${row[1]}`, message: row[3] }))
const ids = {};

Install OS X 10.10 Yosemite in VirtualBox

(based on this pastebin i've found via Google, markdownified and adjusted to work with the official Yosemite release)

Yosemite's first developer preview was released right after Monday's WWDC opening keynote. For the general public, an open beta will be available to download later this summer. However, for those who want a sneak peek at the new hotness, there is a way to safely install it without risking your machine, using the free and powerful VirtualBox application from Oracle.

(LEGAL DISCLAIMER: This guide aims to explain how to create a virtual machine on a regularly purchased Apple computer, running a genuine Mac OS X operating system, for testing purposes only.)

@energee
energee / live-git-pull-task.sh
Last active December 16, 2015 15:59 — forked from dkinzer/live-git-pull-task
Git live pull
#live git pull
drush dd @alias:%git-dir
drush dd @alias:%work-tree
drush @alias exec git fetch origin
drush @alias exec git merge origin/master
@energee
energee / gitlab.sh
Last active December 10, 2015 01:38 — forked from drucko/gitlab.sh
aptitude install -y git curl python-dev python-pip redis-server ruby1.9.3-full rubygems1.9.3
aptitude install -y mysql-server libmysqlclient-dev
adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git
adduser --disabled-login --gecos 'gitlab system' gitlab
usermod -a -G git gitlab
su - gitlab
ssh-keygen -q -N '' -t rsa -f /home/gitlab/.ssh/id_rsa
aptitude install gitolite
cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub
su - git
@energee
energee / appify
Created April 25, 2012 15:39 — forked from mathiasbynens/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh