Skip to content

Instantly share code, notes, and snippets.

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

Kalen KalenAnson

🏞️
Building.
View GitHub Profile
# 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 / 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

@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 / 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
# 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]

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