View list-unsubscribe.js
function listUnsubscribe() {
var label = GmailApp.getUserLabelByName("Unsubscribe");
var threads = label.getThreads();
threads.forEach(function(thread) {
var message = thread.getMessages()[0];
var value = message.getRawContent().match(/^List-Unsubscribe: ((.|\r\n\s)+)\r\n/m)[1];
if (value) {
var match = value.match(/<(https?:\/\/[^>]+)>/);
View README.md

Type this into your Terminal.app:

curl https://gist.githubusercontent.com/josh/0710ceb4b81be9cb9358/raw/306ca85dc54646ebfaa30bf41908c4fbe18e11fb/setup-rbenv.sh | bash
View index.html
<script src="strict.js"></script>
<script src="script.js"></script>
View homebred-port-forward.sh
#!/bin/bash
# Appends nginx porting forwarding rules to the system's PF ruleset.
set -e
if [ "$1" == "--debug" ]; then
set -x
shift
fi
View extract-node-modules.sh
#!/bin/bash
# usage: script/extract-node-modules
# Extracts tar'd npm packages from vendor/npm/*.tar into node_modules/ and
# builds any native extensions. This script is automatically invoked from
# script/bootstrap and npm-bundle. You shouldn't need to run it directly.
set -e
compute_md5() {
local output
View npm-wat.sh
#!/bin/bash
set -e
rm -rf node_modules*
npm install node-sass --ignore-scripts
mv node_modules/ node_modules1/
npm install node-sass --ignore-scripts
View broadcast.rb
def message_after_create_callback
GitHub::WebSocket.notify_user_channel(user, "inbox:#{user.login}", {count: 123})
end
View coffelint.js
/**
* CoffeeScript Compiler v1.9.1
* http://coffeescript.org
*
* Copyright 2011, Jeremy Ashkenas
* Released under the MIT License
*/
(function(root) {
var CoffeeScript = function() {
function require(path){ return require[path]; }