Skip to content

Instantly share code, notes, and snippets.

@dbdness
dbdness / mouse-touch-helper.ahk
Last active November 14, 2023 13:56
AutoHotKey script for bringing the cursor back to last known position (for example on main, external monitor) after touch event on occurs on another display (for example on sidecar laptop with touch screen).
;~Check mouse position every second.
SetTimer, MousePos, 1000
MousePos:
MouseGetPos, x, y
return
~LButton::
TimeL := A_TickCount
Return
@dbdness
dbdness / mute-android-apps.sh
Created October 15, 2023 15:42
Mute Android apps
# 1. Run 'adb devices' when connected to a phone with USB debugging enabled.
# 2. Run 'adb shell' to start the interactive shell
# 3. List the full package names for the apps/games to be muted
cmd package list packages | grep -i -E ‘frozen|pies|color’
# 4. Mute apps with appops commands (replace package names):
# Example 1 - Mute
cmd appops set com.easybrain.art.puzzle TAKE_AUDIO_FOCUS ignore
cmd appops set com.easybrain.art.puzzle PLAY_AUDIO deny
@dbdness
dbdness / digispark-attiny85-mac-setup.md
Last active May 8, 2024 13:45
DigiSpark Kickstarter ATTINY85 Setup on macOS + Hello World

Digispark ATTINY85 Initial Setup on macOS + Hello World

Originally written in January 2021.

Originally written for macOS Big Sur 11.1

Step 1: Acquire a DigiSpark ATTINY85 Board

Board used for this guide is the Kickstarter version.

Step 2: Download the Arduino IDE

Version at the time of writing is 1.8.13