Function | Shortcut |
---|---|
New Tab | ⌘ + T |
Close Tab or Window | ⌘ + W (same as many mac apps) |
Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
Cycle iTerm Windows | ⌘ + backtick (true of all mac apps and works with desktops/mission control) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
for i in {1..24} | |
do | |
cat /usr/share/dict/words | grep -E "^.{$i}$" | wc -l | |
done | |
: ' | |
OUTPUT: |
here are a few tools to "pretty print" a string/file as a hex dump
The Complete MIDI 1.0 Detailed Specification states:
Special ID 7D is reserved for non-commercial use (e.g. schools, research, etc.)
and is not to be used on any product released to the public.
Here's a little bash one-liner to generate a somewhat unique 4-byte midi id:
This gist is to clean up and minimize the amout of information I'm including in the following pr/issue.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# create 1 second 440Hz sine wave | |
sox -n -c 1 -r 44100 sine.wav synth 1 sine 440 | |
# create 1 second of silence | |
sox -n -c 1 -r 44100 silence.wav trim 0 1 | |
# create 1 second 440Hz sine wave followed by 1 second of silence | |
sox -V sine.wav silence.wav output.wav |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 -m pip install --upgrade pip | |
python3 -m pip install --upgrade Pillow | |
python3 -m pip install --upgrade librosa | |
python3 -m pip install --upgrade pydub | |
python3 -m pip install --upgrade moviepy | |
python3 -m pip install --upgrade numpy scipy matplotlib ipython jupyter pandas sympy nose | |
python3 -m pip install --upgrade pysndfx | |
python3 -m pip install --upgrade pyopencl | |
python3 -m pip install --upgrade scikit-learn | |
python3 -m pip install --upgrade MulticoreTSNE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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) "$@" | |
} |
NewerOlder