Skip to content

Instantly share code, notes, and snippets.

View kirk86's full-sized avatar

kirk86

View GitHub Profile
@kirk86
kirk86 / ipython-notebook.conf
Created October 24, 2015 00:41
ipython notebook upstart script for ubuntu
# to be put to "/etc/init/"
description "ipython"
start on runlevel [2345]
stop on runlevel [016]
respawn limit 10 5
script
exec sudo -u randy ipython notebook --profile=nbserver --ipython-dir=/home/randy/.ipython/
end script
@kirk86
kirk86 / ipython-notebook.conf
Created October 24, 2015 00:43 — forked from tinkerbotfoo/ipython-notebook.conf
ipython upstart script - Ubuntu 12.04 Precise. Put this file in the /etc/init folder to start ipython upon system booting
# IPython Notebook Launcher
# Adopted from the Rstudio upstart script
#
#
# upstart docs: http://upstart.ubuntu.com/getting-started.html
# http://manpages.ubuntu.com/manpages/karmic/man5/init.5.html
#
# (note that embedding a script and pre-start and post-start actions are supported)
#
@kirk86
kirk86 / python-on-ubuntu.sh
Created October 25, 2015 17:36 — forked from neuroticnerd/python-on-ubuntu.sh
Python 2.7.9 on Ubuntu 14.04.2 (without overwriting original version)
#! /usr/bin/env bash
# http://smirnov-am.blogspot.com/2015/04/installation-of-python-279-in-ubuntu.html
# http://davebehnke.com/python-pyenv-ubuntu.html
# https://renoirboulanger.com/blog/2015/04/upgrade-python-2-7-9-ubuntu-14-04-lts-making-deb-package/
# install dependencies
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
@kirk86
kirk86 / cheatsheet.md
Created October 29, 2015 19:21 — forked from ansantam/cheatsheet.md
Cheatsheet

Bash

Checkout a specific version

svn co <url> -r version

Redirect all the verbose to the /dev/null file.

The null device discards all data written to it but reports that the write operation has succeeded. Typically used for disposing of unwanted output streams of a process:

bash cheatsheet

some stuff I still need to memorize

c-a move to beginning of line

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@kirk86
kirk86 / Cheatsheet Tmux.md
Created October 29, 2015 19:23 — forked from RoXuS/Cheatsheet Tmux.md
Cheatsheet

vim cheatsheet

Delete newline

J

Go to require:

gf
@kirk86
kirk86 / bash-cheatsheet
Created October 29, 2015 19:24 — forked from ktychan/bash-cheatsheet
cheatsheets
____ _ ____ _ _ ____ _ _ _ _
| __ ) / \ / ___|| | | | / ___| |__ ___ __ _| |_ ___| |__ ___ ___| |_
| _ \ / _ \ \___ \| |_| | | | | '_ \ / _ \/ _` | __/ __| '_ \ / _ \/ _ \ __|
| |_) / ___ \ ___) | _ | | |___| | | | __/ (_| | |_\__ \ | | | __/ __/ |_
|____/_/ \_\____/|_| |_| \____|_| |_|\___|\__,_|\__|___/_| |_|\___|\___|\__|
kelvinchan.ca
Comparison
==========
@kirk86
kirk86 / git_cheatsheet.md
Created October 29, 2015 19:25 — forked from leommoore/git_cheatsheet.md
Git - Cheatsheet

#Git - Cheatsheet

###Create Repo git init

###Fork (Copy) existing Repo git clone repo name

###Branching You should create a branch per feature. Create a branch.