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 / 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`; }
@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 / 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 / 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 / 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 / gist:5218159
Created March 22, 2013 01:00
Make Reddit Better
javascript:var site = $('#siteTable').css('width', '25%');var body = $('body').empty().append(site).prepend('<div id="link"></div'); var link = $('#link').css({position: 'fixed', right: '0px', height: $(window).height(), width: '75%', overflow: 'auto' }).append($('<iframe id="frame">').css({height: $(window).height() + 260, width: '100%'})); var clicked = $('a.thumbnail,a.title').click(function(){ var href = $(this).attr('href'); $('#frame').attr('src', href); if (href.indexOf('qkme') >= 0 || href.indexOf('quickmeme') >= 0){ console.log("Quickmeme"); $('#link').scrollTop(275); } else { $('#link').scrollTop(0); } return false; }); var media = $('.expando').css({position: 'absolute', 'z-index': 100000});
var site = $('#siteTable').css('width', '25%');
var body = $('body').empty().append(site).prepend('<div id="link"></div');
var link = $('#link').css({
position: 'fixed',
right: '0px',
height: $(window).height(),
width: '75%',
overflow: 'auto'
@shakefu
shakefu / keybase.md
Created September 24, 2014 17:47
Keybase

Keybase proof

I hereby claim:

  • I am shakefu on github.
  • I am shakefu (https://keybase.io/shakefu) on keybase.
  • I have a public key whose fingerprint is 143F 3526 1A37 85FD 7565 E478 5861 54D5 46AE 24CB

To claim this, I am signing this object:

@shakefu
shakefu / ir_black.vim
Created October 25, 2014 04:26
ir_black VIM color scheme modified
" ir_black color scheme
" More at: http://blog.infinitered.com
" ********************************************************************************
" Standard colors used in all ir_black themes:
" Note, x:x:x are RGB values
"
" normal: #f6f3e8
"
@shakefu
shakefu / gvimrc
Created February 15, 2016 19:39
gvimrc
" Prevent the last tab from closing with CMD-W
macm File.Close key=<nop>
nnoremap <silent> <D-w> <Esc>:bd<CR>
" Tab labels
function! GuiTabLabel()
let label = ''
" Get list of buffer numbers in this tab
let buf_list = tabpagebuflist(v:lnum)
@shakefu
shakefu / terraform-crash.txt
Last active January 30, 2018 22:06
Terraform Crash - Jan 30, 2018
$ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
data.aws_route53_zone.axiomxrg: Refreshing state...
------------------------------------------------------------------------
Error: Error running plan: 1 error(s) occurred: