Skip to content

Instantly share code, notes, and snippets.

🧀
Rebooting

neoCogent neocogent

🧀
Rebooting
Block or report user

Report or block neocogent

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@neocogent
neocogent / bwlimit
Created Aug 22, 2017
Traffic shaping for Bitcoin full nodes
View bwlimit
#!/bin/bash
# Copyright (c) 2013 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#network interface on which to limit traffic
IF="wlan0"
#limit of the network interface in question
LINKCEIL="5mbit"
#limit outbound Bitcoin protocol traffic to this rate
@neocogent
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 neocogent.com 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/MovieRenderer.py (right after the MPEG4AC3Renderer class is good).
class H264AVCRenderer(MEncoderRenderer):
def __init__(self):
MEncoderRenderer.__init__(self)
@staticmethod
@neocogent
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
logging.captureWarnings(True)
#logging.basicConfig(level=logging.DEBUG)
You can’t perform that action at this time.