A few phone signals via sox commands.
More details:
For info about touch tone / dtmf, see:
#!/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 |
const suits = ['hearts', 'clubs', 'spades', 'diamonds']; | |
const cards = ['joker', 'ace', 2, 3, 4, 5, 6, 7, 8, 9, 10, 'jack', 'queen', 'king']; | |
const deck = Array.from({ length: 52 }, (_, i) => ({i, suit: suits[i % 4], card: cards[i % 13] })); |