I hereby claim:
- I am t4cc0re on github.
- I am t4cc0re (https://keybase.io/t4cc0re) on keybase.
- I have a public key ASAQ5kbktVTaXWbwRLdDxG9YbCbtQpNpNqbRW0vmp2V81Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var makeItWindows = function (text) { | |
return text.replace(/\x1b\[[0-9;]*m/g,"").replace(/\r?\n/g,"\r\n"); | |
}; |
#!/bin/bash | |
# Sign key has to have no password or enter it into SIGN_PASSPHRASE | |
export SIGN_PASSPHRASE="" | |
# Leave this blank. This will enforce GnuPG engryption | |
export PASSPHRASE="" | |
# Change the KeyIDs in the next lines to match yours. | |
# The encrypt key needs to be trusted and the signkey needs the private key in the GnuPG Keychain | |
export SIGNKEY="" | |
export ENCRYPTKEY="" |
#!/bin/bash | |
# Get middle of video and crop it to 9/16 | |
ffmpeg -i "$1" -threads 0 -c:v libx264 -c:a copy -c:s copy -s:t copy -map 0 -vf "scale=iw*sar:ih, crop=min(iw\,ih*(9/16)):ow/(9/16)" -aspect 9:16 -map_metadata 0 -preset ultrafast -crf 19 "tmp.mp4" | |
# rotate by 90 degrees counter colckwhise | |
ffmpeg -i "tmp.mp4" -vf "transpose=2" "tmp2.mp4" | |
# scale to 1080 | |
ffmpeg -i "tmp2.mp4" -vcodec libx264 -profile:v high -preset fast -crf 18 -b-pyramid none -acodec ac3 -ab 1536k -scodec copy -vf "scale=1920:1080" "$1_final_1080.mp4" | |
# rm tempfiles | |
rm tmp.mp4 tmp2.mp4 |
[program:SpiderOakONE] | |
command = /usr/bin/SpiderOakONE --verbose --headless | |
stdout_logfile = /var/log/supervisor/%(program_name)s.log | |
stderr_logfile = /var/log/supervisor/%(program_name)s.log | |
pidfile = /var/run/spideroakone.pid | |
autorestart = true | |
numprocs = 1 | |
process_name = SpiderOakONE | |
numprocs_start = 1 | |
autostart = true |
echo "`whoami` ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/`whoami` |
#/usr/bin/env bash | |
# this assumes you have installed your public key and have means to access to the server. | |
rm -rf /etc/ssh/ssh_host_* | |
ssh-keygen -A | |
passwd -d root | |
sed -i 's/^[# ]*PermitRootLogin [^\r\n\]\+$/PermitRootLogin without-password/gmi' /etc/ssh/sshd_config | |
sed -i 's/^[# ]*ServerKeyBits [^\r\n]\+$/ServerKeyBits 2048/gmi' /etc/ssh/sshd_config | |
sed -i 's/^[# ]*PermitEmptyPasswords [^\r\n]\+$/PermitEmptyPasswords no/gmi' /etc/ssh/sshd_config | |
sed -i 's/^[# ]*PubkeyAuthentication [^\r\n]\+$/PubkeyAuthentication yes/gmi' /etc/ssh/sshd_config | |
sed -i 's/^[# ]*PasswordAuthentication [^\r\n]\+$/PasswordAuthentication no/gmi' /etc/ssh/sshd_config |
#!/usr/bin/env bash | |
until nc -vzw 2 $1 $2 &> /dev/null; do echo Host $1 is NOT reachable on port $2; sleep 5; done && echo Host $1 IS reachable on port $2; exit 0; |
//... | |
gulp.task('stuff', function (cb) { | |
gulp.src([...]) | |
.pipe(...) | |
.pipe(...) | |
.pipe(...) | |
.pipe(...) | |
.on('end', cb); | |
}); | |
//... |
[user] | |
email = mail | |
name = user | |
signingkey = 8-digit-gpg-key | |
[gpg] | |
program = gpg2 | |
[commit] | |
gpgsign = true | |
[push] | |
default = matching |