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 sys = require('sys'), | |
spawn = require('child_process').spawn, | |
// args from command line | |
filename, servers; | |
if (process.ARGV.length < 4) { | |
return sys.puts("Usage: node remote-tail.js filename server1 [serverN]"); | |
} |
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/perl | |
# | |
# Nathanial Hendler | |
# http://retards.org/ | |
# | |
# 2001-06-26 v1.0 | |
# | |
# This perl script parses a MySQL slow_queries log file | |
# ignoring all queries less than $min_time and prints | |
# out how many times a query was greater than $min_time |
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
YUI.add('sk-gallery-model-router', function (Y) { | |
/* Any frequently used shortcuts, strings and constants */ | |
var Lang = Y.Lang; | |
function ModelRouter(config) { | |
} | |
ModelRouter.prototype = { | |
getUrl: function (action) { |
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 util = require('util'), | |
exec = require('child_process').exec, | |
modules = {}, | |
// what to strip off the pathname (/my/dir/web becomes /web) | |
docroot = __dirname+'/webroot', | |
// where to search for YUI.add in files | |
path = __dirname+'/webroot/bundles', | |
file, | |
child; |
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 php | |
<?php | |
// This is incredibly ugly... but a quick script for fun | |
exec("git remote -v", $data); | |
$remotes = array(); | |
foreach ($data as $line) { | |
if (preg_match('~^(\w+)\t(.+?(?:\.git)+)~', $line, $match)) { |
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
# General Ack Settings | |
#################################################################### | |
# only search with case sensitivity if there is mixed case | |
--smart-case | |
# follow symlinks | |
--follow | |
# Ack Type Settings |
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
:-) | |
:) | |
:-) | |
:o | |
:$ | |
:/ | |
:( | |
:-* | |
:# | |
:'( |
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 watch = require('watch'), | |
spawn = require('child_process').spawn, | |
queue = [], | |
proc; | |
function run(path) { | |
if (proc) { | |
return queue.push(path); | |
} |

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 r=/gif$/,b=document.body,i="",h="innerHTML";b[h].replace(/href="([^"]*?)"/g,function(m,u){if(r.test(u))i+="<img src='"+u+"'>"});b[h]=i; |