A Pen by Bryson Reynolds on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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; |