Skip to content

Instantly share code, notes, and snippets.

View nvictor's full-sized avatar

Victor Noagbodji nvictor

View GitHub Profile
@nvictor
nvictor / common_words.txt
Created August 29, 2022 16:26
common_words.txt
# Remove this line! Original: /usr/share/groff/current/eign
a
i
the
to
of
and
in
is
it
@nvictor
nvictor / top_words.sh
Last active August 29, 2022 16:24
top_words.sh
# basic
cat **/*.txt | tr -sc "[:alnum:]" "\n" | tr "[:upper:]" "[:lower:]" | sort | uniq -c | sort -nr | head -10
# remove stop / common words
cat **/*.txt | tr -sc "[:alnum:]" "\n" | tr "[:upper:]" "[:lower:]" | fgrep --word-regexp --invert-match --file common_words.txt | sort | uniq -c | sort -nr | head -10
@nvictor
nvictor / better_error_messages.py
Created May 8, 2022 12:19
better_error_messages.py
# NOTE(victor): the error is the unclosed print() statement
print("""Are we getting better error messages yet?"""
if __name__ == "__main__":
print("Are we?")
@nvictor
nvictor / remove_edge_favorites_mac.sh
Last active August 2, 2022 14:09
remove_edge_favorites_mac.sh
# edge://version shows the path to the profile folder
cd /Users/victor/Library/Application\ Support/Microsoft\ Edge/Default/
rm Bookmarks
rm Bookmarks.msbak
@nvictor
nvictor / systems.txt
Last active November 22, 2021 03:14
systems.txt
thinking in systems by donella meadows
a) the behavior of a system cannot be known by just knowing the elements
of which the system is made — blind men and elephant
b) a system is more than the sum of its parts — made of parts,
interconnections, purpose. changing interconnections and purpose change
the system
c) stocks are important elements in a system — connected by flows
@nvictor
nvictor / ffmpeg_frames.sh
Created July 23, 2021 03:14
ffmpeg_frames.sh
ffmpeg -i input.mp4 -ss 00:00:00.000 -t ddd output_%03d.png
@nvictor
nvictor / tmux_term_setting.sh
Created April 10, 2021 19:05
tmux_term_setting.sh
# Because if you don't do this tmux will default to screen...
# See: https://github.com/zsh-users/zsh-autosuggestions/issues/229
if [ ! "$TMUX" = "" ]; then export TERM=xterm-256color; fi
@nvictor
nvictor / sor_musical_influences.md
Last active November 11, 2020 23:00
sor_musical_influences.md
@nvictor
nvictor / sounds_names.md
Last active August 30, 2022 03:59
sounds_names.md
english french
buzzing bourdonnement
clinking cliquetis (tintement)
clanging cliquetis (métalique)
cracking claquement (tonnerre)
creaking grincement (métal)
crunching craquement
grunting grognement
@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