Skip to content

Instantly share code, notes, and snippets.

View jmcaffee's full-sized avatar

Jeff McAffee jmcaffee

View GitHub Profile
@jmcaffee
jmcaffee / FTBLib.md
Last active June 12, 2017 17:50 — forked from LatvianModder/FTBLib.md
FTB Mod Commands

Commands

  • /reload [client] - Reloads server and optionally client

  • /reload_client - Reloads client only

  • /ftb_mode set <mode> - Sets current mode

  • /ftb_mode get - Prints current mode

  • /ftb_mode list - Prints all available modes

  • /edit_config [group] [entry] [value] - Opens config Gui, if only 1st argument is given

#! /bin/bash
# Load in the git branch prompt script
source ~/bin/.git-prompt.sh
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_ps1)\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\[\e[0;36m\]$(__git_ps1)\[\e[0;37m\]\$ '
fi
@jmcaffee
jmcaffee / if_ruby.c
Created March 2, 2016 22:51
dynamic ruby fix for vim source
/* vi:set ts=8 sts=4 sw=4:
*
* VIM - Vi IMproved by Bram Moolenaar
*
* Ruby interface by Shugo Maeda
* with improvements by SegPhault (Ryan Paul)
* with improvements by Jon Maken
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
@jmcaffee
jmcaffee / create-kernels-to-clean-list.sh
Created March 2, 2016 15:18
Generate a list of old kernels to purge after installing a new kernel
#!/usr/bin/env bash
# See [Ubuntu Forums](http://ubuntuforums.org/showthread.php?t=2240697) and
# [Mark McB](http://markmcb.com/2013/02/04/cleanup-unused-linux-kernels-in-ubuntu/)
# for details.
#
# CAUTION!
# Make sure you've rebooted your system if you've just installed a new kernel
# (so the new kernel is in effect).
#
@jmcaffee
jmcaffee / creating_vagrant_vm.md
Last active March 9, 2016 16:08
Steps for setting up a custom Vagrant VM

Setting up AMS Development Environment Virtual Machine


TOC


Virtual Box


These instructions detail setting up an Oracle VirtualBox Virtual Machine for

@jmcaffee
jmcaffee / grape_api_sample.rb
Created May 16, 2012 21:47 — forked from yorzi/grape_api_sample.rb
a well documented ruby api based on GrapeAPI.
require 'grape'
module My
class API < Grape::API
prefix 'api'
## params key list
#################################################################################################################
# 1. login
# 2. sign