brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aacc
brew install gifify
sudo apt-get install ffmpeg libavcodec-extra
ffmpeg -ss 30 -t 3 -i input.mp4 -vf "fps=25,scale=320:-1:flags=lanczos" -loop 0 output.gif
# delete all local merged branches with no activity within the last week | |
for k in $(git branch --merged | sed /\*/d); do | |
if [ -z "$(git log -1 --since='1 week ago' -s $k)" ]; then | |
echo git branch -d $k | |
fi | |
done | |
# delete all merged remote branches with no activity within the last month | |
for k in $(git branch -r --merged | cut -d ' ' -f3 | sed /\*/d); do | |
if [ -z "$(git log -1 --since='1 month ago' -s $k)" ]; then |
$ vim /usr/share/vim/vim80/defaults.vim | |
" In many terminal emulators the mouse works just fine. By enabling it you | |
" can position the cursor, Visually select and scroll with the mouse. | |
"if has('mouse') | |
" set mouse=r | |
"endif |
// array buffer to JSON | |
const dataString JSON.stringify(Array.from(new Uint8Array(arrayBuffer))); | |
// send around | |
// JSON to ArrayBuffer | |
new Uint8Array(JSON.parse(dataString)).buffer |
ssh git@bunker | |
cd /volume1/git/ | |
git --bare init <repo-name>.git | |
git update-server-info |
ng new project --routing true --skip-git true --skip-commit true --style scss | |
ng new --prefix=xyz --routing=true --style=scss --viewEncapsulation=ShadowDom project --skip-commit true |
cd pieces | |
mogrify *.bmp *.png | |
for PHOTO in *.png | |
do | |
convert "$PHOTO" -transparent white "$PHOTO" | |
done |
alias chrome-cors='google-chrome --disable-web-security --user-data-dir="${HOME}/tmp/chrome-cors"' |
To test a glob
pattern go over to globtester and play around with creating your own file structure online, it's super easy to get started that way.
If you want to test out a glob
pattern in the terminal use echo
followed by the pattern, for instance.
echo **/*.js
cd /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/out/vs/workbench/ | |
subl workbench.main.css | |
CMD+F .editor-container | |
add | |
-webkit-font-smoothing: antialiased | |