This file contains 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
{ | |
"title": "Httpd Requests", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"id": 0, | |
"type": "topN", | |
"query": "*", | |
"alias": "", |
This file contains 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
#!/bin/bash | |
[ -t 1 ] | |
ISTTY=$? | |
notify-send -i ~/Pictures/jake.png MAKE "$( (make $@ && echo "Good.") 2>&1 | ( if [[ $ISTTY -eq 0 ]]; then tee /dev/tty; else cat; fi ) )" |
This file contains 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
export SHELL := /bin/bash | |
.PHONY: default pdf html view clean | |
SRC = $(wildcard *.txt) | |
PDFS=$(SRC:.txt=.pdf) | |
HTML=$(SRC:.txt=.html) | |
default: pdf html | |
pdf: $(PDFS) | |
%.pdf : %.txt |
This file contains 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
<?php | |
// You should make this something that is sensible for your application | |
namespace gist; | |
/** | |
* You can't set functions as callable properties on a normal generic | |
* object. You can on instances of this class. | |
* | |
* You can't use "$this," however, so the function will always receive a |
This file contains 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
#!/bin/bash | |
sed 's/^[ ]\+//' | sed 's/[ ]\+$//' | xargs -d'\n' $@ |
This file contains 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
#!/bin/bash | |
F=$1 | |
shift | |
echo $@ | xargs -n1 -P4 ptail $F |
This file contains 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
function contentWithTwitterURLShortening(c) { | |
// t.co URLs are currently max 20 chars, but since that is subject to | |
// expansion we're leaving some elbow room and assuming 25 | |
return c.replace(/http(s?):\/\/[-\w]+(\.\w[-\w]*)+(:\d+)?(\/[^.!,?;"'<>()\[\]{}\s\x7F-\xFF]*(?:[.!,?]+[^.!,?;"'<>()\[\]{}\s\x7F-\xFF]+)*)?/g, "http$1://t.co/xxxxxxxxxxxxx"); | |
} |
This file contains 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
/* | |
* Character Count Plugin - jQuery plugin | |
* Dynamic character count for text areas and input fields | |
* written by Alen Grakalic | |
* http://cssglobe.com/post/7161/jquery-plugin-simplest-twitterlike-dynamic-character-count-for-textareas | |
* and Richard Howard, Roubini Global Economics | |
* http://www.roubini.com | |
* | |
* Copyright (c) 2009 Alen Grakalic (http://cssglobe.com) | |
* Dual licensed under the MIT (MIT-LICENSE.txt) |
This file contains 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
#!/bin/bash | |
# Just a wrapper around lsyncd | |
# Keep two places in sync | |
HERE=/home/rhoward/ayi/ | |
THERE=rhoward-dev.ayisnap.com:/var/www/html/areyouinterested.com | |
# Check that no previously running syncs are still running; | |
# this causes boffo logging | |
CURRENT_SYNC=$(ps aux | grep "rsync.\+$HERE" | grep -v '0 grep') |
OlderNewer