Skip to content

Instantly share code, notes, and snippets.

View scottrigby's full-sized avatar
🤓

Scott Rigby scottrigby

🤓
View GitHub Profile
@davereid
davereid / custom_local.drush.inc
Created July 24, 2012 16:40
Helpful local Drush commands
<?php
/**
* Implements hook_drush_command().
*/
function custom_local_drush_command() {
$items['files-fix-permissions'] = array(
'description' => 'Fix file permissions',
'options' => array(
'owner' => "The name of the user to assign ownership of all files with chown(). Defaults to \$USER.",
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active July 22, 2025 02:26 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.
@masak
masak / explanation.md
Last active June 19, 2025 13:01
How is git commit sha1 formed

Ok, I geeked out, and this is probably more information than you need. But it completely answers the question. Sorry. ☺

Locally, I'm at this commit:

$ git show
commit d6cd1e2bd19e03a81132a23b2025920577f84e37
Author: jnthn <[email protected]>
Date:   Sun Apr 15 16:35:03 2012 +0200

When I added FIRST/NEXT/LAST, it was idiomatic but not quite so fast. This makes it faster. Another little bit of masak++'s program.

@robbiet480
robbiet480 / spammytwittertoirc.js
Created September 25, 2011 06:25
Robbie's Handy Dandy Twitter Streaming API to IRC Bot
//Robbie's handy dandy, super annoying, Twitter Streaming API To IRC bot!
//Just change all the settings to your liking. You could also repurpose this to send to places other then IRC
//npm install jerk twitter-node
var TwitterNode = require('twitter-node').TwitterNode,
jerk = require('jerk')
, sys = require('sys')
var options =
{ server: 'irc.freenode.net'
, nick: 'RobbieBot'