Skip to content

Instantly share code, notes, and snippets.

@Jaid
Jaid / pokemonGoFriendCodes.md
Last active November 11, 2020 07:18
Pokémon GO Friend Codes
Account Team Code
Jaidchen (Main) Mystic 5533 4645 1999
Jaidli (Zweitaccount) Valor 4440 8080 1561
Jaidilein (Testaccount) Mystic 0615 2607 3855
@Jaid
Jaid / queries.md
Last active January 21, 2021 20:57
Pokémon GO mass transfer search query

Pokémon GO mass transfer search query

Search text

!4*&!legendary&!mythical&!shiny&!lucky&!defender&!shadow&age0

Ignores

@Jaid
Jaid / comparison.md
Last active November 22, 2023 20:51
ffmpeg ProRes proxy encodings comparison

Results

V-Codec A-Codec profile pix_fmt qscale File Size Speed
prores_ks pcm_s16le 1610 MB 164 %
prores_ks pcm_s16le proxy 353 MB 103 %
prores_ks pcm_s16le proxy 4 740 MB 726 %
prores_ks pcm_s16le proxy 10 424 MB 738 %
prores_ks pcm_s16le proxy 12 375 MB 762 %
prores_ks pcm_s16le proxy 16 309 MB 729 %
@Jaid
Jaid / lodging.md
Last active February 4, 2021 22:47
House Value for Contribution Points - Black Desert Online

Lodging

Higher value = Better

CP Cost Slots Value Rating
1 1 1
2 2 1
3 4 1.33 Good
4 6 1.5 Good
@Jaid
Jaid / print.ahk
Last active January 10, 2023 14:49
Debug log with function with line break (which the built-in log function does not do) in AutoHotkey v2
; From https://gist.github.com/Jaid/41f660b57989f2b82f53c8a287040b17
print(message, title := unset) {
if IsSetRef(&title) {
print title ": " message
} else {
; Output for exe files
/*@Ahk2Exe-Keep
FileAppend message "`n", "*"
*/
; Output for ahk files
@Jaid
Jaid / header.ahk
Last active March 17, 2021 04:42
Sane default header for scripts in AutoHotkey v2
#Warn All, StdOut
#SingleInstance Prompt
SetTitleMatchMode "RegEx"
ProcessSetPriority "High"
@Jaid
Jaid / forceAdmin.ahk
Last active March 19, 2021 04:14
Force administrator permissions in AutoHotkey v2
; From https://gist.github.com/Jaid/407c0f2b01aace1125ea34915ce1f6bb
full_command_line := DllCall("GetCommandLine", "str")
if not (A_IsAdmin or RegExMatch(full_command_line, " /restart(?!\S)")) {
try {
if A_IsCompiled {
Run '*RunAs "' A_ScriptFullPath '" /restart'
} else {
Run '*RunAs "' A_AhkPath '" /restart "' A_ScriptFullPath '"'
}
}
@Jaid
Jaid / windowFunctions.ahk
Last active March 17, 2021 04:10
Window functions in AutoHotkey v2
titleSearch := "My Window"
matchCount := WinGetCount titleSearch
OutputDebug "Window count: " matchCount "`n"
hwnd := WinGetID titleSearch
OutputDebug "Window Handle: " hwnd "`n"
windowTitle := WinGetTitle hwnd
OutputDebug "Window Title: " windowTitle "`n"
@Jaid
Jaid / Stopwatch.ahk
Last active April 6, 2021 19:04
Global stopwatch for measuring execution run time in AutoHotkey v2
class Stopwatch {
time := false
__New() {
this.start()
}
start() {
this.time := A_TickCount
}
end() {
return A_TickCount - this.time