I've had a Python script that makes an HTML Bookmarks file for LaunchBar.
Now that I use Alfred 2, I modified it to make XML for Alfred.
This allows me to search my bookmarks with GREP SPEED!
First, add your credentials to ~/.netrc
| Datacenter: DC1 | |
| =============== | |
| Status=Up/Down | |
| |/ State=Normal/Leaving/Joining/Moving | |
| -- Address Load Tokens Owns Host ID Rack | |
| UN 10.5.1.49 73.86 GB 256 ? 1468d1dc-4f21-4b95-949b-f20f5f8f98e9 RAC1 | |
| UN 10.5.5.131 82.13 GB 256 ? f3f3c269-c296-4284-adb6-e3d70d2100de RAC1 | |
| UN 10.5.1.51 115.98 GB 256 ? def02c15-1e80-467e-92ea-65f27d57f02f RAC1 | |
| UN 10.5.3.237 131.17 GB 256 ? 0b8b870b-2fe1-4fcc-8eaa-71e8958456b7 RAC1 | |
| UN 10.5.1.137 358.89 MB 256 ? 0621391a-62d6-4073-8d8d-69f76edc40c9 RAC1 |
| ### Keybase proof | |
| I hereby claim: | |
| * I am cjs226 on github. | |
| * I am cjs226 (https://keybase.io/cjs226) on keybase. | |
| * I have a public key whose fingerprint is 831D EA41 33FC 75C5 5499 F362 3635 5593 D86E 8B3C | |
| To claim this, I am signing this object: |
| npm http GET http://npm-01.pub.spanning.co:5984/registry/_design/app/_rewrite/ecstatic │├── [email protected] npm http 500 http://npm-01.pub.spanning.co:5984/registry/_design/app/_rewrite/ecstatic │├── [email protected] npm ERR! Error: render_error function raised error: (new TypeError("/^[0-9]+$/.test is not a function│├── [email protected] ([email protected]) ", "", 270)) │├── [email protected] ([email protected]) npm ERR! stacktrace: ("1",0,[object Array])@:270 │├── [email protected] ([email protected], [email protected]) npm |
| [Fri, 22 Nov 2013 20:47:25 GMT] [error] [<0.1298.0>] Uncaught server error: {<<"render_error">>, | |
| <<"function raised error: (new TypeError(\"/^[0-9]+$/.test is not a function\", \"\", 270)) \nstacktrace: (\"1-beta\",0,[object Array])@:270\nSemVer(\"0.3.0-1-beta\",true)@:269\nparse(\"0.3.0-1-beta\",true)@:222\nclean(\"0.3.0-1-beta\",true)@:234\n([object Object],[object Object])@:17\nrunShow(function (doc, req) {require(\"monkeypatch\").patch(Object, Date, Array, String);var semver = require(\"semver\"), code = 200, headers = {'Content-Type': \"application/json\"}, body = null;delete doc.ctime;delete doc.mtime;if (doc.versions) {Object.keys(doc.versions).forEach(function (v) {delete doc.versions[v].ctime;delete doc.versions[v].mtime;});}if (doc.versions) {for (var v in doc.versions) {var clean = semver.clean(v, true);doc.versions[v].directories = doc.versions[v].directories || {};if (clean !== v) {var p = doc.versions[v];delete doc.versions[v];p.version = v = clean;p. |
| <?php | |
| ini_set('display_errors', 'On'); | |
| error_reporting(E_ALL | E_STRICT); | |
| if (($argc < 2) || ($argc > 4)){ | |
| print "$argv[0] <application env>\n"; | |
| exit(1); | |
| } | |
| if (!defined('APPLICATION_ENV')) |
| root@chef-01:/var/log/chef-server/erchef# netstat -na | grep 4000 | |
| root@chef-01:/var/log/chef-server/erchef# netstat -na | grep 4040 | |
| root@chef-01:/var/log/chef-server/erchef# sudo chef-server-ctl status | |
| run: bookshelf: (pid 3440) 1528s; run: log: (pid 3439) 1528s | |
| run: chef-expander: (pid 3114) 1534s; run: log: (pid 3113) 1534s | |
| run: chef-server-webui: (pid 6804) 1475s; run: log: (pid 6803) 1475s | |
| run: chef-solr: (pid 2710) 1540s; run: log: (pid 2709) 1540s | |
| run: erchef: (pid 9881) 1420s; run: log: (pid 3945) 1517s | |
| run: nginx: (pid 9733) 1423s; run: log: (pid 9732) 1423s | |
| run: postgresql: (pid 487) 1557s; run: log: (pid 486) 1557s |
| old_node = "x" | |
| old_bod = 9999999999 | |
| search(:node, "role:www") do |matching_node| | |
| bod = "#{matching_node['ohai_time']}".to_i - "#{matching_node['uptime_seconds']}".to_i | |
| if bod < old_bod | |
| old_node = matching_node | |
| old_bod = bod | |
| end | |
| end |
| { | |
| "id": "cool_app-v1-production", | |
| "product": "cool_app", | |
| "version": "1", | |
| "environment": "production", | |
| "db": [ | |
| { "id": "db23", | |
| "host": "db23.xyz.us-east-1.rds.amazonaws.com", | |
| "type": "data" }, | |
| { "id": "db46", |