Skip to content

Instantly share code, notes, and snippets.

View mcandre's full-sized avatar

Andrew mcandre

  • Milwaukee, WI
View GitHub Profile
@mcandre
mcandre / lorcana-deckbuilding.md
Last active December 24, 2024 03:32
Lorcana Deckbuilding

Lorcana Deckbuilding

REQUIREMENTS

  • Minimum 60 cards †
  • Maximum 2 colors
  • Maximum 4 copies of each card that shares the exact title and subtitle name

RECOMMENDATIONS

@mcandre
mcandre / comfyui-safer-ux.md
Created October 28, 2024 18:03
ComfyUI Safer UX

ComfyUI Safer UX

ComfyUI ignores traditional uses of the Ctrl+D hotkey, namely erasing text to the right of the cursor (Emacs, macOS); and favoriting bookmarks (Windows Web browsers). Pressing Ctrl+D in ComfyUI does neither of these things. Instead, ComfyUI instantly, irrecovably erases many settings and applies the default workflow.

For safety, this hotkey can be disabled:

Navigate to Settings -> Keybinding -> Comfy.LoadDefaultWorkflow -> (Trash can delete icon).

@mcandre
mcandre / how-to-locate-commands.md
Last active October 23, 2024 20:17
How to Locate Commands

How to Locate Commands

Feeling lost?

You can verify the location of commands, and distinguish between different types of commands (executable binaries and scripts vs. shell built-in commands vs. aliases) with a variety of analysis commands.

For common UNIX, esp. POSIX compliant shells like ash, bash, dash, ksh, posh, zsh and WLS, try:

  • command -v <name>
  • type
@mcandre
mcandre / macos-allow-unsigned-applications.md
Last active October 10, 2024 19:01
macOS Allow Unsigned Applications

macOS Allow Unsigned Applications

  1. Run sudo spctl --master-disable.
  2. Launch Settings -> Privacy & Security -> Security -> Allow applications from -> Anywhere.
  3. Confirm the selection prompt.
  4. Contact the application owner's (technical) support and request the application be published through the normal Mac App Store.
@mcandre
mcandre / meta-quest-3-quickly-delete-all-screen-recordings
Created September 9, 2024 17:04
Meta Quest 3 Quickly Delete All Screen Recordings
# Meta Quest 3 Quickly Delete All Screen Recordings
1. Launch the `Files` application.
2. Navigate to `Locations` -> `This headset`.
3. Navigate to `Oculus`.
4. Use the the ellipsis (`...`) menu to delete the `VideoShots` folder.
@mcandre
mcandre / ios-ringer-switch-workaround.md
Last active August 19, 2024 22:33
iOS Ringer Switch Workaround

iOS Ringer Switch Workaround

Apple artificially breaks the intuitive connection between the Ring vs Silent status of the hardware ringer switch and the various and sundry Focus notification modes. The Shortcuts app doesn't connect with either.

Some fools jailbreak iOS (or iPadOS) and use third party tools. However, this can cause the device to lag behind important security updates.

Even so, the hardware switch would be unidirectional, failing to physically move when software silent modes engage.

Instead, we can fix notifications, without requiring jailbreaking. By removing Banners from each app. Use some combination of sounds, haptics, badges, lockscreen entries, or notification center entries.

@mcandre
mcandre / oculus-quest-3-factory-reset.md
Created August 8, 2024 00:35
Oculus Quest 3 Factory Reset

Oculus Quest 3 Factory Reset

  1. Power down the headset.
  2. Press and hold the power and volume down buttons until a boot menu appears.
  3. Use the volume buttons to navigate to Factory Reset.
  4. Select Factory Reset using the power button.
  5. Confirm Factory Reset.

This is the only semi-scalable way to manage video recordings.

@mcandre
mcandre / ramune-marble-extraction.md
Created July 26, 2024 18:13
Ramune Marble Extraction

Ramune Marble Extraction

There is a relatively safe, fast, nondestructive method for removing the marble from an American style Ramune soda bottle.

REQUIREMENTS

  • ballistic eye glasses
  • cut resistant gloves
  • used Ramune soda bottle
  • barbeque lighter
@mcandre
mcandre / vape-school.md
Last active January 6, 2025 23:19
Vape School

Vape School

Major Warnings

Vaping is not healthy. It may be less unhealthy than smoking tobacco.

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.

Mechanical vapes are out of scope of the Vape School guide.

@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