https://philna.sh/blog/2019/01/10/how-to-start-a-node-js-project/
npx license mit > LICENSE
npx gitignore node
npx covgen YOUR_EMAIL_ADDRESS
npm init -yhttps://philna.sh/blog/2019/01/10/how-to-start-a-node-js-project/
npx license mit > LICENSE
npx gitignore node
npx covgen YOUR_EMAIL_ADDRESS
npm init -y| # This wrapper method helps to suppress any unnecessary output | |
| # from stdout or stderr when executing a block of code. | |
| # | |
| # Reminder: any print/puts statements within the given block will | |
| # also be suppressed since they go to stdout. | |
| # | |
| # usage: suppress_output <block> | |
| # | |
| # eg: | |
| # suppress_output { ... } |
This script will sync your origin with upstream master, whether you're currently on master or checked-out on a working branch.
If you don't have an upstream remote then it will just pull and push to origin accordingly.
Just throw this in a file somewhere, chmod 755 that bad boy, and then export PATH="path/to/script:$PATH" in your favorite ~/.rc file to run from anywhere.
| #!/bin/sh | |
| # convert input.mov to 720px wide gif at 30fps | |
| # ./gifenc input.mov output.gif 720 30 | |
| palette="/tmp/palette.png" | |
| filters="fps=$4,scale=$3:-1:flags=lanczos" | |
| ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette |