export TANK_KEY="my tank key"
tank GET /bags
cat | tank PUT /bags/myNewBag Content-Type:'application/vnd.tiddlyweb+json
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
| var hyperquest = require('hyperquest'); | |
| hyperquest('http://www.reddit.com/comments/2ili8a').pipe(process.stdout); |
Here are examples of Upstart jobs (Ubuntu) and Systemd units (RHEL7, Arch, CoreOS).
They should be complete enough to get you started.
There are some shell commands needed in each case too:
...
I store my documents in a Camlistore, with a local instance running on my workstation and sync to an s3 bucket and a fixed server. Since I set this up 2 years ago, I've been manually starting camlistored and cammount inside a tmux session each time I log in to OSX.
Today I finally got around to setting up these processes to to start using the native OSX facility, launchd plists.
camlistoredandcammountshould be in/usr/local/bin. I have them symlinked via
cd /usr/local/bin && ln -s ~/go/camlistore.org/bin/cam* . &&
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Hi</title> | |
| </head> | |
| <body> | |
| <p>This gist is a quick way to try out and share ES6 code samples using <a href="https://gist.github.com/">Github Gist</a> and <a href="http://bl.ocks.org/">bl.ocks.org</a></p> | |
| <p>It points at the latest System.js and Babel and loads packages through the JSPM CDN.</p> | |
| <p>I've mangled the import paths so it imports from npm by default.</p> |
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
| docker run -t -p 8888:8888 -v ~/ipython_notebooks:/home/condauser/notebooks -i rothnic/anaconda-notebook |
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() some stuff from npm (like you were using browserify) | |
| // and then hit Run Code to run it on the right | |
| var net = require('net'); | |
| var socket = net.connect({ | |
| host: 'localhost', | |
| port: 64080 | |
| }); | |
| socket.on('error', function (err) { |
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
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration. | |
| You should not put any user code in this function besides modifying the variable | |
| values." | |
| (setq-default | |
| ;; Base distribution to use. This is a layer contained in the directory |
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
| localhost | |
| log access.log | |
| proxy /echo 127.0.0.1:2015/p { | |
| websocket | |
| } | |
| websocket /p/echo cat |
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
| localhost | |
| log access.log | |
| proxy /echo http://127.0.0.1:2016 { | |
| websocket | |
| } |