Skip to content

Instantly share code, notes, and snippets.


neoCogent neocogent

View GitHub Profile
neocogent / bwlimit
Created Aug 22, 2017
Traffic shaping for Bitcoin full nodes
View bwlimit
# Copyright (c) 2013 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or
#network interface on which to limit traffic
#limit of the network interface in question
#limit outbound Bitcoin protocol traffic to this rate
neocogent / gist:81cf598f00c2e8aeedae
Created May 17, 2015
Adding h264 support to PhotoFilmStrip
View gist:81cf598f00c2e8aeedae
These two small changes worked for me to get h264 support. I also set the BitRate value in settings dialog to only 4000 as the default 12000 gives very large files. The options passed to Mencoder here are probably not perfect. They cause warnings in the err log file but the resulting video files have been working fine for me in XBMC. See my blog post at for more description and also generating filmstrip control parms programatically using SQL queries.
Insert this class into file /usr/lib/python2.7/dist-packages/photofilmstrip/core/renderer/ (right after the MPEG4AC3Renderer class is good).
class H264AVCRenderer(MEncoderRenderer):
def __init__(self):
neocogent / gist:3f83c5bddecdf00d1a6a
Last active Dec 10, 2015
Using socketIO-client module to test the Bitpay Insight socket data.
View gist:3f83c5bddecdf00d1a6a
#!/usr/bin/env python
# socketio client
import sys, logging
You can’t perform that action at this time.