Skip to content

Instantly share code, notes, and snippets.

View KalenAnson's full-sized avatar
🏞️
Building.

Kalen KalenAnson

🏞️
Building.
View GitHub Profile

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

# temporarily disable Varnish
# to make it easier to test changes
Header add Cache-Control "max-age=1"
RewriteEngine On
# Existing files and directories remain accessible
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.* - [L]
@KalenAnson
KalenAnson / build-tmux-debian.sh
Last active August 29, 2015 14:23 — forked from niun/build-tmux-debian.sh
Build TMUX 1.9a on Debian Wheezy
#!/bin/bash
wget "https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz"
tar -xf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make
make verify
make install
@KalenAnson
KalenAnson / usbBootFromCLI.md
Last active August 29, 2015 14:26
Create a bootable usb drive from command line on a mac

Bootable USB From Image

  1. Convert the .iso to .img (A Debian install for example)

     hdiutil convert -format UDRW -o ~/path/to/output.img ~/path/to/input.iso
     mv ~/path/to/output.img.dmg ~/path/to/output.img
    
  2. Copy the image to the target device (/dev/disk3 for example)

     diskutil unmountDisk /dev/disk3
     sudo dd if=/path/to/output.img of=/dev/rdisk3 bs=1m
    
  3. Eject the disk

# Install Pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
# Add the following to `.vimrc`
" Start Pathogen
execute pathogen#infect()
# Now add Syntastic via Pathogen
cd ~/.vim/bundle && \
@KalenAnson
KalenAnson / installJava.sh
Last active October 4, 2015 05:27
Install Java 8 On Debian Jessie
#!/bin/bash
# ø
# Run this script as root
# Installs Java here: /usr/lib/jvm/java-8-oracle
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" > /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
apt-get update
apt-get -y install oracle-java8-installer
java -version
@KalenAnson
KalenAnson / xboxdrv.cfg
Created June 29, 2016 12:46
XBOXDRV Config
# xboxdrv config file
[xboxdrv]
ui-clear = true
[ui-axismap]
X1 = ABS_X
Y1 = ABS_Y
X2 = ABS_RX
Y2 = ABS_RY

Keybase proof

I hereby claim:

  • I am kalenanson on github.
  • I am kalen (https://keybase.io/kalen) on keybase.
  • I have a public key ASCZCQ-3YBeAFiB0gTxUuYL56wdDWavjg4jopR8egA5Gkgo

To claim this, I am signing this object:

@KalenAnson
KalenAnson / lagrange.js
Created September 28, 2016 19:12 — forked from maccesch/lagrange.js
Lagrange Polynomial Interpolation. Example: http://jsfiddle.net/maccesch/jgU3Y/
/**
* At least two points are needed to interpolate something.
* @class Lagrange polynomial interpolation.
* The computed interpolation polynomial will be reffered to as L(x).
* @example
* var l = new Lagrange(0, 0, 1, 1);
* var index = l.addPoint(0.5, 0.8);
* console.log(l.valueOf(0.1));
*
* l.changePoint(index, 0.5, 0.1);
@KalenAnson
KalenAnson / snippets.cson
Last active April 12, 2017 20:46
Atom snippets
# ø snippets
'.text.html.php':
'Classify':
'prefix': '..'
'body': '->'
'.source.c':
'Classify':
'prefix': '..'
'body': '->'
'*':