Skip to content

Instantly share code, notes, and snippets.

View payne's full-sized avatar

Matt Payne payne

View GitHub Profile
@shripadk
shripadk / gist:652819
Created October 29, 2010 03:10
Express authentication using Redis for session store and Couchdb for database (in coffeescript!)
###
Module dependencies
###
require.paths.unshift "#{__dirname}/lib/support/express-csrf/"
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/"
express = require 'express'
app = module.exports = express.createServer()
RedisStore = require 'connect-redis'
@adamstac
adamstac / TODO
Created February 11, 2011 18:50
A Rubyist’s guide to setting up a Mac OS X development environment using Homebrew, RVM, Git and Bundler
* Review this article and add new steps as needed: http://blog.therubymug.com/blog/2010/05/20/the-install-osx.html
@edpichler
edpichler / Animal.java
Last active February 12, 2024 18:29
Java AWT/Swing with Drag and Drop.
public class Animal {
private String name;
private int age;
public Animal() {
name = "Name " + System.currentTimeMillis();
age = (int) +System.currentTimeMillis();
}
@afair
afair / tmux.cheat
Last active June 3, 2024 23:26
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New new -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
@olivierlacan
olivierlacan / gist:4062929
Last active February 10, 2024 10:57 — forked from Gregg/gist:968534
Code School Screencasting Framework

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
@rampion
rampion / HuluQueueButtons.user.js
Created November 13, 2012 03:59
A greasemonkey script to add queue buttons to Hulu's "Watch [...] online" pages. Click the "raw" link to install (if you have greasemonkey).
// ==UserScript==
// @name HuluQueueButtons
// @namespace rampion.github.com
// @description Add buttons to Hulu's "Watch [...] online" pages to let you queue/dequeue videos
// @include http://www.hulu.com/watch/*
// @version 1
// @grant none
// ==/UserScript==
$(function(){
@willurd
willurd / web-servers.md
Last active June 26, 2024 11:15
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@tnolet
tnolet / gist:7334360
Last active December 27, 2015 13:39
Using RubyMine with Vagrant running Ruby

Creating a RVM based Ruby environment on Vagrant

Update all packages

yum update

Install RVN. note: Don't do this as a root user!

curl -L get.rvm.io | bash -s stable

@richard-to
richard-to / gist:8797504
Created February 4, 2014 03:01
Google App Script to parse specific emails and write to Google Sheets
// Modified from http://pipetree.com/qmacro/blog/2011/10/automated-email-to-task-mechanism-with-google-apps-script/
// Globals, constants
var LABEL_PENDING = "pending";
var LABEL_DONE = "done";
// processPending(sheet)
// Process any pending emails and then move them to done
function processPending_(sheet) {
@bradmontgomery
bradmontgomery / shell.sh
Created February 9, 2014 05:22
Playing with `jq`, using the Albums api for a Facebook page. This is loosely based on the tutorial at: http://stedolan.github.io/jq/tutorial/
# pretty-print a JSON result
curl 'https://graph.facebook.com/memphispython/albums/' | jq '.'
# grab the data list
curl 'https://graph.facebook.com/memphispython/albums/' | jq '.data'
# Get *just* the first album
curl 'https://graph.facebook.com/memphispython/albums/' | jq '.data[0]'
# Narrow that first entry to some specific data