My (mac) screensaver. Download and install the IdleWeb screensaver. Put the files above into a folder somewhere along with twitterlib.min.js. Then setup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
REPO=$1 | |
mkdir /opt/git/$REPO.git | |
git init --bare /opt/git/$REPO.git | |
cd /opt/git/$REPO.git | |
mv hooks/post-update.sample hooks/post-update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var redis = require('redis').createClient(); | |
var app = require('express')(); | |
var total = 0, count = 0; | |
redis.on('message', function(channel, message) { | |
if (channel == "requests") { | |
var obj = JSON.parse(message); | |
total += obj.duration; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Usage: dominant < in > out | |
package main | |
import ( | |
"github.com/hawx/img/utils" | |
"github.com/hawx/rgoybiv" | |
"image" | |
"image/draw" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# | |
# Usage: send <username> <password> <accountReference> <recipient> < file | |
# eg. send [email protected] secretPassword EX00000 44132133113213 < mymessage.txt | |
body=$(cat) | |
curl -X POST --user "$1:$2" -d@- "https://api.esendex.com/v1.0/messagedispatcher" <<EOS | |
<?xml version="1.0" encoding="utf-8"?> | |
<messages> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Xml.Serialization; | |
using ShiftIt.Http; | |
namespace Chunkyness | |
{ | |
public class ChunkyRequest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git_author() { | |
if [ -z "$GIT_AUTHOR_NAME" ]; then | |
echo "developer" | |
else | |
echo "$GIT_AUTHOR_NAME" | |
fi | |
} | |
export PS1='\[\033]0;$MSYSTEM:\w\007\]\n\[\033[32m\]$(git_author) @ \h \[\033[33m\]\w$(__git_ps1) \[\033[0m\]\n$ ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class Exts | |
{ | |
public static T Tap<T>(this T that, Action<T> action) | |
{ | |
action(that); | |
return that; | |
} | |
public static TOut Into<TIn, TOut>(this TIn that, Func<TIn, TOut> func) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
module Deserialisable | |
def root(selector) | |
@__root = selector | |
@__elements = {} | |
end | |
def element(name, selector, type=String) | |
@__elements[name] = [selector, type] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: ( | |
function() { | |
var widenGithubs = '.container { width: 1280px; } ' + | |
'.container .repository-content { width: 1230px; } ' + | |
'.container .repository-with-sidebar.with-full-navigation .repository-content { width: 1080px; } ' + | |
'.container .column { width: 1092px; } ' + | |
'#files .diffstat+.css-truncate-target { max-width: 855px !important;} ' + | |
'.discussion-timeline { width: 1055px; } ' + | |
'.comment-holder { width: 952px !important; } ' + | |
'.inline-comments .comment-holder { width: 1100px !important; max-width: 1100px !important; } ' + |