Skip to content

Instantly share code, notes, and snippets.

View snoby's full-sized avatar

Snoby snoby

  • Roswell, Ga.
  • 22:24 (UTC -05:00)
View GitHub Profile
@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 / 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]
~/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
~/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"]}}}}
@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'

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: