Skip to content

Instantly share code, notes, and snippets.

View rubic's full-sized avatar

Jeff Bauer rubic

  • Rubicon, Inc.
  • Nashville, Tennessee
View GitHub Profile
@rubic
rubic / init.el
Created September 25, 2015 17:33
eliminate smartparens in evil
;; Alternative way to defeat smartparens-mode
(add-hook 'evil-insert-state-entry-hook 'turn-off-smartparens-mode)
(add-hook 'evil-insert-state-exit-hook 'turn-on-smartparens-mode)
@rubic
rubic / gitcheck.sh
Created March 16, 2016 13:41
gitcheck: check status between local and remote repositories
#!/bin/sh
git fetch
LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse @{u})
BASE=$(git merge-base @ @{u})
if [ $LOCAL = $REMOTE ]; then
echo "Up-to-date"
@rubic
rubic / spacemacs-cheatsheet.md
Created July 8, 2016 14:33
Spacemacs cheatsheet

emacs --daemon to run in the background. emacsclient.emacs24 <filename/dirname> to open in terminal

M-m and SPC can be used interchangeably.

  • Undo - C-/
  • Redo - C-?
  • Change case: 1. Camel Case : M-c 2. Upper Case : M-u
  1. Lower Case : M-l
@rubic
rubic / .bashrc
Created February 24, 2017 20:23
Load salsa docker commands in bashrc
# Load salsa docker commands
if [ -f ~/Projects/gringo/bin/salsa_aliases.sh ]; then
source ~/Projects/gringo/bin/salsa_aliases.sh
fi
@rubic
rubic / gist:1b6cac21460f47f6e3e1574a5cc58254
Created February 28, 2019 21:57
Using xev for checking keyboard values
xev -event keyboard | egrep -o 'keycode.*\)'