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
| atrium)03:07 PM:~/projects/atrium | |
| $ ls -l ~/.ssh/atrium.pem | |
| -r-------- 1 cmcavoy cmcavoy 1696 2011-06-01 10:35 /home/cmcavoy/.ssh/atrium.pem | |
| (atrium)03:08 PM:~/projects/atrium | |
| $ ssh -i ~/.ssh/atrium.pem -v skinnycorp@ec2-50-16-96-58.compute-1.amazonaws.com | |
| OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010 | |
| debug1: Reading configuration data /etc/ssh/ssh_config | |
| debug1: Applying options for * | |
| debug1: Connecting to ec2-50-16-96-58.compute-1.amazonaws.com [50.16.96.58] port 22. | |
| debug1: Connection established. |
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 Remove recommended follows from Twitter | |
| // @namespace http://www.lonelylion.com/grease | |
| // @include http://www.twitter.com/* | |
| // @include http://twitter.com/* | |
| // ==/UserScript== | |
| var nice_friend = jQuery('img.user-profile-link')[0].src; | |
| jQuery('.user-rec-inner').html('<img src="'+ nice_friend + '"> is super nice!'); |
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 Amazon CPL | |
| // @namespace http://www.lonelylion.com/ | |
| // @description Check for CPL books from Amazon | |
| // @include http://www.amazon.com/* | |
| // @require https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js | |
| // ==/UserScript== | |
| function addMenuItem(title, text) { | |
| // adds a menu item to the product details on the amazon page |
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
| Here's my import order (not sure if it matters): | |
| <script src="./lib/Lawnchair.js"></script> | |
| <script src="./lib/LawnchairAdaptorHelper.js"></script> | |
| <script src="./lib/adaptors/DOMStorageAdaptor.js"></script> | |
| And here's the output when I try it in Firebug on FF 3.6: | |
| >>> var people = new Lawnchair('people'); | |
| ReferenceError: WebkitSQLiteAdaptor is not defined { message="WebkitSQLiteAdaptor is not defined", more...} |
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
| message = 'chris is cool http://www.extjs.com/blog/2009/10/08/ext-js-designer-preview/ chris is cool' | |
| url = 'http://www.extjs.com/blog/2009/10/08/ext' | |
| new_url = 'http://bit.ly/QvMEU' | |
| print message.replace(url, new_url) # 'chris is cool http://bit.ly/QvMEU-js-designer-preview/ chris is cool' | |
| url_match = r'.*(http://[a-zA-Z0-9_.?=&/]*)' | |
| m = re.match(url_match, message) | |
| print m.groups()[0] |
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
| http://127.0.0.1:5984/jazzrecords/_design/artist yields: | |
| {"_id":"_design\/artist","_rev":"3356225496","language":"javascript","views":{"artist":{"map":"function(doc) {\n emit(doc._id, doc.artist);\n}"},"chris":{"map":"function(doc) {\n emit(null, doc);\n}"}}} | |
| Given the above, I assumed that http://127.0.0.1:5984/jazzrecords/_design/artist/_view/artist would give me a bunch of awesome data, but it gives me a 500 | |
| (smm)21:45:19-cmcavoy-~% wget http://127.0.0.1:5984/jazzrecords/_design/artist/_view/artist | |
| --2009-10-01 21:45:21-- http://127.0.0.1:5984/jazzrecords/_design/artist/_view/artist | |
| Connecting to 127.0.0.1:5984... connected. | |
| HTTP request sent, awaiting response... 500 Internal Server Error |
NewerOlder