Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
FONTFILE=/usr/share/fonts/truetype/freefont/FreeSerif.ttf
TEXT="bladeRF_ATSC_Demo_TBM2"
VIDEOFILE="$1"
OUTFILE="$2"
#FILTERS="-vf drawtext=fontfile=${FONTFILE}:text=${TEXT}:x=100:y=50:fontsize=72:fontcolor=white@0.6:box=1:boxcolor=black@0.2 -t 327"
VIDEO_CODEC="-vcodec mpeg2video -s hd720 -r 25"
VIDEO_QUALITY="-b:v:0 8M"
#!/usr/bin/env python
'''pyCookieCheat.py
20140701 v 2.1: Modularized the code, made it compatible with Python 2, and added an encryption function
Use your browser's cookies to make grabbing data from login-protected sites easier.
Intended for use with Python Requests http://python-requests.org
Accepts a URL from which it tries to extract a domain. If you want to force the domain,
just send it the domain you'd like to use instead.
@cyrozap
cyrozap / fix-committer.sh
Created June 30, 2014 20:22
Fix wrong committer/author name/email
git filter-branch -f --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "<OLDCOMMITTEREMAIL>" ]
then
cn="<NEWCOMMITTERNAME>"
@cyrozap
cyrozap / oshpark_crawler.py
Created March 23, 2014 01:32
OSHPark doesn't have an easy way to search through its shared projects so I wrote this simple Python program to grab each project's searchable data and dump it into an SQLite database.
#!/usr/bin/env python
"""
Usage: oshpark_crawler.py
This script steps through OSHPark's shared projects pages and adds each
project's ID, name, and description to a local SQLite database for easy
searching.
"""
#include <SimpleRemote.h>
#include <Bounce.h>
const byte PLAY_BUTTON_PIN = 5;
const byte VOL_PLUS_BUTTON_PIN = 6;
const byte VOL_MINUS_BUTTON_PIN = 7;
const unsigned long DEBOUNCE_MS = 20;
Bounce playButton(PLAY_BUTTON_PIN, DEBOUNCE_MS);