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
| create mode 100644 Bundesgesetzblatt.js | |
| create mode 100644 CCfr (BnF).js | |
| create mode 100644 CSV.js | |
| delete mode 100644 CanLII (English).js | |
| create mode 100644 CanLII.js | |
| create mode 100644 DAI-Zenon.js | |
| create mode 100644 Eastview.js | |
| create mode 100644 Hispanic-American Periodical Index (Beta).js | |
| create mode 100644 National Library of Belarus.js | |
| create mode 100644 OhioLINK.js |
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
| """ | |
| Simple HTTP server to authenticate with gumroad. This is useful for getting | |
| a permanent auth token even if your application isn't a web app. Just use the | |
| auth token when making requests in the future. | |
| Start the process by visiting: | |
| https://gumroad.com/oauth/authorize?client_id=CLIENT_ID&redirect_uri=http://YOURSERVER:7980/callback&scope=edit_products | |
| """ |
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
| from flask import ( | |
| Flask, | |
| request, | |
| ) | |
| app = Flask(__name__) | |
| @app.route("/plsget") | |
| def plsget(): | |
| data = request.get_json(force=True) |
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
| root@d7dcfd34bd4a:~# telnet 172.17.1.250 8332 | |
| Trying 172.17.1.250... | |
| Connected to 172.17.1.250. | |
| Escape character is '^]'. | |
| HTTP/1.1 403 Forbidden | |
| Date: Fri, 15 Aug 2014 23:19:05 +0000 | |
| Connection: close | |
| Content-Length: 0 | |
| Content-Type: application/json | |
| Server: bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta |
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
| 00000219:httpstuff.accept(0005)=0438 from [172.17.0.155:55870] | |
| 00000219:httpstuff.clireq[0438:ffffffff]: GET / HTTP/1.1 | |
| 00000219:httpstuff.clihdr[0438:ffffffff]: User-Agent: curl/7.35.0 | |
| 00000219:httpstuff.clihdr[0438:ffffffff]: Host: localhost:9304 | |
| 00000219:httpstuff.clihdr[0438:ffffffff]: Accept: */* | |
| 0000021a:httpstuff.accept(0005)=043a from [172.17.0.155:55871] | |
| 00000219:httpstuff.clireq[043a:ffffffff]: GET / HTTP/1.1 | |
| 00000219:httpstuff.clihdr[043a:ffffffff]: User-Agent: curl/7.35.0 | |
| 00000219:httpstuff.clihdr[043a:ffffffff]: Host: localhost:9304 | |
| 00000219:httpstuff.clihdr[043a:ffffffff]: Accept: */* |
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
| """ | |
| Use python-bitcoinlib to do these things instead of whatever's below. | |
| """ | |
| import binascii | |
| import hashlib | |
| ADDRESSVERSION_MAINNET = b'\x00' | |
| ADDRESSVERSION_TESTNET = b'\x6f' | |
| ADDRESSVERSION = ADDRESSVERSION_MAINNET |
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
| """ | |
| Bitcoin spray: distribute BTC from a coinbase.com account into many addresses | |
| generated by a deterministic wallet (an electrum wallet). | |
| 1.0 BTC -> | |
| 0.01 BTC | |
| 0.01 BTC | |
| 0.01 BTC | |
| etc.. |
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
| """ | |
| Dump IRC logs from MySQL to stdout. | |
| """ | |
| import sys | |
| channel = sys.argv[-1] | |
| filename = channel.split("#")[-1] + ".log" | |
| password = raw_input("root pw: ") | |
| from sqlalchemy import create_engine |
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
| """ | |
| Type coercion for sqlalchemy prior to committing to some database. | |
| http://stackoverflow.com/questions/8980735/how-can-i-verify-column-data-types-in-the-sqlalchemy-orm | |
| """ | |
| from sqlalchemy import ( | |
| Column, | |
| Integer, | |
| String, |
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
| Downloading/unpacking unittest2py3k (from stormpath-sdk->-r ./requirements/requirements.txt (line 40)) | |
| Running setup.py egg_info for package unittest2py3k | |
| Traceback (most recent call last): | |
| File "<string>", line 16, in <module> | |
| File "/tmp/pip_build_root/unittest2py3k/setup.py", line 12, in <module> | |
| from unittest2 import __version__ as VERSION | |
| File "unittest2/__init__.py", line 61, in <module> | |
| from .case import (TestCase, FunctionTestCase, SkipTest, skip, skipIf, | |
| File "unittest2/case.py", line 539 | |
| def assertAlmostEqual(self, first, second, *, places=None, msg=None, |