Skip to content

Instantly share code, notes, and snippets.

View shakefu's full-sized avatar

Jacob Alheid shakefu

  • Consulting
  • Ashland, Oregon
View GitHub Profile
@shakefu
shakefu / bashrc
Last active August 12, 2016 22:28
My .bashrc
# shellcheck shell=bash
###############
# Jake's bashrc
#
# Version 20160210
# echo "Loading .bashrc"
# Up the file limit
ulimit -n 65536 65536 2>/dev/null
@shakefu
shakefu / vimrc
Last active February 10, 2016 20:45
My .vimrc
"
" Jake's .vimrc
"
" Not intended for public consumption. Use at your own risk.
"
" Version 20160210
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Remove all autocommands
@shakefu
shakefu / gist:3780680
Created September 25, 2012 08:43
Terminal.app colors for ConqueTerm (vim/MacVim)
"""
Replace the defined CONQUE_FONT in autoload/conque_term/conque_globals.py
with the following to get pretty Terminal.app colors when using ConqueTerm.
Works great with MacVim!
"""
# Font codes
CONQUE_FONT = {
@shakefu
shakefu / mvim
Last active November 5, 2016 14:02
mvim updated to handle command line options and stdin
#!/bin/sh
#
# This shell script passes all its arguments to the binary inside the
# MacVim.app application bundle. If you make links to this script as view,
# gvim, etc., then it will peek at the name used to call it and set options
# appropriately.
#
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico
# Weber and Bjorn Winckler, Aug 13 2007).
@shakefu
shakefu / example.sh
Last active August 30, 2022 01:22
Bash Script with Short and Long Options
# Option defaults
OPT="value"
# getopts string
# This string needs to be updated with the single character options (e.g. -f)
opts="fvo:"
# Gets the command name without path
cmd(){ echo `basename $0`; }