Skip to content

Instantly share code, notes, and snippets.

View YenTheFirst's full-sized avatar

Talin YenTheFirst

  • Opendoor
  • San Francisco
View GitHub Profile
@YenTheFirst
YenTheFirst / get_twitter_rss.rb
Created February 1, 2011 04:02
a simple rack app, that wraps 'status' rss calls to twitter with the necessary oauth
require 'simple_oauth'
require 'net/http'
require 'rack'
class GetTwitterRSS
@@consumer_secrets={:consumer_key=>"<<YOUR_KEY>>",:consumer_secret=>"<<YOUR_SECRET>>}
@@user_secrets={"username
1"=>{:token_secret=>"<<TOKEN_SECRET>>",:token=>"<<ACCESS_TOKEN>>"}}
@@base="api.twitter.com"
def call(env)
pulseaudio --start
pactl load-module module-raop-sink server=10.0.1.22 sink_name=raop.CFA.local description="CFA"
mpg123 <the_file>