Go here for the real thing, I put it in it's own repository now...
http://github.com/evaryont/bin/blob/master/ssh-intercept
| // ==UserScript== | |
| // @name Github news feed minimizer | |
| // @namespace evaryont.me | |
| // @include https://github.com/ | |
| // @include https://github.com/dashboard/yours | |
| // @datecreated 2010-04-22 | |
| // @version 0.1 | |
| // @author Colin 'Evaryont' Shea | |
| // @license MIT | |
| // @description Do many little things, but overall, make the whole page a lot better. |
| dmenu-4.0-2 0.01 | |
| luafilesystem-1.5.0-1 0.01 | |
| mime-types-1.0-3 0.01 | |
| pacpan-2010.04.11.1-1 0.01 | |
| pm-quirks-0.20100316-1 0.01 | |
| which-2.20-3 0.01 | |
| perl-common-sense-3.2-1 0.02 | |
| pkgtools-18-1 0.02 | |
| kdenetwork-kdnssd-4.4.2-2 0.03 | |
| pm-utils-1.3.0-2 0.03 |
Go here for the real thing, I put it in it's own repository now...
http://github.com/evaryont/bin/blob/master/ssh-intercept
| #!/bin/ruby | |
| require 'rubygems' | |
| require 'twitter_oauth' | |
| @@config = YAML.load_file("config.yml") rescue nil || {} | |
| @client = TwitterOAuth::Client.new( | |
| :token => @@config[:token], | |
| :secret => @@config[:secret] | |
| ) | |
| if @client.authorized? |
| # Subject: Re: Newbie to Sinatra looking for example | |
| # From: Ryan Tomayko <r@tomayko.com> | |
| # To: sinatrarb@googlegroups.com | |
| # Content-Type: text/plain; charset=UTF-8 | |
| # | |
| # > Alright, so I'm pretty new to both Sinatra and web applications, and I | |
| # > was wondering if someone could write up a quick example use of | |
| # > Sinatra. Basically I want to see how Sinatra handles <form>s in one | |
| # > view, and then shows the input on a different view. | |
| # > |
| #!/usr/bin/ruby | |
| require 'twitter' | |
| require 'pp' | |
| oauth = Twitter::OAuth.new('key', 'secret'); | |
| rtoken = oauth.request_token.token | |
| rsecret = oauth.request_token.secret | |
| puts "> redirecting you to twitter to authorize..." |
| # s gem install twitter | |
| Your Password: | |
| Building native extensions. This could take a while... | |
| Building native extensions. This could take a while... | |
| ERROR: Error installing twitter: | |
| rack requires thin (>= 0, development) | |
| # s gem install thin | |
| ERROR: Error installing thin: | |
| thin requires rack (>= 1.0.0, runtime) | |
| # s gem install rack |
| require 'rubygems' | |
| require 'looksee' | |
| module Kernel | |
| alias_method :orig_methods, :methods | |
| def methods(*args) | |
| if caller.first =~ /\(irb\):\d+:in `irb_binding'/ | |
| Looksee.lookup_path(self, *args) | |
| else | |
| orig_methods |
| evaryont Is it just me or is github.com/*/ resulting in GithubPages saying "Page does not exist!" gist.github.com works, but no subfolders work under github.com/ | |
| evaryont No matter what URL I try accessing under github.com/, it always results in a github pages non existent error | |
| @defunkt evaryont: like what url, for example? | |
| bringo i ain't not getting no 404s | |
| evaryont defunkt: ah, sorry, github.com/blog/ or github.com/evaryont/ | |
| evaryont it's weird as hell, I realize, and my desktop works just fine >_< | |
| bringo strange. those URLs produce perfectly fine results for me. | |
| bringo i blame Echelon | |
| context evaryont: try clearing your cache? | |
| context make sure you are not using ie? |
| # Open dmenu to select a user agent | |
| bind ZU = spawn $XDG_DATA_HOME/uzbl/scripts/switch_useragent.sh | |
| # Immediately switch to the user agent, bypassing dmenu. | |
| bind ZI = spawn $XDG_DATA_HOME/uzbl/scripts/switch_useragent.sh "iPhone" | |
| bind ZA = spawn $XDG_DATA_HOME/uzbl/scripts/switch_useragent.sh "Android (G1) Browser" |