Skip to content

Instantly share code, notes, and snippets.

@asmega
asmega / index.sh
Created March 24, 2017 10:54
less with raw chars for colors / colours
less -R log.log
@asmega
asmega / gist:655bc09fbd5fa3c720457ef87112c791
Created March 20, 2017 22:24
ffmpeg limit frame rate
ffmpeg -i in.mp4 -r 30 out.mp4
# where r is framerate
@asmega
asmega / gist:f6e30b9623f74b87c9b83727fa1faf0a
Created March 19, 2017 20:37
dig lookup with specific dns server
dig example.com @nameserver.example.com
@asmega
asmega / 1.sh
Last active March 1, 2017 10:14
change aspect ratio of video
ffmpeg -i input.mp4 -vf setdar=dar=16/9 output.mp4
a = []
document.querySelectorAll(".smallTitleCard").forEach(function(e) {a.push(e.attributes['aria-label'].value)})
JSON.stringify(a)
@asmega
asmega / gist:43619bb940478f50077082dd42032590
Created January 4, 2017 22:43
git log exclude folder
git log -p -- . ":(exclude)name_of_folder"
@asmega
asmega / gist:cb0d30b5433d656c2aa097d73671902e
Created November 17, 2016 09:57
create new postgres data dir
pg_ctl init -D /usr/local/var/postgres
@asmega
asmega / import.sh
Last active October 27, 2016 14:38
import heroku db to local
pg_dump -c -x $(heroku config:get DATABASE_URL --app HEROKU_APP_NAME) | be rails db
@asmega
asmega / gist:f8e12e41d627f5f96f76
Last active February 19, 2016 13:35
react native
# npm run start -- --root <DIR>
npm run start -- --root .
ssh root@192.168.15.244
# password
# https://www.sven.de/kindle/
# mario
# fiona0e8
# fiona0e8b