A few phone signals via sox commands.
More details:
For info about touch tone / dtmf, see:
| ## say with a random voice | |
| say_rand () { | |
| say -v $(say -v ? | awk '{print $1}' | shuf -n1) "$@" | |
| } | |
| ## say with a random english voice | |
| say_rand_en () { | |
| say -v $(say -v ? | grep en_ | awk '{print $1}' | shuf -n1) "$@" | |
| } |
| #!/usr/bin/env bash | |
| find . -type f -name package-lock.json -not -regex ".*node_modules.*" -delete |
| #!/bin/bash | |
| for i in $(sox −h | grep "AUDIO FILE FORMATS: " | sed -e "s/AUDIO FILE FORMATS: //") | |
| do | |
| FNAME="sox-sine.$i" | |
| echo "$FNAME" | |
| sox -n "$FNAME" synth .1 sine 440 | |
| mediainfo "$FNAME" | |
| # remove files that can't be read by sox | |
| soxi "$FNAME" || rm "$FNAME" |
| #!/bin/bash | |
| # https://unix.stackexchange.com/questions/40638/how-to-do-i-convert-an-animated-gif-to-an-mp4-or-mv4-on-the-command-line/294892#294892 | |
| ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4 |
A few phone signals via sox commands.
More details:
For info about touch tone / dtmf, see:
| #!/usr/bin/env bash | |
| # found these useful commands here: | |
| # https://unix.stackexchange.com/questions/60776/list-all-files-binaries-in-current-path/60808#60808 | |
| # | |
| # compgen -c # will list all the commands you could run. | |
| # compgen -a # will list all the aliases you could run. | |
| # compgen -b # will list all the built-ins you could run. | |
| # compgen -k # will list all the keywords you could run. |
IndexedDB:
see also: https://nolanlawson.github.io/database-comparison-worker-pouch/
| import webdriver from 'selenium-webdriver'; | |
| const getDriver = async () => | |
| new webdriver.Builder() | |
| .forBrowser('chrome') | |
| .withCapabilities({ | |
| browserName: 'chrome', | |
| chromeOptions: { | |
| args: ['headless'], | |
| binary: '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary' |
| #!/bin/bash | |
| find ~/.nvm/versions/node/*/lib/node_modules \ | |
| -mindepth 1 -maxdepth 1 -type d -exec basename {} \; | sort | uniq |