Skip to content

Instantly share code, notes, and snippets.

View JesseHerrick's full-sized avatar

Jesse Herrick JesseHerrick

View GitHub Profile
@JesseHerrick
JesseHerrick / EC2Bukkit.md
Last active January 1, 2016 01:19
EC2 Security Setup for Minecraft
Protocol Type Port Range (Code) Source
SSH TCP 22 Anywhere 0.0.0.0/0
Custom TCP TCP 25565 Anywhere 0.0.0.0/0
@JesseHerrick
JesseHerrick / RBEnv-Setup.sh
Last active December 31, 2015 10:49
Setup RBEnv on Ubuntu. A fork of [my other script.](https://gist.github.com/JesseHerrick/7728497)
# Install git for RBEnv and gcc for Ruby.
sudo apt-get install git gcc
git clone git://github.com/sstephenson/rbenv.git $HOME/.rbenv
# Create /etc/init.d/rbenv.sh
sudo touch /etc/init.d/rbenv.sh
sudo cat <<EOF > /etc/init.d/rbenv.sh
export RBENV_ROOT=$HOME/.rbenv
export PATH="${RBENV_ROOT}/bin:$PATH"

Exam Schedule

Tuesday is regular schedule, except for a "Holiday" Program (I'm almost positive they're going to do just Christmas songs and one "Hanukkah Song") I'm taking my HUSH (7) exam at 1:05 - 3:05.

Wednesday Thursday Friday
8:00 - 10:00 Biology I (1) Geometry H. (3) Theater I (5)
10:00 - 10:20 Break Break Break
10:20 - 12:20 Latin I (2) ILC (4) Health 9 (6)
12:20 - 1:10 Lunch Lunch Lunch
#!/usr/bin/env bash
if [ -f $HOME/.zshrc ]
then
SHELL_INIT="$HOME/.zshrc"
elif [ -f $HOME/.bashrc ]
then
SHELL_INIT="~/.bashrc"
elif [ -f $HOME/.bash_profile ]
then
@JesseHerrick
JesseHerrick / RBEnvEC2.sh
Created December 1, 2013 04:28
Install RBEnv on EC2
# Become sudo
sudo su -
# Update
yum update
# Install git for RBEnv and gcc for Ruby.
yum install git gcc
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
@JesseHerrick
JesseHerrick / gist:7649549
Created November 25, 2013 21:51
Fix ZSH error with RVM.
rm -f ~/.zcompdump
@JesseHerrick
JesseHerrick / googl.rb
Created November 9, 2013 01:56
Basic HTTParty post command.
require 'json'
require 'httparty'
class Googl
include HTTParty
base_uri "https://www.googleapis.com"
headers "Content-Type" => "application/json"
def self.shorten(url)
post("/urlshortener/v1/url", :body => {:longUrl => url}.to_json)["id"]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JesseHerrick
JesseHerrick / exec.js
Created October 20, 2013 02:36
Execute a shell command with Node.js.
// Code:
var exec = require('child_process').exec;
var execute = function(command, callback){
exec(command, function(error, stdout, stderr){ callback(stdout); });
};
// Example:
execute("git --version", function(version){
console.log(version);
});
@JesseHerrick
JesseHerrick / _config.yml
Created October 13, 2013 18:54
Example config file for jekyll-ftp.
name: Your New Jekyll Site
markdown: redcarpet
pygments: true
username: UserName
server_url: ftp.myserver.com
remote_dir: /public_html