This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;@Ahk2Exe-ConsoleApp | |
#NoEnv | |
#NoTrayIcon | |
AutoTrim Off | |
SetBatchLines, -1 | |
ListLines, Off | |
#SingleInstance ignore | |
SetWorkingDir %A_ScriptDir% | |
; https://docs.jellyseerr.dev/getting-started/buildfromsource#installation-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//go:build windows | |
// +build windows | |
package main | |
import ( | |
"unsafe" | |
"syscall" | |
"os/user" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// +build windows | |
/* | |
Parts derived from | |
https://github.com/hallazzang/go-windows-programming | |
https://github.com/GameXG/gowindows | |
https://stackoverflow.com/a/37911789 | |
*/ | |
package main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/data/data/com.termux/files/usr/bin/bash | |
if [ -z "${1:-}" ]; then | |
exit 1 | |
fi | |
url_is_supported() { | |
REPLY="" | |
declare -A arr | |
case "$1" in |
This short guide is only possible because of the Transmission, OpenSSL, curl and CMake developers' work.
Thanks to https://github.com/transmission/transmission-release-scripts/blob/master/build-windows.ps1 and https://build.transmissionbt.com/job/trunk-win32/arch=x64,label=pepito-win10/lastSuccessfulBuild/consoleText for showing the way.
The Transmission Project itself already provides [https://transmissionbt.com/download/](official builds w/ installer) which I install myself to have, among other things, an entry in the Windows services database for transmission-daemon.
I build my own transmission-daemon for these excellent patches:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List all possible power config GUIDs in Windows | |
# Run: this-script.ps1 | Out-File powercfg.ps1 | |
# Then edit and run powercfg.ps1 | |
# (c) Pekka "raspi" Järvinen 2017 | |
# https://stackoverflow.com/a/22156833 | |
if (-not ([System.Management.Automation.PSTypeName]'PowrProf').Type) | |
{ | |
Add-Type -TypeDefinition @" | |
using System; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoTrayIcon | |
Process, Priority, , A | |
#Include <FastDefaults> | |
#SingleInstance Ignore | |
#Include <LogonDesktop> | |
CanWeWorkWithThisSystemToken(proc, ByRef hNonDuplicatedToken, wantedSystemTokenPrivs) | |
{ | |
static cbTOKEN_PRIVILEGES := 16, TokenPrivileges := 3, SecurityImpersonation := 2, TokenImpersonation := 2 | |
static TokenDesiredAccess := TOKEN_DUPLICATE := 0x0002 | TOKEN_IMPERSONATE := 0x0004 | TOKEN_QUERY := 0x0008 | TOKEN_ASSIGN_PRIMARY := 0x0001 | TOKEN_ADJUST_PRIVILEGES := 0x0020 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SaveSetColours(set := False, liteSet := True) | |
{ | |
; Sys colours saving adapted from an approach found in Bertrand Deo's code | |
; The rest is from Michael Maltsev: https://github.com/RaMMicHaeL/Windows-10-Color-Control | |
static DWMCOLORIZATIONPARAMS, IMMERSIVE_COLOR_PREFERENCE | |
,DwmGetColorizationParameters := DllCall("GetProcAddress", "Ptr", DllCall("GetModuleHandleW", "WStr", "dwmapi.dll", "Ptr"), "Ptr", 127, "Ptr") | |
,DwmSetColorizationParameters := DllCall("GetProcAddress", "Ptr", DllCall("GetModuleHandleW", "WStr", "dwmapi.dll", "Ptr"), "Ptr", 131, "Ptr") | |
,GetUserColorPreference := DllCall("GetProcAddress", "Ptr", DllCall("GetModuleHandleW", "WStr", "uxtheme.dll", "Ptr"), "AStr", "GetUserColorPreference", "Ptr") | |
,SetUserColorPreference := DllCall("GetProcAddress", "Ptr", DllCall("GetModuleHandleW", "WStr", "uxtheme.dll", "Ptr"), "Ptr", 122, "Ptr") | |
,WM_SYSCOLORCHANGE := 0x0015, sys_colours, sav_colours, colourCount := 31, GetSysColor := DllCall("GetProcAddress", "Ptr", DllCall("GetModule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ---------------------------------------------------------------------------------------------------------------------- | |
; Name .........: TermWait library | |
; Description ..: Implement the RegisterWaitForSingleObject Windows API. | |
; AHK Version ..: AHK_L 1.1.13.01 x32/64 Unicode | |
; Author .......: Cyruz (http://ciroprincipe.info) & SKAN (http://goo.gl/EpCq0Z) | |
; License ......: WTFPL - http://www.wtfpl.net/txt/copying/ | |
; Changelog ....: Sep. 15, 2012 - v0.1 - First revision. | |
; ..............: Jan. 02, 2014 - v0.2 - AHK_L Unicode and x64 version. | |
; ---------------------------------------------------------------------------------------------------------------------- |
NewerOlder