Skip to content

Instantly share code, notes, and snippets.

View mcandre's full-sized avatar

Andrew mcandre

  • Milwaukee, WI
View GitHub Profile
@mcandre
mcandre / how-to-disable-android-talkback.md
Last active December 18, 2023 19:40
How to Disable Android TalkBack

How to Disable Android TalkBack

So you're seeing green rectangles everywhere, oh no! You may be hearing a narrator, and none of the UI is working properly. Congratulations, you have turned on Android TalkBack. More generally, this is known as speech over or voice over. It's like hitting the Shift key too long in Windows, with similarly annoying results.

This is unfortunately very easy to do, because there is a stupid, secret gesture for this. As of this writing, the gesture is pressing and holding both the volume up and volume down buttons. But in the future, it could be anything. Whatever the gesture is, try doing it again. If you're lucky, you'll stumble upon the right combination and manage to turn the feature back off.

Rebooting has broken. Rebooting does not fix the problem. There was never a prompt to persist the questionable setting across reboots, but alas here we are anyway.

Swiping and scrolling have broken. You cannot swipe or scroll normally to leave the current application. Nor to activate

@mcandre
mcandre / how-to-treat-black-mold-in-water-bottles.md
Last active December 13, 2023 01:32
How to Treat Black Mold in Water Bottles

How to Treat Black Mold in Water Bottles

What is black mold?

Black mold is a common fungus that accumulates in wet environments, such as damp walls and reusable water bottles. It rarely causes severe health conditions, but it is best avoided nevertheless. Black mold is associated with sneezing, coughing, congesting, asthma, and eye irritation. When you see black mold safe choices of response include departing the area, disposing of the moldy object, or cleaning the mold off the object.

Unlike commercial beverages, refillable water bottles are unfortunately easy for black mold and other pathogens to continually reinfect. Even if you filter your water with a purifier, the fact that you have a surface that is often wet and unrefridgerated, produces essentially a petri dish for mold.

Cleaning Process

@mcandre
mcandre / expose_cors.go
Created June 29, 2023 15:43
Expose CORS for local backend development and testing with Google Chrome
func exposeCors(w http.ResponseWriter) {
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Methods", "*")
w.Header().Set("Access-Control-Allow-Headers", "*")
}
@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 January 23, 2025 00:55
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.