Skip to content

Instantly share code, notes, and snippets.

View q-rai's full-sized avatar

Andy Berres q-rai

View GitHub Profile
@q-rai
q-rai / VideoStreamingStats.py
Created August 11, 2017 23:30
Playing around with video streaming stats
uncompressedHD = 1920*1080*24
compressedHD = 2*8*1024**2
avgUSASpeed = 18.7
maxKnoxSpeed = 76.96
# https://www.fastmetrics.com/internet-connection-speed-by-country.php#average-speed-internet avg speed USA 2017: 18.7 Mbps
# https://www.fastmetrics.com/internet-connection-speed-map-usa.php TN average peak: 49Mbps
# http://www.speedtest.net/awards/us/knoxville-tn Knoxville peak: 76.96 Mbps; offered: 100Mbps
def scaleToSecMinMovie(bits):
@q-rai
q-rai / dashcam2video.py
Last active September 29, 2017 17:15
Convert series of dashcam images to video using ffmpeg
#
# Convert a series of dashcam images into a video
# Assumes time stamps as file names but will work for other images, too.
# Free to use but you may have to adapt this to suit your own needs.
#
# Author: Q-Rai
# Date: 2017-07-01
#
import glob
@q-rai
q-rai / .gitconfig
Created July 20, 2016 00:33 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
@q-rai
q-rai / tmux-cheatsheet.markdown
Created July 20, 2016 00:32 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname