Skip to content

Instantly share code, notes, and snippets.

View delthas's full-sized avatar

delthas delthas

View GitHub Profile
@delthas
delthas / keybase.md
Created October 18, 2016 23:28
keybase gist

Keybase proof

I hereby claim:

  • I am delthas on github.
  • I am delthas (https://keybase.io/delthas) on keybase.
  • I have a public key whose fingerprint is F80E ABBA 7EF0 18DC B1F1 95E3 9380 8D16 AEA4 D19C

To claim this, I am signing this object:

@delthas
delthas / chocolateyuninstall.ps1
Created October 16, 2017 22:41
Exact Audio Copy uninstall automation script
$ErrorActionPreference = 'Stop'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$ahkScript = "$toolsDir\eacuninstall.ahk"
[array]$key = Get-UninstallRegistryKey -SoftwareName 'Exact Audio Copy*'
if ($key.Count -eq 1) {
$key | % {
AutoHotkey $ahkScript "$($_.UninstallString)"
}
@delthas
delthas / chocolateyinstall.ps1
Created October 16, 2017 23:47
Keybase Chocolatey scripts
$ErrorActionPreference = 'Stop'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'https://prerelease.keybase.io/keybase_setup_386.exe'
$packageArgs = @{
packageName = $env:ChocolateyPackageName
unzipLocation = $toolsDir
fileType = 'exe'
url = $url
@delthas
delthas / fdroid_gplay.md
Last active July 4, 2024 07:02
making a F-droid repo for Google Play apps

making a F-droid repo for Google Play apps

with support for downloading both free and paid apps you own

summary

  • set up a token dispenser, used to get a login cookie to use the google play unofficial api
  • run gplaycli to download the apks (uses the token dispenser)
  • run fdroid to generate all the filed and metadata from the apks
  • serve the output directory with an http server
@delthas
delthas / sni.go
Last active January 4, 2023 12:43
Disable SNI in Go HTTPS requests
url := "https://perdu.com"
hostname := "perdu.com"
sni := false
var serverName string
if sni {
serverName = hostname
} else {
// disable sending the ServerName by using an IP
@delthas
delthas / log4j.sh
Last active December 13, 2021 10:46
Check for JAR files containing log4j on your system
#!/bin/sh -eux
# will list all JAR files containing log4j (log4j related classes)
for f in $(find / -name '*.jar' 2>/dev/null); do echo "Checking $f..."; unzip -l "$f" | grep -F org/apache/logging/log4j/core/lookup/JndiLookup.class; done

Custom App ID in terminal emulators

TL;DR This simple spec enables terminal apps to have their own icons, window grouping, and app pinning, by letting terminal emulators know about the ID of the app they are running.

Rationale

There are two general ways of starting a terminal application:

  • "Manually", from a shell, in a terminal emulator window, typing the application name, pressing Enter
  • From an app launcher, typing the application name, starting it