Skip to content

Instantly share code, notes, and snippets.

@schlomok
schlomok / .tmux.conf
Last active January 13, 2016 23:48 — forked from napcs/.tmux.clipboard
My tmux config
# start window index of 1
set-option -g base-index 1
setw -g pane-base-index 1
# sane scrolling
set-option -g terminal-overrides 'xterm*:smcup@:rmcup@'
# UTF-8
set-option -g status-utf8 on
@schlomok
schlomok / check-git-branch-status.sh
Last active November 8, 2021 20:40
Checks if current git branch needs to pull, push, if it has diverged, or if it is up to date with the remote branch.
#!/bin/sh
# This script checks if the current branch needs to pull, push, if it has
# diverged, or if it is up-to-date with the remote branch.
# Credits to: http://stackoverflow.com/questions/3258243/check-if-pull-needed-in-git
# Check if git is installed.
hash git 2>/dev/null || { echo >&2 "This script requires git to be installed."; exit 1; }
# Update remote branch to fetch latest remote commit SHA.
@schlomok
schlomok / install-dokuwiki-os-x.sh
Last active January 13, 2016 06:07
Installer Script for Dokuwiki (OS X)
# Install DokuWiki (OS X)
# Installs the following applications: Homebrew, brew-cask, gnu-tar, wget, mamp
install_dependencies() {
echo "Installing dependencies"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)";
brew update;
brew upgrade;
brew install caskroom/cask/brew-cask;