Skip to content

Instantly share code, notes, and snippets.

View neocogent's full-sized avatar
🧀
Cheese

New Clarity neocogent

🧀
Cheese
View GitHub Profile

Testing done using a Canon EOS 600D and a Canon EF-S18-55mm f/3.5-5.6 IS II.

Pinout

  1. VBAT
  2. DET (common with P-GND on lens side)
  3. P-GND
  4. VDD
  5. DCL
  6. DLC
@neocogent
neocogent / bwlimit
Created August 22, 2017 06:50
Traffic shaping for Bitcoin full nodes
#!/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:3f83c5bddecdf00d1a6a
Last active December 10, 2015 16:22
Using socketIO-client module to test the Bitpay Insight socket data.
#!/usr/bin/env python
#
# socketio client
#
import sys, logging
logging.captureWarnings(True)
#logging.basicConfig(level=logging.DEBUG)
@neocogent
neocogent / gist:81cf598f00c2e8aeedae
Created May 17, 2015 06:04
Adding h264 support to PhotoFilmStrip
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