Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am sappharx on github.
  • I am vsisk (https://keybase.io/vsisk) on keybase.
  • I have a public key ASDyo6YEbR8QlPQzrUvwsu47vHY7epiCiK5S3eb659VbHwo

To claim this, I am signing this object:

@sappharx
sappharx / .bashrc
Created January 10, 2016 02:31
tmux abstractions
function tmuxnew() {
tmux new -s $1
}
function tmuxopen() {
tmux attach -t $1
}
function tmuxkill() {
tmux kill-session -t $1
@sappharx
sappharx / .bash_aliases
Last active January 10, 2016 02:31
bash aliases
# shell prompts
PS1="vcs: "
# aliases ==============================
# edit aliases [.bash_aliases] file
alias aliases="subl ~/.bash_aliases"
# ls command output
alias l.='ls -d .* --color=auto'
@sappharx
sappharx / .tmux.config
Last active January 10, 2016 02:31
tmux config file
# Bindgings {{{
# Remap prefix
unbind C-b
set -g prefix C-Space
# quick key for moving back to the previous window
bind-key L last-window
# vim style bindings for pane movement
bind-key -r h select-pane -L
@sappharx
sappharx / move-repo-between-providers.md
Last active March 17, 2016 16:58
git commands to move repositories between different hosting providers, e.g. BItbucket to GitHub

Method A

Example going from Bitbucket to GitHub using the https protocol

Make sure you create a new GitHub repo first, then execute the following commands:

cd ~/dev/repo-name
git remote rename origin bitbucket
git remote add origin https://github.com/username/repo-name.git # you could also use the ssh or git protocols
git push origin master

Once you're satisfied that the GitHub repo is good to go run the following command to remove the Bitbucket remote:

@sappharx
sappharx / development-outline.md
Last active April 18, 2017 15:21
Outline of development environment, process, tools, etc. with links to style guides, tutorials, and other resources
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
button {
color: #ED652E;
background-color: #999;
}