Skip to content

Instantly share code, notes, and snippets.

View jgallen23's full-sized avatar

Greg Allen jgallen23

View GitHub Profile
@jgallen23
jgallen23 / toggle.applescript
Created January 7, 2013 23:15
Script to toggle between Google Chrome and iTerm
tell application "System Events"
set frontApp to name of first application process whose frontmost is true
if frontApp is "Google Chrome" then
tell application "iTerm"
activate
end tell
else
tell application "Google Chrome"
activate
end tell
@jgallen23
jgallen23 / shell.js
Created December 27, 2017 22:04
solarized light secure shell
// prefs.js Template
// Petr Hosek(http://petrhosek.name)
/*
color00="fd/f6/e3" # Base 00 - Black
color01="dc/32/2f" # Base 08 - Red
color02="85/99/00" # Base 0B - Green
color03="b5/89/00" # Base 0A - Yellow
color04="26/8b/d2" # Base 0D - Blue
color05="6c/71/c4" # Base 0E - Magenta
@jgallen23
jgallen23 / README.md
Last active September 17, 2016 21:09
micrometrics migration

MONGO=mongohost node index.js

@jgallen23
jgallen23 / Gruntfile.js
Last active December 31, 2015 18:49
grunt-contrib-connect livereload issues
module.exports = function(grunt) {
grunt.initConfig({
connect: {
server: {
options: {
livereload: true,
keepalive: true
@jgallen23
jgallen23 / grunt-install.sh
Last active December 15, 2015 11:49
bash grunt plugin install script
gi() {
if [ $# -eq 1 ]; then
npm i -D grunt-$*
else
local IFS=,;
eval npm i -D grunt-{"$*"};
fi
}

#Moncmd

moncmd is a wrapper for mon

##Usage

moncmd start
moncmd status
moncmd restart
@jgallen23
jgallen23 / .gitignore
Created April 25, 2012 22:36
Mon tests
server.pid
@jgallen23
jgallen23 / cmd.sh
Created January 2, 2012 22:19
Server Provision Script
wget https://gist.github.com/raw/1552359/82565cd875067cc6ac4250daaeeb151d41f8b9a7/setup.sh && chmod +x setup.sh
sudo ./setup.sh
@jgallen23
jgallen23 / bookmarklet.js
Created July 26, 2011 00:57
The Hit List Bookmarklet
javascript:var addTask=function(a,b,c,d,e){window.location="thehitlist:///"+c+"/tasks?method=POST&title="+encodeURIComponent(a)+"&url="+encodeURIComponent(b)+"&startDate="+d+"&priority="+e};addTask(document.title,window.location,"inbox","t")
express = require "express"
app = express.createServer()
app.configure () ->
app.use express.methodOverride()
app.use express.bodyParser()
app.use app.router
app.set "views", "#{ __dirname }/templates"
app.set "view engine", "ejs"
app.register ".html", require "ejs"