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
Verifying that +cornexo is my openname (Bitcoin username). https://onename.com/cornexo |
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
### Keybase proof | |
I hereby claim: | |
* I am cornexo on github. | |
* I am cornexo (https://keybase.io/cornexo) on keybase. | |
* I have a public key whose fingerprint is 2692 31DB AD94 0E38 92EB 650C E1E4 0BD2 C6F1 8B72 | |
To claim this, I am signing this object: |
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 | |
workfolder=/path/to/sourcefiles | |
outputfolder=/path/to/outputfiles | |
/Applications/HandbrakeCLI --input $workfolder/$1 --title 1 --output $outputfolder/$1.mp4 --format mp4 --markers --encoder x264 --encopts ref=1:weightp=1:subq=2:rc-lookahead=10:trellis=0:8x8dct=0:ref=1:subme=2:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0 --vb 800 --loose-anamorphic --audio 1 --aencoder copy:aac |
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 | |
workfolder=/path/to/sourcefiles | |
if [ -d "/Volumes/DVD_VIDEO_RECORDER/" ]; then | |
mkdir -p $workfolder/$1 | |
cp -vR /Volumes/DVD_VIDEO_RECORDER/* $workfolder/$1/ | |
drutil eject | |
else | |
echo "DVD not mounted" |
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 | |
workfolder=/path/to/sourcefiles | |
cd ${workfolder} | |
counter=1 | |
for workfile in $1-*.mp4; | |
do | |
ffmpeg -y -i $workfile -c copy -bsf:v h264_mp4toannexb -f mpegts $workfile.ts | |
if [ "$counter" -eq "1" ] | |
then | |
concatstring="concat:$workfile.ts" |
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
message =<<-EOF | |
Usage: | |
ruby hd.rb DISK_NAME [options] | |
Options: | |
[--mount] # Mounts hard drive in /Volumes/EXT_HD | |
[--umount] # Umounts hard drive in /Volumes/EXT_HD |
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
kill -s SIGCHLD <ppid> |
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
cat *.txt | sort | uniq -c | sort -nr |