Below is a list of alternative GitHub accounts which I (@jimeh) use, and have full control over.
This document was GPG signed with:
/* | |
Super-simple Mustache-style text-replacement. | |
Example: | |
var data = {name: "James", location: "Mars"}; | |
mustache("Welcome to {{location}}, {{ name }}.", data); // => Welcome to Mars, James. | |
*/ | |
function mustache(string, data){ |
Anti-Terrorist and Monetary Crimes Division | |
FBI Headquarters In Washington, D.C. | |
Federal Bureau Of Investigation | |
J. Edgar Hoover Building | |
935 Pennsylvania Avenue, NW Washington, D.C. 20535-0001 | |
#!/bin/sh | |
[ -n "$DEBUG" ] && set -x | |
check_http() { | |
wget -T 1 -S -q -O - "$1" 2>&1 | head -1 | | |
grep -E 'HTTP.+\s2[0-9]{2}' > /dev/null 2>&1 | |
return $? | |
} | |
check_tcp() { |
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"strings" | |
"sync" | |
) |
.DS_Store | |
data.rb | |
results.txt |
# Search shell history with peco: https://github.com/peco/peco | |
# Adapted from: https://github.com/mooz/percol#zsh-history-search | |
if which peco &> /dev/null; then | |
function peco_select_history() { | |
local tac | |
(which gtac &> /dev/null && tac="gtac") || \ | |
(which tac &> /dev/null && tac="tac") || \ | |
tac="tail -r" | |
BUFFER=$(fc -l -n 1 | eval $tac | \ | |
peco --layout=bottom-up --query "$LBUFFER") |
# Stub commands printing it's name and arguments to STDOUT or STDERR. | |
stub() { | |
local cmd="$1" | |
if [ "$2" == "STDERR" ]; then local redirect=" 1>&2"; fi | |
if [[ "$(type "$cmd" | head -1)" == *"is a function" ]]; then | |
local source="$(type "$cmd" | tail -n +2)" | |
source="${source/$cmd/original_${cmd}}" | |
eval "$source" | |
fi |
This is a mirror of an article from a seemingly dead site: http://www.pcmediacenter.com.au/forum/topic/44471-mdadm-raid-email-notifications-w-ssmtp/
Posted 15 June 2011 - 04:09 AM
Hi Guys,
$.fn.extend | |
myplugin: (options) -> | |
self = $.fn.myplugin | |
opts = $.extend {}, self.default_options, options | |
$(this).each (i, el) -> | |
self.init el, opts | |
self.log el if opts.log | |
$.extend $.fn.myplugin, | |
default_options: |