This file contains hidden or 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
| // ==UserScript== | |
| // @name Basecamp Favicons | |
| // @namespace http://robbyonrails.com/greasemonkey | |
| // @description Adds a favicon to Basecamp | |
| // @include http://*.projectpath.com/* | |
| // @include http://*.updatelog.com/* | |
| // @include http://*.clientsection.com/* | |
| // @include http://*.seework.com/* | |
| // @include http://*.grouphub.com/* | |
| // @include https://planetargon.grouphub.com/* |
This file contains hidden or 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
| // ==UserScript== | |
| // @name SkitchEmbedder | |
| // @namespace skitch | |
| // @description Robby Russell's hack to remove skitch crap from the embed HTML | |
| // @include http://skitch.com/* | |
| // ==/UserScript== | |
| // clear out the sidebar | |
| sidebar = document.getElementById( 'selectcopycontainer_3_div' ); | |
| sidebar.innerHTML = ''; |
This file contains hidden or 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
| robby-russells-macbook-pro% sudo /opt/local/bin/port selfupdate | |
| MacPorts base version 1.600 installed | |
| Downloaded MacPorts base version 1.600 | |
| The MacPorts installation is not outdated and so was not updated | |
| selfupdate done! | |
This file contains hidden or 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
| // line 1, requires an array of arrays (x,y) | |
| var line_1 = [ [2000, 10000], | |
| [2001, 13000], | |
| [2002, 11245], | |
| [2003, 11094], | |
| [2003.4, 14392], // example with a dcimal in between a tick | |
| [2004, 11000], | |
| [2005, 10040], | |
| [2006, 13590], |
This file contains hidden or 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
| soap4r stuff | |
| # before (this didn't really seem to work...) | |
| soap.options["receive_timeout"] = 300 | |
| soap.options["connect_timeout"] = 300 | |
| # found examples with this online... | |
| soap.options["protocol.http.connect_timeout"] = 300 |
This file contains hidden or 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
| // ==UserScript== | |
| // @name SaveYourselfFromPalin | |
| // @namespace http://www.youtube.com/ | |
| // @description saves you from the emotion that you feel after seeing another sarah palin clip | |
| // @include http://www.youtube.com/* | |
| // ==/UserScript== | |
| var sarah = /(palin)/; | |
| function pitbull_exists(lipstick) { |
This file contains hidden or 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
| curl -X POST -H 'Content-Type: application/json' -H "Accept: application/json" -d '{ "link": { "website_url": "http://github.com/robbyrussell/rubyurl" } }' http://rubyurl.com/api/links | ruby -rubygems -e 'require "json"; require "yaml"; puts JSON.parse($stdin.gets).to_yaml' | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 100 107 100 107 0 0 527 0 --:--:-- --:--:-- --:--:-- 0 | |
| --- | |
| link: | |
| permalink: http://rubyurl.com/G2mM | |
| website_url: http://github.com/robbyrussell/rubyurl |
This file contains hidden or 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 'rubygems' | |
| require 'httparty' | |
| class Rubyurl | |
| include HTTParty | |
| base_uri 'rubyurl.com' | |
| def self.shorten( website_url ) | |
| post( '/api/links.json', :query => { :link => { :website_url => website_url } } ) | |
| end |
This file contains hidden or 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
| { "link": { "website_url": "http://github.com/robbyrussell/rubyurl" } } |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <link> | |
| <website_url>http://github.com/robbyrussell</website_url> | |
| <permalink>http://rubyurl.com/PNsF</permalink> | |
| </link> |