Skip to content

Instantly share code, notes, and snippets.

Ryan Parrish stickystyle

  • Miami, FL
Block or report user

Report or block stickystyle

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
View comskip.ini
; See comskip.txt in the distribution zip file for many settable parameters, read manual.html, tuning.html and debugwindow.html for how to tune and debug comskip
detect_method=43 ; 1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 64=silence, 128=cutscenes, 255=all
validate_silence=1 ; Default, set to 0 to force using this clues if selected above.
validate_uniform=1 ; Default, set to 0 to force using this clues (like pure white frames) if blackframe is selected above.
validate_scenechange=1 ; Default, set to 0 to force using this clues if selected above.
verbose=10 ; show a lot of extra info, level 5 is also OK, set to 0 to disable
max_brightness=60 ; frame not black if any pixels checked are greater than this (scale 0 to 255)
test_brightness=40 ; frame not pure black if any pixels checked are greater than this, will
stickystyle /
Last active Mar 19, 2018
Auto-backup installed packages
UPDATED="#Updated: $(date)"
echo $UPDATED > ~/Dropbox/home/python/requirements.txt
pip3 freeze >> ~/Dropbox/home/python/requirements.txt
echo $UPDATED > ~/Dropbox/home/homebrew/leaves.txt
brew leaves >> ~/Dropbox/home/homebrew/leaves.txt
echo $UPDATED > ~/Dropbox/home/homebrew/casks.txt
brew cask list >> ~/Dropbox/home/homebrew/casks.txt
datestr=`date +'%Y-%m-%d'`
pouchdb-dump http://couchdb:5984/tenants-103 -o www/appdata/$filename
stickystyle / MySQL network benchmark
Created Apr 13, 2015
Simple script to monitor the network latencey between app servers and DB servers
View MySQL network benchmark
#!/bin/env python
import timeit
loops = 1000
setup = """
import MySQLdb
db = MySQLdb.connect(host="",
stickystyle /
Created Mar 31, 2015
lookup the apt-proxy server by its zeroconf srv record
dig +nocmd +noall +answer @ -p 5353 -t ptr _apt_proxy._tcp.local > /tmp/aptproxy
APTPROXY_HOST=$(grep "IN\sA\s" /tmp/aptproxy | awk '{print $5}')
APTPROXY_PORT=$(grep "IN\sSRV" /tmp/aptproxy | awk '{print $7}')
echo "Acquire::http::Proxy \"http://$APTPROXY_HOST:$APTPROXY_PORT\";" > /etc/apt/apt.conf.d/30proxy
stickystyle / Example Dockerfile
Last active Nov 12, 2018
Simple script to configure apt to use a squid-deb-proxy server configured at the _apt-proxy._tcp SRV record for the configured search domain
View Example Dockerfile
#just put this in your Dockerfile prior to doing any apt-get operations and your build will use the proxy
FROM ubuntu:14.04
RUN apt-get install -y --no-install-recommends dnsutils
ADD /root/
RUN /root/
stickystyle / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.