Skip to content

Instantly share code, notes, and snippets.

View namick's full-sized avatar

nathan amick namick

View GitHub Profile
@namick
namick / keybase.md
Last active January 24, 2020 22:23

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAurZVJN2onopLd72rPy8P8Wv5rFZdDl3xD8vbHjTF1l7/cA99xK9GrB0gNCO/5CXD1ViK582BzyRPunVSs55tJnVHjKR+0WAfjnaxWF2swbrI/EGz0Y8yaSze4JBlRL89GQLTHCtNVRkut/BkxEadyTFT/l1tDlyz9H966t8clxR7WPTuGbmypvfZYGeGuhXc2agE+QJPy5ujza8a2wfuNaijhs4JcTxFOKu/+GtoUY3zUS2OS6o7of0Kw9nNoSa/dt6BIraOt9W8rtFVU4hS0ytVJ/jMhR9y9oe13ul6SUGTe5MxrzDP9fLm7fr4fBn4RBxXCpO/Ebp7y8xa0pYA0Q== namick@nv
@namick
namick / phantomjs-inator.md
Created March 23, 2013 15:59
Install phantomjs 1.8.1 on headless 64bit Ubuntu

Required by Phantomjs but not on some headless systems

apt-get -y install fontconfig

Download the pre-compiled binary for 64bit Ubuntu

cd /tmp
wget https://phantomjs.googlecode.com/files/phantomjs-1.8.1-linux-x86_64.tar.bz2

Extract it

@namick
namick / mintty-load-tango-palette.sh
Created February 17, 2012 22:50
Load the tango palette into cygwin mintty
# Load the tango palette into cygwin mintty
echo -ne '\e]4;0;#2E3436\a' # 0
echo -ne '\e]4;1;#CC0000\a' # 1
echo -ne '\e]4;2;#4E9A06\a' # 2
echo -ne '\e]4;3;#C4A000\a' # 3
echo -ne '\e]4;4;#3465A4\a' # 4
echo -ne '\e]4;5;#75507B\a' # 5
echo -ne '\e]4;6;#06989A\a' # 6
echo -ne '\e]4;7;#D3D7CF\a' # 7
echo -ne '\e]4;8;#555753\a' # 8
@namick
namick / install_vim_on_heroku
Last active February 14, 2017 15:41
Vim on Heroku
mkdir vim
curl https://s3.amazonaws.com/heroku-vim/vim-7.3.tar.gz --location --silent | tar xz -C vim
export PATH=$PATH:/app/vim/bin
export EDITOR=vim
IFS="$(printf '\n\t')"
if ! [[ -f ~/.ssh/authorized_keys ]]; then
echo "Creating new ~/.ssh/authorized_keys"
touch ~/.ssh/authorized_keys
fi
user=$1
keys=`curl https://api.github.com/users/$user/keys | grep -o -E "ssh-\w+\s+[^\"]+"`
@namick
namick / tech-screen.md
Created March 25, 2013 16:15
These are my responses to a tech screen questionnaire given to me recently.

Q: What is Big O (time complexity) of finding an element in hash table?

O(1)

Q: What is Big O (time complexity) of sorting an array?

O(n log n)

I had to look up answers for these two questions. I now (hopefully) understand big O to be a notation used to estimate an algorithm's relationship between the size of its input and its performance (speed in this case but could also be used to estimate disk space or another resource).

@namick
namick / resume.md
Created March 25, 2013 16:03
Relevant information for those who are considering employing me

Alternate Resume

Relevant information for those who are considering employing me.

If you like traditional looking resumes, check here.

What I do everyday

I code. Red, green, refactor. I love Vim, Ruby and Coffeescript.

@namick
namick / rbenv-inator.md
Created March 22, 2013 18:51
Install rbenv for ubuntu

Clone the repo into a hidden home directory

git clone git://github.com/sstephenson/rbenv.git ~/.rbenv

Add ~/.rbenv/bin to your $PATH for access to the rbenv command-line utility

echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile

Add rbenv init to your shell to enable shims and autocompletion.

@namick
namick / id_rsa.pub
Created March 22, 2013 13:32
all your base are belong to us
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAurZVJN2onopLd72rPy8P8Wv5rFZdDl3xD8vbHjTF1l7/cA99xK9GrB0gNCO/5CXD1ViK582BzyRPunVSs55tJnVHjKR+0WAfjnaxWF2swbrI/EGz0Y8yaSze4JBlRL89GQLTHCtNVRkut/BkxEadyTFT/l1tDlyz9H966t8clxR7WPTuGbmypvfZYGeGuhXc2agE+QJPy5ujza8a2wfuNaijhs4JcTxFOKu/+GtoUY3zUS2OS6o7of0Kw9nNoSa/dt6BIraOt9W8rtFVU4hS0ytVJ/jMhR9y9oe13ul6SUGTe5MxrzDP9fLm7fr4fBn4RBxXCpO/Ebp7y8xa0pYA0Q== n8@nathanamick.com