Incoming Call -> twilio app -> voice-to-text -> irc/IM bot notification
User can than respond within a timeout period to answer the call or ignore
irc/IM user response -> text-to-voice -> twilio app -> Caller
#!/bin/bash | |
# from http://snippets.dzone.com/posts/show/10897 | |
# source this file from bashrc | |
GOT_AGENT=0 | |
for FILE in $(find /tmp/ssh-???*[0-9]* -type s -user ${LOGNAME} -name "agent.[0-9]*") | |
do | |
SOCK_PID=${FILE##*.} |
var redis = require('redis'); | |
var client = redis.createClient(); | |
client.set('test', 'hello, world!'); | |
console.log(client.get('test')); | |
// => undefined | |
client.get('test', redis.print); | |
// => Reply: hello, world! |
#!/usr/bin/env ruby | |
require 'fileutils' | |
require 'colorize' | |
MUSIC_DIR="/home/jshsu/Media/music/" | |
songs = Dir.glob("*.mp3").select do |song| | |
(( Time.now - File.ctime(song) ) / 60 / 60 / 24) >= 1 | |
end |
awk 'function wl() {\ | |
rate=64000; \ | |
return (rate/160)*(0.87055^(int(rand()*10)))}; \ | |
BEGIN {\ | |
srand(); \ | |
wla=wl(); \ | |
while(1) {\ | |
wlb=wla; \ | |
wla=wl(); \ | |
if (wla==wlb) \ |
alias emigrate="$EDITOR db/migrate/$(ls -lp db/migrate | tail -1 | awk '{print $NF}')" |
require 'cinch' | |
require 'open-uri' | |
require 'simple-rss' | |
require 'twitter' | |
Twitter.configure do |config| | |
end | |
class WnyGroup |
#!/usr/bin/env bash | |
for i in {1..572}; do | |
curl -O "http://thenounproject.com/site_media/zipped/svg_$i.zip" | |
done | |
unzip '*.zip' |