A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| # use ImageMagick convert | |
| # the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf | |
| convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf |
| #!/bin/zsh -i | |
| # if you're using ZSH, change the shebang above to "#!/bin/zsh -i" | |
| eval "$(rbenv init -)" | |
| if [ ${#} -ne 2 ]; then | |
| echo >&2 Usage: $(basename ${0}) old-version new-version | |
| exit 1 | |
| fi |
| get_latest_release() { | |
| curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
| grep '"tag_name":' | # Get tag line | |
| sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
| } | |
| # Usage | |
| # $ get_latest_release "creationix/nvm" | |
| # v0.31.4 |
| #!/bin/bash | |
| # copy is a misnomer; it's actually LIST + INSTALL | |
| # --from 2.2.1 [--to other-version-else-whatever-is-currently-set] | |
| # | |
| # TODO: install only most-recent version that's installed in FROM | |
| # TODO: use gem names only from FROM, install latest available version (might be more recent than in FROM) | |
| # TODO: pass arguments to gem command (e.g. --no-document) | |
| CURRENT_VERSION=`rbenv version | cut -d' ' -f1` | |
| GEM_LIST_ARGS="--local" |
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
| # Set variables in .bashrc file | |
| # don't forget to change your path correctly! | |
| export GOPATH=$HOME/golang | |
| export GOROOT=/usr/local/opt/go/libexec | |
| export PATH=$PATH:$GOPATH/bin | |
| export PATH=$PATH:$GOROOT/bin |
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev