Skip to content

Instantly share code, notes, and snippets.

@benkahle
benkahle / contactSort.js
Created July 20, 2017 07:05
The quickest and dirtiest contact list de-dupe
const fs = require('fs')
const path = require('path')
const csv = require('csv')
const B = path.resolve('./bloodworks.csv')
const O = path.resolve('./obliteride.csv')
const bRem = path.resolve('./bloodworks_no_email.csv')
const bOut = path.resolve('./bloodworks_cleaned.csv')
const oRem = path.resolve('./obliteride_no_email.csv')
@benkahle
benkahle / keybase.md
Created February 3, 2017 04:33
Keybase proof for GitHub

Keybase proof

I hereby claim:

  • I am benkahle on github.
  • I am benkahle (https://keybase.io/benkahle) on keybase.
  • I have a public key ASD1s4s70ns3un6R_Rqp84mKLtZzu0n8VvSetchcc4rB6Qo

To claim this, I am signing this object:

@benkahle
benkahle / commonAppInstall.sh
Last active August 29, 2015 14:06
Fresh Linux - Application Installs
sudo apt-get update &&
sudo apt-get upgrade &&
#sublime-text-3
sudo add-apt-repository ppa:webupd8team/sublime-text-3 &&
sudo apt-get update &&
sudo apt-get install sublime-text-installer &&
#chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - &&
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' &&
sudo apt-get update &&
@benkahle
benkahle / bash_aliases
Created September 5, 2014 03:47
Common Bash Aliases
alias rp='ps -ef | grep'
alias js='node -i'
alias mat='matlab'
alias open='xdg-open'
alias ll='ls -lh'
alias la='ls -A'
alias gs='git status'
alias gsu='git status -uno'
#alias gp='git push'
alias gu='git pull'
@benkahle
benkahle / Ubuntu Start Up.md
Last active January 19, 2016 01:53
Ubuntu Start Up

#OS Installation

  1. Download ISO of Ubuntu 14.04 64bit from http://www.ubuntu.com/download/desktop (14.10 should work the same)
  2. Create bootable USB on Windows following this guide
  3. Plug in a bootable flash drive to laptop
  4. Restart computer and during BIOS hit F12
  5. Select Bios Setup
  6. Select boot configuration
  7. Move USB storage device to top priority
  8. Save and exit
@benkahle
benkahle / Port Redirecting
Last active August 29, 2015 14:04
Commands to set up port redirection on ubuntu
//list current rules
sudo iptables -t nat -L --line-numbers
//delete rule for port <n>
sudo iptables -t nat -D PREROUTING <n>
//redirect port 80 to port <n>
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port <n>
//Save settings (need package iptables-persistent installed)