Skip to content

Instantly share code, notes, and snippets.

View mcandre's full-sized avatar

Andrew mcandre

  • Milwaukee, WI
View GitHub Profile
@mcandre
mcandre / elecraft-kx3-cheatsheet.md
Last active May 10, 2024 08:17
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 / vape-school.md
Last active May 6, 2024 02:51
Vape School

Vape School

Warning

Like other consumer electronics, vape products often contain Lithium Ion (Li-Ion) batteries that can erupt into flames or explode when not handled with due care. Store vape products in ventillated areas, out of direct sunlight. Do not stow vape products in the main cabin of airplanes, which is unpressurized and can trigger flames and explosions.

Contents intended for adults only. Consume at your own risk.

What is Vaping?

@mcandre
mcandre / fixing-vape-power-loss.md
Last active May 4, 2024 17:44
Fixing Vape Power Loss

Fixing Vape Power Loss

Your mechanical, semimechanical, protected, or boro vape mod frequently experiences power loss. But the battery is freshly charged.

The good news is that this problem is usually easy to correct.

Check the (rebuildable) atomizer for circuit faults on a separate, known working mod, preferably a non-boro, protected mod with an an ohm meter. If mecessary, rebuild and rewick the atomizer. Ensure that all electrical surfaces, including screws, are wiped clean. If necessary, select a new coil.

If the atomizer appears to work with other mods, then the problem is likely poor electric conductivity elsewhere in the system. For example, the big drip tip screw that completes a boro mod's circuit. Dust, dirt, ejuice condensate, and other debris will naturally accumulate on electrical components over time.

@mcandre
mcandre / brew-list-orphaned-packages.sh
Created September 7, 2018 21:32
Homebrew list orphaned packages
#!/bin/bash
brew list | while read cask; do echo -ne "\x1B[1;34m $cask \x1B[0m"; brew uses $cask --installed | awk '{printf(" %s ", $0)}'; echo ""; done
@mcandre
mcandre / debian-disable-sleep.md
Created April 8, 2024 03:37
Debian Disable Sleep

Debian Disable Sleep

$ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
@mcandre
mcandre / macos-finder-quirks.md
Last active April 7, 2024 19:27
macOS Finder Quirks

macOS Finder Quirks

Reverse Sort

Reverse sort was unfortunately never implemented in certain view modes. To enable reverse sort, activate View -> as List. Then select the desired column header to apply for sorting the entries, such as Name, Date Modified, Size, Kind, etc. Finally, select the same column again to reverse the current ordering.

However, if you primarily use as Columns or other views for your folders, then these view settings will be reset each time you navigate to the folder. To work around this, select a suitable ancestor folder and add to your Finder Favorites. Apply View -> as List to the ancestor. Then you can quickly return to the original by descending through this favorite directory root.

Jump to Top/Bottom

@mcandre
mcandre / anduril-flashlight-guide.md
Last active April 6, 2024 21:08
Anduril Flashlight Guide

Anduril Flashlight Guide

Overview

Popular flashlight models such as the Noctigon KR4 and Sofirn BLF LT1 include a wealth of customizable features, based on the portable Anduril firmware standard. Anduril unifies many proprietary flashlight control mechanisms into a single, repeatable operational workflow.

Unfortunately, some Anduril models neglect to document their true capabilities. We detail core functions here for your convenience.

This is particularly relevant for the Nocticon Emissar KR4 and Sofirn LT1 models, which fail to persist settings when replacing the batteries.

@mcandre
mcandre / docker-push-tag-alias.md
Created May 18, 2015 17:22
How to create new tag aliases for docker images
$ docker tag <image>:<original tag> <image>:<alias>
$ docker push <image>:<alias>
@mcandre
mcandre / dumbphones-theory-and-practice.md
Last active March 27, 2024 21:35
Dumbphones: Theory and Practice

Dumbphones: Theory and Practice

Consumers have implicitly accepted the intrusive advertisements, privacy violations, overstimulating notifications, and seedy business model built of dopamine addiction as part and parcel of mobile technology. Long term smartphone use is associated with poor working memory, poor navigation skills, restlessness, sleep apnea, financial loss, privacy issues, computer security issues, and many other problems. But it doesn't have to be that way.

Many of the tasks we have grown used to performing with fragile, glitchy apps, can be accomplished with a paper pocket notepad, or even done with some mental effort alone.

Indie cell phone manufacturers Punkt and Light Phone provide minimalist cell phone models, that are designed to reduce the distractions that have unfortunately crept into modern smartphones. In contrast to smartphones, these "dumbphones" prune away many extraneous features to arrive at svelte core. The dumb

@mcandre
mcandre / hello.s
Last active March 26, 2024 15:14
64-bit GNU assembler Hello World for Windows
# Build:
#
# as -o hello.obj
# ld -o hello.exe hello.obj -L C:\\tools\\mingw64\\x86_64-w64-mingw32\\lib -lkernel32
#
# Requires MinGW
.extern GetStdHandle
.extern WriteFile
.extern ExitProcess