Skip to content

Instantly share code, notes, and snippets.

View phantium's full-sized avatar

Dominique Debyttere phantium

  • Netherlands
  • 15:43 (UTC +01:00)
View GitHub Profile
@noromanba
noromanba / twitch-irc-with-weechat.mkd
Last active January 24, 2024 01:17
How to join Twitch IRC w/ WeeChat
View twitch-irc-with-weechat.mkd
@brianewing
brianewing / remotemd5.py
Created May 26, 2011 23:02
Python MD5 of remote file (URL)
View remotemd5.py
import os, hashlib, urllib2, optparse
def get_remote_md5_sum(url, max_file_size=100*1024*1024):
remote = urllib2.urlopen(url)
hash = hashlib.md5()
total_read = 0
while True:
data = remote.read(4096)
total_read += 4096