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
def make_python_md5sum(filename): | |
with open(filename, "rb") as instream: | |
md5 = hashlib.md5() | |
# for large files this might need to be a loop reading in | |
# chunks. md5.update will work correctly when being given blocks | |
block = instream.read() | |
md5.update(block) | |
return md5.hexdigest() | |
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/python3 | |
"""Block amazon. | |
I used https://github.com/joetek/aws-ip-ranges-json as the source of | |
Amazon IP address ranges so I wouldn't have to download them directly | |
from Amazon. | |
This depends on sudo, iptables and ip6tables being available. | |
git clone https://github.com/joetek/aws-ip-ranges-json |
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
Dask doesn't support the following argument(s). | |
* buf | |
* columns | |
* col_space | |
* header | |
* index | |
* na_rep | |
* formatters | |
* float_format |
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
Dask doesn't support the following argument(s). | |
* buf | |
* columns | |
* col_space | |
* header | |
* index | |
* na_rep | |
* formatters | |
* float_format |
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
"""A quickly written scraper to extract data from temp-and-precip/climatological-rankings | |
requires: requests, lxml, and grequests to run | |
Look to pip or your package panager. | |
it's likely to take a while to run as it looks like it will require | |
about 200 million http requests. | |
It'd be really nice if sites would let you request more than one data point at a time. |
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
[Desktop Entry] | |
Version=1.0 | |
Name=org-protocol helper | |
Comment=helper to allow GNOME to open org-protocol: pseudo-urls | |
TryExec=/usr/bin/emacsclient | |
Exec=/usr/bin/emacsclient %u | |
NoDisplay=true | |
Icon=emacs24 | |
Terminal=false | |
Type=Application |
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
def viewresp(response): | |
print(response.readLine()) | |
def main(): | |
from PyQt5 import QtCore | |
from PyQt5 import QtGui | |
from PyQt5 import QtNetwork | |
from PyQt5 import QtWidgets | |
app = QtWidgets.QApplication(sys.argv) |
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 | |
# /etc/init.d/pumpio | |
### BEGIN INIT INFO | |
# Provides: pump.io | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts pump.io as a background daemon |
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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:6a5b9dfb303e905036e3a15bfa0a3e0b41ad4bf9d5244673e6fdb3ba58c218ea" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
NewerOlder