Skip to content

Instantly share code, notes, and snippets.

View mcandre's full-sized avatar

Andrew mcandre

  • Milwaukee, WI
View GitHub Profile
@mcandre
mcandre / docker-fix-missing-images.md
Created May 19, 2023 05:37
Docker Fix Missing Images

Docker now defaults to using buildx, which means that images no longer populate the normal docker images list.

When building images, make sure to include the --load option:

$ docker build -t <name> --load .
@mcandre
mcandre / convert-webps-to-gifs.md
Last active May 8, 2023 01:30
Convert .WEBP's to GIF's

Unfortunately, ffmpeg lacks webp decode capability.

Fortunately, ImageMagick features webp decode capability.

$ magick mogrify -format gif *.webp
@mcandre
mcandre / raise-ffmpeg-gif-quality.md
Last active May 8, 2023 01:30
Raise ffmpeg gif quality
$ ffmpeg -i <source> -vf "fps=30,scale=720:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" <target>.gif
@mcandre
mcandre / how-to-align-macos-terminal-window-dimensions-with-tiling
Created May 3, 2023 03:28
How to Align macOS Terminal Window Dimensions with Tiling
# How to Align macOS Terminal Window Dimensions with Tiling
1. Size the Dock vertically to the desired height.
2. Tile Terminal.app to the desired portion of your screen.
3. Open Terminal preferences -> Profile -> Default profile -> Window.
4. In the Window Size section, tweak the Columns and Rows.
5. Relaunch and retile Terminal.app.
6. If the window launches to a different size than tiled, GOTO step 4.
Note that terminals may use altogether different sizes when presenting demos on another display.
@mcandre
mcandre / ubuntu-macos-like-doc.md
Created February 16, 2023 21:08
Ubuntu macOS-like Dock
$ gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
$ gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false
@mcandre
mcandre / lazerbrite-battery-replacement.md
Last active January 26, 2023 20:59
LazerBrite Battery Replacement

LazerBrite Battery Replacement

The included instructions fail to explain how to remove any existing batteries during replacement. So we document the full process here.

  1. Select either of the individual light ends of the LazerBrite system for battery replacement.
  2. Unscrew any plastic diffusal attachments from the individual light, to reveal the bare LED.
  3. On the other side of the individual light, unscrew any plastic attachments.
  4. Untie any helix loops from the black battery cover.
  5. Use a medium flathead driver (screwdriver, coin, back of a utensil, etc) to unscrew the battery cover.
  6. Firmly smack the open battery holder against a clean, hard surface until the two CR2032 batteries fall out.
@mcandre
mcandre / elecraft-kx3-cheatsheet.md
Last active December 8, 2023 05:05
Elecraft KX3 Cheatsheet

Elecraft KX3 Cheatsheet

The KX3 transceiver is designed for HF amateur band operation. The KX3 natively supports 160m - 6m.

An optional 2m accessory can extend the band support to 2m, though the installation of that accessory is a more intensive, electronics hobbyist task.

WARNINGS

As with all radios, do not transmit when the antenna is disconnected. Avoid touching the antenna or feed line when transmitting. Power down the radio and disconnect the feed line when making antenna adjustments.

@mcandre
mcandre / yaesu-ft-70dr-cheatsheet.md
Last active March 6, 2022 22:43
Yaesu FT-70DR Cheatsheet

Yaesu FT-70DR Cheatsheet

Belt Clip

Yaesu sells handheld transceivers with an optional belt clip, detached by default. To attach the clip, remove any battery. Then firmly insert the two belt clip screws with an appropriate screwdriver. My radio came with two small Phillips head screws.

Charging

The battery charges via a barrel plug located on the right side of the radio.

@mcandre
mcandre / baofeng-uv-5x3-cheatsheet.md
Last active September 10, 2023 18:29
Baofeng UV-5x3 Cheatsheet

Baofeng UV-5x3 Cheatsheet

SUMMARY

A growing list of notes, bugs, issues, problems, design flaws, oddities, quirks, bad UX, nonintuitivity, challenges, frequently asked questions, gotchas, glitches, and errors with the Baofeng UV-5x3 amateur radio transceiver.

WARNING

DO NOT TRANSMIT ON THE RADIO WHILE THE ANTENNA IS DISCONNECTED, UNFOLDED, OR DAMAGED; DOING SO MAY RESULT IN PAINFUL BURNS FROM SPURIOUS RADIO FREQUENCY EMISSIONS.

@mcandre
mcandre / How to install Homebrew Casks
Created December 2, 2021 22:30
how-to-install-homebrew-casks.md
Homebrew keeps changing the syntax to install casks.
As of this writing, the syntax is `brew install homebrew/cask/<formula>`.