Skip to content

Instantly share code, notes, and snippets.

View nvictor's full-sized avatar

Victor Noagbodji nvictor

View GitHub Profile
@nvictor
nvictor / macos_terminal_2023.txt
Last active March 14, 2024 15:17
macos_terminal_2023.txt
setup in 2023
- zsh
- window size 80 x 24
- oh-my-zsh with theme dieter (https://github.com/ohmyzsh/ohmyzsh/wiki/Themes)
- zsh-autosuggestions (https://github.com/zsh-users/zsh-autosuggestions)
- cascadia mono pl size 18 (https://github.com/microsoft/cascadia-code)
- terminal theme The Hulk (https://github.com/lysyi3m/macos-terminal-themes)
- atuin (https://github.com/atuinsh/atuin)
- vitals (https://github.com/hmarr/vitals)
- gh / copilot (https://cli.github.com/)
@nvictor
nvictor / new_line_prompt.sh
Created February 9, 2024 15:35
new_line_prompt.sh
# Adding a new line in the command line prompt proved more difficult than needed
nl() {
printf "\n$ "
}
PROMPT='.... $(nl)'
@nvictor
nvictor / yt.js
Last active November 6, 2023 22:04
yt.js
const mastHeadHeight = document.querySelector("ytd-masthead").clientHeight;
let nextYtdRichGridRow = null;
function scrollToNextYtdRichGridRow() {
if (nextYtdRichGridRow === null) {
nextYtdRichGridRow = document.querySelector('ytd-rich-grid-row');
} else {
nextYtdRichGridRow = document.evaluate('following-sibling::ytd-rich-grid-row', nextYtdRichGridRow, null, XPathResult.FIRST_ORDERED_NODE_TYPE).singleNodeValue;
}
@nvictor
nvictor / accompaniments.md
Last active March 26, 2023 20:01
accompaniments.md

Some accompaninents

Name Description
Alberti bass root high middle high
Alberti bass variation, middle an octave higher root high middle(+oct) high
Alberti bass variation, alternating high root high root high middle high root high
Ascending broken chords root middle high
Descending broken chords high middle root
Waltz accompaniment root chord chord dexterity (oom pah pah)
@nvictor
nvictor / disable_pgup_pgdn.sh
Created March 26, 2023 13:16
disable_pgup_pgdn.sh
# Debian-based distros
# disable pgup
xmodmap -e "keycode 112="
# disable pgdn
xmodmap -e "keycode 117="
@nvictor
nvictor / midi_to_dynamics.md
Last active March 19, 2023 00:04
midi_to_dynamics.md

MIDI velocity values to dynamics markings

Velocity Dynamics marking Explanation
0-15 pianississimo extremely soft
16-31 pianissimo very soft
32-47 piano soft
48-63 mezzo-piano medium soft
64-79 mezzo-forte medium loud
80-95 forte loud
@nvictor
nvictor / macos_volume_bars.md
Last active March 18, 2023 01:08
macos_volume_bars.md

Volume bars mapped to percentage on Apple MacOS.

Bars Volume (%) Notes
0 0
1 6
2 13
3 19
4 25 listening level
5 31
@nvictor
nvictor / svg_to_png.sh
Created January 10, 2023 16:38
svg_to_png.sh
# macos
# brew install librsvg
rsvg-convert file.svg file.png
# With imagemagick
convert file.svg file.png
@nvictor
nvictor / youtube_dl_mp4.sh
Last active January 5, 2023 14:09
youtube_dl_mp4
youtube-dl --format=mp4 --output="%(title)s.%(ext)s" --restrict-filenames --batch-file="vid.txt"
@nvictor
nvictor / youtube_dl_mp3.sh
Last active January 5, 2023 14:09
youtube_dl_mp3
youtube-dl --extract-audio --audio-format=mp3 --output="%(title)s.%(ext)s" --batch-file="mus.txt"