Skip to content

Instantly share code, notes, and snippets.

View todgru's full-sized avatar

todgru

  • Portland, OR
View GitHub Profile
@todgru
todgru / conventional-commits-cheatsheet.md
Created January 31, 2025 16:17 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commits Cheatsheet

Conventional Commit Messages starline

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

@todgru
todgru / beelink-restart-after-power-loss-bios.md
Created December 4, 2024 17:55
beelink eq restart power loss bios
@todgru
todgru / hp-elitedesk-800-g5-power-loss-restart-bios.md
Created December 4, 2024 17:48
hp elitedesk 800 g5 mini restart after power loss bios

HP Elitedesk 800 G5 mini restart after power loss

These settings will allow the HP to restart after a power loss. Useful if the computer is running as a headless server.

From https://www.youtube.com/watch?v=JVQutwAVYiY

  1. turn on computer
  2. immediately press F10 to enter bios
  3. select "Advanced" tab (arrow key left/right)
@todgru
todgru / sched.md
Created November 4, 2024 22:38
mac os x schedule not cron zsh

sched

One off jobs in Mac OS X can be scheduled using the zsh command sched

to run a script in 10 minutes:

sched +600 /path/to/my-script.sh
@todgru
todgru / python-virtual-env.md
Last active February 17, 2025 22:20
python virtual environments with autoload version

Mac OS X python virtual environments setup for new or existing projects

install pyenv

# install pyenv
curl https://pyenv.run | bash

# set env vars to support pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
@todgru
todgru / git-diff-github.md
Created September 24, 2024 20:36
git diff vs github pr diff

Git diff: double dots vs tripple dots

  • double dots: simple diff
  • tripple dots: common ancestor diff

Examples

Use double dots (..) to show changes in the feature branch that are not in the parent.

@todgru
todgru / docker-audio-mac-m1.md
Last active April 8, 2024 19:56
Audio/sound from Docker container on M1 MacBook PRO 2019

Audio/sound from Docker container on M1 MacBook PRO 2019

Install pulseaudio with brew

brew install pulseaudio

NOTE: do not run pulseaudio as service wth brew. If started, stop the service.

@todgru
todgru / git-diff-file-name.md
Created February 7, 2024 23:57
Specify differences between to branches and only files with a certain name:

Specify differences between to branches and only files with a specific filename:

git diff topic..main -- './file1.txt' '**/file1.txt'
@todgru
todgru / jq.md
Created September 6, 2023 14:43
jq cheat sheet cli shell json parsing

jq

$ echo '{"foo": "bar", "biz": "baz"}' | jq -r '.[]'
bar
baz
@todgru
todgru / mac-keyboard-symols.md
Created August 11, 2023 22:02
special symbols on mac osx mu/micro µ degree °

Mac Keyboard Symbols

  • µ mu Option + M Example: 27 µs
  • ° degree Shift + Option + 8 Example: 32°C