Skip to content

Instantly share code, notes, and snippets.

@sgskinner
sgskinner / gnome-keyring-cli-interaction.md
Last active January 31, 2026 13:31
Interacting with `gnome-keyring` on CLI

This assumes your main gnome Login keyring is automatically unlocked during login from your DM, or your keyring's password has been set to empty (the latter being common with autologin).

To store secrets:

$ secret-tool store --label="VPN Username" vpn-store username
<enter username here>
$ secret-tool store --label="VPN Password" vpn-store password
<enter password here>
$ secret-tool store --label="VPN URL" vpn-store url
<enter url here>
@anonymous1184
anonymous1184 / README.md
Last active January 27, 2025 15:15
WinHttpRequest.ahk

WinHttpRequest Wrapper

Usage and information: https://redd.it/mcjj4s

AutoHotkey v2.0

  • [WinHttpRequest.ahk]

AutoHotkey v1.1

@cdeath
cdeath / ffmpeg_mkv_ops.md
Last active August 28, 2025 16:40
extract stuff from .mkv with ffmpeg
@johnsoncodehk
johnsoncodehk / ClampAngle.cs
Last active April 26, 2025 20:57
Unity Clamp Angle
public static float ClampAngle(float angle, float min, float max) {
float start = (min + max) * 0.5f - 180;
float floor = Mathf.FloorToInt((angle - start) / 360) * 360;
return Mathf.Clamp(angle, min + floor, max + floor);
}
@ctrl-freak
ctrl-freak / android-adb-pull-apk.md
Last active August 28, 2025 23:00
Retrieve APK from Non-Rooted Android Device through ADB

https://stackoverflow.com/a/18003462/348146

None of these suggestions worked for me, because Android was appending a sequence number to the package name to produce the final APK file name (this may vary with the version of Android OS). The following sequence of commands is what worked for me on a non-rooted device:

  1. Determine the package name of the app, e.g. com.example.someapp. Skip this step if you already know the package name.

    adb shell pm list packages

    Look through the list of package names and try to find a match between the app in question and the package name. This is usually easy, but note that the package name can be completely unrelated to the app name. If you can't recognize the app from the list of package names, try finding the app in Google Play using a browser. The URL for an app in Google Play contains the package name.