- Install Sublime GDB
- Create a new
sublime-project
file usingmongodb_source-seed-sublime_project.json
- Dance
This file contains 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
guz ui graphs && cd graphs && npm install --save d3 lodash debug && echo "console.log('hiya', require(lodash));" > index.js && echo '<html><body><h1>word</h1><script src="index.js"></script></body></html>' > index.html && npm start | |
> graphs@0.0.1 start /Users/lucas/graphs | |
> gulp dev | |
in guzzle | |
[gulp] Using gulpfile /Users/lucas/graphs/gulpfile.js | |
[gulp] Starting 'js'... | |
[gulp] Finished 'js' after 7.15 ms | |
[gulp] Starting 'cp'... |
This file contains 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
// There are various modes that Node can run in. The most common two | |
// are running from a script and running the REPL - but there are a few | |
// others like the debugger or running --eval arguments. Here we decide | |
// which mode we run in. | |
if (NativeModule.exists('_third_party_main')) { | |
// To allow people to extend Node in different ways, this hook allows | |
// one to drop a file lib/_third_party_main.js into the build | |
// directory which will be executed instead of Node's normal loading. | |
process.nextTick(function() { |
This file contains 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
# Print process name and connection details for each incoming connection not served by mongod. | |
sysdig -p "%proc.name %fd.name evt.type=accept and proc.name!=mongod" | |
# See the files where mongodb spends the most time doing I/O. | |
sysdig -c topfiles_time proc.name=mongod | |
# Show the network data that mongodb exchanged with 192.168.0.1. | |
sysdig -A -c echo_fds fd.sip=192.168.0.1 and proc.name=mongod | |
# Show every time a file is opened under /data/mongodb. |
This file contains 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
git clone git@github.com:10gen/mongoscope.git mgs; | |
cd mgs; | |
npm install; | |
DEBUG=mongo* bin/mongoscope.js; |
This file contains 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
git clone git@github.com:10gen/mongoscope.git mgs; | |
cd mgs; | |
npm install; | |
npm run-script dist; |
This file contains 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
git clone git@github.com:imlucas/wikipedia-edit-stream ~/; | |
cd ~/wikipedia-edit-stream && npm install; | |
DEBUG=* node example.js; | |
open http://localhost:29017/#database/dataset-wikipedia; |
hmmm
- python on centos hell
- sysadmins can (rightly so! love you!) be jerks.
- "But we'll use chef!" "but you can't have sudo, tho."
- write a little script for your mom that automatically copies photos
from the desktop folder, which is the only place she knows where to
put them to get the off the camera, to the dropbox folder you set up
for her but she has no idea how to use and instead of the next time
the hard drive goes on the best buy special you can just skip all of
OlderNewer