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 bitcoin.core import ( | |
lx, | |
b2lx, | |
CTransaction, | |
) | |
import bitcoin.rpc | |
proxy = bitcoin.rpc.Proxy() |
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
[pid 2710] munmap(0xf76d9000, 4096) = 0 | |
[pid 2710] gettimeofday({1415052462, 101172}, NULL) = 0 | |
[pid 2710] write(1, "zotero(3)(+0000000): HTTP server"..., 54zotero(3)(+0000000): HTTP server listening on *:1969 | |
) = 54 | |
[pid 2710] gettimeofday({1415052462, 101468}, NULL) = 0 | |
[pid 2710] gettimeofday({1415052462, 101526}, NULL) = 0 | |
[pid 2710] gettimeofday({1415052462, 101615}, NULL) = 0 | |
[pid 2710] gettimeofday({1415052462, 101671}, NULL) = 0 | |
[pid 2710] gettimeofday({1415052462, 101738}, NULL) = 0 |
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
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 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 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 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 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 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 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 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 |