Skip to content

Instantly share code, notes, and snippets.

require 'twitter'
class SiriProxy::Plugin::Twitter < SiriProxy::Plugin
def initialize(config = {})
@config = config
::Twitter.configure do |config|
config.consumer_key = @config['consumer_key']
config.consumer_secret = @config['consumer_secret']
config.oauth_token = @config['oauth_token']
@laxman01
laxman01 / gist:1456143
Created December 10, 2011 20:06
siriproxy-youtube.rb
require 'cora'
require 'siri_objects'
require 'pp'
class SiriProxy::Plugin::Youtube < SiriProxy::Plugin
def initialize(config)
#if you have custom configuration options, process them here!
end
@laxman01
laxman01 / siriproxy-nick.rb
Created December 10, 2011 19:31
siriproxy-nick.rb
require 'cora'
require 'siri_objects'
require 'pp'
class SiriProxy::Plugin::Example < SiriProxy::Plugin
def initialize(config)
#if you have custom configuration options, process them here!
end
@laxman01
laxman01 / config.yml
Created December 10, 2011 19:28
the last one is the new one that has the name error
- name: 'Example'
path: './plugins/siriproxy-example'
- name: 'Launcher'
git: 'git://github.com/bikr/siriproxy-launcher.git'
path: '/Users/Nick/Desktop/SiriProxy/plugins/siriproxy-launcher'
- name: 'HockeyScores'
git: 'git://github.com/senmu/SiriProxy-HockeyScores.git'
path: '/Users/Nick/Desktop/SiriProxy/plugins/SiriProxy-HockeyScores'
@laxman01
laxman01 / siriProxy-test
Created December 7, 2011 01:05
editing your example plugin
#######
# This is a "hello world" style plugin. It simply intercepts the phrase "text siri proxy" and responds
# with a message about the proxy being up and running (along with a couple other core features). This
# is good base code for other plugins.
#
# Remember to add other plugins to the "config.yml" file if you create them!
######
class SiriProxy::Plugin::test < SiriProxy::Plugin
def initialize(config)
Nick-Hallowells-MacBook-Pro:Desktop Nick$ siriproxy bundle
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
@laxman01
laxman01 / gist:1436795
Created December 6, 2011 04:49
config.yml
port: 443
log_level: 1
plugins:
# NOTE: run bundle after changing plugin configurations to update required gems
# - name: 'Example'
# path: './plugins/siriproxy-example'
Nick-Hallowells-MacBook-Pro:Desktop Nick$ siriproxy bundle
The path `/Users/Nick/Desktop/SiriProxy/plugins/siriproxy-macintosh ` does not exist.
Nick-Hallowells-MacBook-Pro:Desktop Nick$ /Users/Nick/Desktop/SiriProxy/plugins/siriproxy-macintosh
-bash: /Users/Nick/Desktop/SiriProxy/plugins/siriproxy-macintosh: is a directory
Nick-Hallowells-MacBook-Pro:Desktop Nick$
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "siriproxy-macintosh"
s.version = "0.0.1"
s.authors = ["loris1634"]
s.email = [""]
s.homepage = ""
s.summary = %q{To control your macintosht}
@laxman01
laxman01 / gist:1436744
Created December 6, 2011 04:29
gemspec
Nick-Hallowells-MacBook-Pro:~ Nick$ /Users/Nick/Desktop/SiriProxy/plugins/siriproxy-macintosh/siriproxy-macintosh.gemspec ; exit;
/Users/Nick/Desktop/SiriProxy/plugins/siriproxy-macintosh/siriproxy-macintosh.gemspec: line 2: syntax error near unexpected token `('
/Users/Nick/Desktop/SiriProxy/plugins/siriproxy-macintosh/siriproxy-macintosh.gemspec: line 2: `$:.push File.expand_path("../lib", __FILE__)'
logout
[Process completed]