Skip to content

Instantly share code, notes, and snippets.

View BrysonR's full-sized avatar

Bryson Reynolds BrysonR

  • uShip
  • Austin, TX
View GitHub Profile
#!/bin/zsh
export AWS_PROFILE=cicd;
unset ACCESS_KEY_ID;
unset SECRET_ACCESS_KEY;
unset SESSION_TOKEN;
role=$(aws sts assume-role --role-arn $1 --role-session-name $2)
@BrysonR
BrysonR / .hyper.js
Last active April 16, 2018 18:01
Hyper 2.0 Config
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
@BrysonR
BrysonR / Convert-For-G37S.sh
Created October 10, 2015 18:07
Convert Videos for G37S
#!/bin/bash
array=($(find /path/to/folder-with-movies-to-convert -name "*.avi" -and ! -name "*converted*"))
length=${#array[@]};
i=0;
while [ $i -lt $length ]; do
fileName=${array[$i]};
convertedName=${array[$i]%.avi}"_converted."${array##*.};
echo ${fileName};
ffmpeg -i ${fileName} -f avi -r 29.97 -vcodec libxvid -vtag dx50 -vf scale=704:384 -aspect 16:9 -maxrate 1800k -b:v 1500k -qmin 3 -qmax 5 -bufsize 4096 -mbd 2 -bf 2 -trellis 1 -flags +aic -cmp 2 -subcmp 2 -g 300 -acodec libmp3lame -ar 48000 -b:a 128k -ac 2 ${convertedName}
let i=i+1;