Skip to content

Instantly share code, notes, and snippets.

View snoby's full-sized avatar

Snoby snoby

  • Roswell, Ga.
  • 19:58 (UTC -05:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am snoby on github.
  • I am iotapi322 (https://keybase.io/iotapi322) on keybase.
  • I have a public key ASDFxJP2dBvoxch5xg86dCv7BaIvNfRAoo__42AgjNYS9Ao

To claim this, I am signing this object:

@snoby
snoby / gist:7ffbdda69fff991575b11cb71c9aeb8b
Created May 24, 2016 14:21
unpushed but committed changes in all branches
alias git-list-unpushed='git for-each-ref --format "%(refname)" | grep "refs/remotes" | sed "s@refs/remotes/@@" | while read branch; do echo "$branch"; git cherry -v "$branch" "${branch/origin\//}"; done'
~/work/Official/tropo-haproxy-chef$ git diff .kitchen.yml
diff --git a/.kitchen.yml b/.kitchen.yml
index ce5c1a5..4e803b6 100644
--- a/.kitchen.yml
+++ b/.kitchen.yml
@@ -17,4 +17,20 @@ suites:
run_list:
- recipe[tropo-haproxy::kitchen]
- recipe[tropo-haproxy::default]
- attributes: {"tropo_haproxy":{"domains":{"wwwtest.example.com":{"hosts":["10.0.0.1"]}},"port_forward":{"8080":{"name":"portal","hosts":["10.0.0.2:8080"]},"8081":{"name":"wp","hosts":["10.0.0.3:8081"]}}}}
~/Desktop/Deadpool 2016 1080p BluRay x264 DTS-JYK$ ffmpeg -v debug -i Deadpool\ 2016\ 1080p\ BluRay\ x264\ DTS-JYK.mkv -t 00:00:10 -map_metadata 0:g -map 0:0 -map 0:1 -map 0:1 -c:v copy -c:a:0 aac -ac 2 -af "pan=stereo|FL=FC+0.6FL+0.2BL|FR=FC+0.6FR+0.2BR" -c:a:1 ac3 -ac 6 -movflags +faststart deadpool.mp4
ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --disable-doc --arch=x86_64 --enable-runtime-cpudetect
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libav
@snoby
snoby / gist:81ebc04bda376d27c1fbeb3c9a36965b
Last active August 23, 2016 02:40
Change ubuntu sources.list to use local repo mirror
RUN sed -i "s|archive.ubuntu.com|apt-mirror.docker.local|g" /etc/apt/sources.list
RUN sed -i "s|deb-src|#deb-src|g" /etc/apt/sources.list
deb [arch=amd64]
@snoby
snoby / highlevel.md
Created August 23, 2016 15:49
vl_users

VL Users How It Works

High Level

VL users is a bash script that is run by cron job on all of our managed machines once an hour. Initially when a machine is provisioned by our Chef configuration management tool this script is installed into a cron job on the machine.

How to Use

At the root directory of the repository there is a json file called "user_list.json". Open this file up and add your public key to the list along with your username. You may have more than one public key shared. The list is a json list so to add additional keys just put a comma and add your next key like this:

@snoby
snoby / jenkins_plugins_install.sh
Created August 26, 2016 17:37
Installation of jenkins plugins
#!/bin/bash
set -e
PLUGINS_ENDPOINT=http://updates.jenkins-ci.org/latest/
DATA=/var/lib/jenkins
mkdir -p $DATA/plugins
if find $DATA/plugins -maxdepth 0 -empty | read v; then
(cd $DATA/plugins && wget --no-check-certificate $PLUGINS_ENDPOINT/hipchat.hpi)
@snoby
snoby / OS X network optimize.txt
Last active March 16, 2023 04:41
OSX Sierra Network Performance Tweaks
#
# Reboot into recovery mode (cmd +r ) and in the terminal
#
nvram boot-args="serverperfmode=1 ncl=262144"
#reboot
#
# In regular mode
@snoby
snoby / parsing_error.txt
Created February 12, 2017 17:40
Parsing error sending to ffmpeg
~/work/myprojects/godevelopment/src/github.com/snoby/mkv2Appletv$ ./mkv2Appletv convert -d -t -i ~/Downloads/Man\ of\ Steel.mkv -o ~/Downloads/deleteme.mp4
Input filename: /Users/snoby/Downloads/Man of Steel.mkv
Information about file: /Users/snoby/Downloads/Man of Steel.mkv
Number of Streams: 13
File has duration: 8583.593000 (s)
Master Video codec: hevc
Master Audio codec: aac numChannels:8
***
Primary Video Stream (hevc)
Primary Audio Stream (aac)
@snoby
snoby / nginx.conf
Last active May 4, 2017 14:18
snippet of generated nginx.conf
daemon off;
worker_processes 4;
pid /run/nginx.pid;
worker_rlimit_nofile 261120;
events {
multi_accept on;
worker_connections 16384;
use epoll;