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-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 September 11, 2024 04:46
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
@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 / 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