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
[ | |
{"name":"playback","filename":"vm-theperson"} | |
,{"name":"playback","filename":"vm-isunavail"} | |
,{"name":"playback","filename":"vm-leavemsg"} | |
,{"name":"playback","filename":"beep"} | |
,{"name":"Record","filename":"sounds/voicemail_test.wav","maxduration":"300"} | |
] |
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
[ | |
{"name":"Dial","destination":"1","url":"http://llama.fm","timeout":"20"} | |
] |
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
require 'yaml' | |
require 'rest_client' | |
require 'json' | |
class Cloudvox | |
def initialize | |
@cv_config = YAML.load_file 'cloudvox_account.yml' | |
#cloudvox_account.yml format | |
# |
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 | |
# nodejs - Startup script for node.js server | |
# chkconfig: 35 85 15 | |
# description: node is an event-based web server. | |
# processname: node | |
# server: /path/to/your/node/file.js | |
# pidfile: /var/run/nodejs.pid | |
# |
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 | |
require_once("Net/SSH2.php"); | |
$passwd='sup3rs3cr3t'; | |
$user='username'; | |
$server='remoteserver.com'; | |
$ssh = new Net_SSH2($server); | |
if (!$ssh->login($user, $passwd)) { | |
exit('Login Failed'); | |
} | |
$who = $ssh->exec('whoami'); |
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
module.exports = function (a, b) { | |
return a + b | |
} |
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
// Production steps of ECMA-262, Edition 5, 15.4.4.18 | |
// Reference: http://es5.github.com/#x15.4.4.18 | |
if (!Array.prototype.forEach) { | |
Array.prototype.forEach = function( callback, thisArg ) { | |
var T, k; | |
if ( this == null ) { | |
throw new TypeError( " this is null or not defined" ); | |
} | |
var O = Object(this); | |
var len = O.length >>> 0; |
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
#~/.janus.rake file | |
vim_plugin_task "autoclose", "git://github.com/Townk/vim-autoclose.git" | |
#~/vimrc.local file | |
let g:AutoClosePairs = {'(': ')', '{': '}', '[': ']', '"': '"', "'": "'", '#{': '}', '|':'|' } | |
let g:AutoCloseProtectedRegions = ["Character"] | |
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
# log on to big tuna box | |
# become tuna user | |
sudo su tuna | |
# stop the delayed_job process | |
cd /home/tuna/bigtuna | |
RAILS_ENV=production ./script/delayed_job stop | |
# clear the job queue | |
RAILS_ENV=production bundle exec rake jobs:clear |
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 | |
# This script will open all files from a git diff or a git show in vim. | |
# My bash skills are a bit primitive so this can probably be done more intelligently | |
# Usage: | |
# gitopen -- opens all added files that have changed since HEAD | |
# gitopen diff HEAD -- these are the default parameters | |
# gitopen diff master -- opens files that have changed from master |
OlderNewer