Skip to content

Instantly share code, notes, and snippets.

All possible locales:
en-IE = €1,205.34
ro-MD = 1.205,34 MDL
br = ¤ 1 205,34
en-GY = $1,205
es-GT = Q1,205.34
shi-Tfng-M = 1 205,34MAD
@74k
74k / ffmpeg virtual cam.txt
Created January 30, 2025 17:00 — forked from andriitishchenko/ffmpeg virtual cam.txt
ffmpeg virtual cam macOS
1 install ffmpeg
2 install AkVirtualCamera driver https://github.com/webcamoid/akvirtualcamera/releases
3 install webcamoid https://webcamoid.github.io (stuck all hte time)
cd /Applications/AkVirtualCamera/AkVirtualCamera.plugin/Contents/Resources
./AkVCamManager remove-device AkVCamVideoDevice0
./AkVCamManager add-format AkVCamVideoDevice0 RGB24 640 480 30
./AkVCamManager add-device "FaceTime HD Camera 0 (Built-in)"
./AkVCamManager add-format AkVCamVideoDevice0 RGB24 640 480 30
./AkVCamManager update
@74k
74k / figure_out_chord.rb
Created November 10, 2024 11:14 — forked from aalin/figure_out_chord.rb
Figure out chord intervals
# Program output:
#
# Chord: [0, 4, 7]
# [:major, [[0, :unison], [4, :third], [7, :fifth]]]
# [:minor, [[0, :unison], [3, :third], [8, :sixth]]]
# [:major, [[0, :unison], [5, :fourth], [9, :sixth]]]
# Chord: [0, 4, 7, 11]
# [:major, [[0, :unison], [4, :third], [7, :fifth], [11, :seventh]]]
# [:minor, [[0, :unison], [3, :third], [7, :fifth], [8, :sixth]]]
# [:major, [[0, :unison], [4, :third], [5, :fourth], [9, :sixth]]]
@74k
74k / conventional-commits-cheatsheet.md
Created September 12, 2024 10:29 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commits Cheatsheet

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@74k
74k / README.md
Created September 12, 2024 10:25 — forked from levibostian/README.md
Beginner guide to conventional commits.

You know that when you are writing code and you make a git commit to your code? You know that when you make a commit, you are asked to type a message for that commit, right?

Conventional commits are a set of rules to follow for what to type for your commit messages. For example, let's say that you add a new feature to your latest app where users can upload a photo for their profile. Instead of writing a commit message like this: Add feature so users can upload profile picture for profile, you would write a commit message like this: feat(profile): user can upload profile picture. Notice that when you read both messages, they both mean the same thing. However, they are written in 2 different formats. When you write your commit message in the later format, we call that a Conventional commit.

Why?

Conventional commits are becoming more popular today and for good reason. Conventional commits are not only more descriptive to read, but they are written in a format that a computer can understand better

@74k
74k / .tmux.conf
Created August 12, 2024 08:41 — forked from LintaoAmons/.tmux.conf
Popup terminal with tmux
# ... your other config
bind-key -n M-3 run-shell 'toggle-tmux-popup'
# you can switch `M-3` to any keybindings you like.
@74k
74k / tmux-cheatsheet.markdown
Created May 11, 2024 07:10 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@74k
74k / iterm2.md
Created May 6, 2023 23:49 — forked from squarism/iterm2.md
An iTerm2 Cheatsheet

Tabs and Windows

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)
@74k
74k / Nework_throttling_profiles.md
Created April 19, 2023 14:21 — forked from theodorosploumis/Nework_throttling_profiles.md
Web development - Custom network throttling profiles
Profile download (kb/s) upload (kb/s) latency (ms)
Native 0 0 0
GPRS 50 20 500
56K Dial-up 50 30 120
Mobile EDGE 240 200 840
2G Regular 250 50 300
2G Good 450 150 150
3G Slow 780 330 200
@74k
74k / country_date_formats.csv
Created February 7, 2023 14:59 — forked from mlconnor/country_date_formats.csv
Listing of countries with their preferred date formats, ISO3166 code, ISO629-2
ISO 3166 Country Code ISO639-2 Country Code Country ISO 3166 Country Code ISO639-2 Lang Language Date Format
ALB AL Albania sqi sq Albanian yyyy-MM-dd
ARE AE United Arab Emirates ara ar Arabic dd/MM/yyyy
ARG AR Argentina spa es Spanish dd/MM/yyyy
AUS AU Australia eng en English d/MM/yyyy
AUT AT Austria deu de German dd.MM.yyyy
BEL BE Belgium fra fr French d/MM/yyyy
BEL BE Belgium nld nl Dutch d/MM/yyyy
BGR BG Bulgaria bul bg Bulgarian yyyy-M-d
BHR BH Bahrain ara ar Arabic dd/MM/yyyy