Skip to content

Instantly share code, notes, and snippets.

View canering's full-sized avatar

eg canering

View GitHub Profile
@canering
canering / hook_up_homebrew.sh
Created October 4, 2016 05:28 — forked from karmi/hook_up_homebrew.sh
Hook up your Homebrew installed with curl to your Github fork
# Install Homebrew
#
mkdir -p /usr/local
mkdir -p /usr/local/bin
sudo chown -R $USER /usr/local
cd $HOME && mkdir -p homebrew
curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew
ln -nfs $HOME/homebrew/bin/brew /usr/local/bin/
brew update
@canering
canering / install_brew.sh
Created October 4, 2016 05:25 — forked from jeremydw/install_brew.sh
Install Brew into your home directory
cd ~
mkdir homebrew && curl -L https://github.com/Homebrew/homebrew/tarball/master | tar xz --strip 1 -C homebrew
# Add the following to your .bash_profile
export PATH=$HOME/homebrew/bin:$PATH
sudo ln -s ~/homebrew/include/ /usr/local/include
sudo cp ~/homebrew/lib/lib* /usr/local/lib/
brew install redis
@canering
canering / brewinst.sh
Created October 4, 2016 05:24 — forked from lojikil/brewinst.sh
backup copy of a single-user `brew` installation
# change to whatever location to where homebrew is installed
if [ -z "$HOMEBREW_HOME" ]; then
export HOMEBREW_HOME=$HOME/homebrew
echo "HOMEBREW_HOME=$HOME/homebrew" >> ~/.profile
fi
# install homebrew for single user
if [ ! -d "$HOMEBREW_HOME" ]; then
mkdir -p $HOMEBREW_HOME && curl -L https://github.com/Homebrew/homebrew/tarball/master | tar xz --strip 1 -C $HOMEBREW_HOME
fi
curl -Lsf http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C/Users/murahashi/.homebrew
echo 'export PATH=$HOME/bin:$HOME/.homebrew/bin:/usr/local/bin:$PATH' >> ~/.bash_profile
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/
# core
brew install coreutils
# key commands
brew install binutils
brew install diffutils
brew install ed --default-names
brew install findutils --with-default-names
@canering
canering / osx-brew-gnu-coreutils-man.sh
Created October 1, 2016 10:18 — forked from quickshiftin/osx-brew-gnu-coreutils-man.sh
Running GNU coreutils via Homebrew on your Mac? Here's a one-liner to get the manpages working!
# Short of learning how to actually configure OSX, here's a hacky way to use
# GNU manpages for programs that are GNU ones, and fallback to OSX manpages otherwise
alias man='_() { echo $1; man -M $(brew --prefix)/opt/coreutils/libexec/gnuman $1 1>/dev/null 2>&1; if [ "$?" -eq 0 ]; then man -M $(brew --prefix)/opt/coreutils/libexec/gnuman $1; else man $1; fi }; _'
@canering
canering / arthur.itermcolors
Created September 30, 2016 21:29 — forked from wilhelm-murdoch/arthur.itermcolors
My personal fish shell setup for iTerm 2 ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.16470588743686676</real>
<key>Green Component</key>
<real>0.20784313976764679</real>
@canering
canering / The Technical Interview Cheat Sheet.md
Created September 30, 2016 09:31 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@canering
canering / osx_setup.md
Created September 30, 2016 09:27 — forked from millermedeiros/osx_setup.md
Mac OS X setup.

Setup Mac OS X Mountain Lion or Mavericks

Edit: I few months ago I got a new laptop and did the same thing on Mavericks.

I just replaced the hard drive of my mbp and decided to do a clean install of Mountain Lion (10.8.5) since I was still using Snow Leopard (10.6.8).

I kinda regret for not using Boxen to automate the

@canering
canering / happy_git_on_osx.md
Created September 30, 2016 06:07 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "[email protected]"