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
josh@jump:~$ ./bin/notebook.sh | |
Container not running, starting up | |
55d2f299de8e7d6683b81817556cf7bd4f627740fefe30457019a8f88c1631b7 | |
In another terminal (or exit this and reconnect) then run: | |
ssh -L 8080:localhost:32771 [email protected] | |
Then open your browser to http://localhost:8080 | |
When you're done, save system resources by running | |
./bin/notebook.sh clean | |
josh@jump:~$ ./bin/notebook.sh |
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
#!/usr/bin/env python | |
import requests | |
s = requests.Session() | |
def url_for(path): | |
return "https://localhost/softnas/" + path |
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
#!/usr/bin/env python | |
from pygtail import Pygtail | |
from datadog import statsd | |
import re | |
# nginx.net.response_time | |
# statsd.histogram('', duration) | |
# nginx.net.response_codes.<x> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env python | |
import requests | |
import sys | |
import lxml.html | |
import urlparse | |
import posixpath | |
import os | |
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
$ http get http://127.0.0.1:5000/ Origin:http://example.com Access-Control-Request-Method:POST Access-Control-Request-Headers:X-Requested-With | |
HTTP/1.0 200 OK | |
Access-Control-Allow-Headers: ACCEPT, CONTENT-TYPE | |
Access-Control-Allow-Methods: DELETE, GET, HEAD, OPTIONS, POST, PUT | |
Access-Control-Allow-Origin: * | |
Access-Control-Max-Age: 21600 | |
Content-Length: 25 | |
Content-Type: application/json | |
Date: Wed, 08 Oct 2014 21:55:34 GMT |
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
#!/usr/bin/env python | |
from __future__ import print_function | |
from fabric.api import task, local, env, put | |
import re | |
import fileinput | |
import os | |
import datetime | |
import subprocess | |
import requests |
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
#!/usr/bin/env python | |
""" A cross-platform (POSIX, at least) tool to list running IPython Notebooks | |
and their working directories. | |
This code will be incredibly simpler to write as of IPython 3.0, so | |
contains numerous workarounds to make it work on 2.x. | |
Thanks to @takluyver for the suggestions for improvement. |
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
#!/bin/bash | |
# usage: nbgrep 'pattern' | |
SEARCHPATH=~/work/ | |
# 'jq' technique lifted with gratitude | |
# from https://gist.github.com/mlgill/5c55253a3bc84a96addf | |
# Break on newlines instead of any whitespace |
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
from scene import * | |
import time | |
import clipboard | |
import sys | |
import speech | |
class SimpleSinister(object): | |
def __init__(self): | |
NewerOlder