This file contains hidden or 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 darwin | |
| package main | |
| import ( | |
| "fmt" | |
| "path/filepath" | |
| "golang.org/x/sys/unix" | |
| ) |
This file contains hidden or 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
| Windows Registry Editor Version 5.00 | |
| ; Disable Windows 10 updates. | |
| ; To enable it back, delete these values. | |
| ; Tested with Windows 10 Pro 20H2, build 19042.1052 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] | |
| "DoNotConnectToWindowsUpdateInternetLocations"=dword:00000001 |
This file contains hidden or 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
| // Used in https://github.com/SCP002/terminator. | |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "github.com/shirou/gopsutil/v4/process" | |
| ) |
This file contains hidden or 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
| // Used in https://github.com/SCP002/terminator. | |
| package main | |
| import ( | |
| "errors" | |
| "os" | |
| "golang.org/x/sys/windows" | |
| ) |
This file contains hidden or 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 | |
| // Used in https://github.com/SCP002/terminator. | |
| // For POSIX, see: https://gist.github.com/SCP002/c7c3bf4aafd3e32e0dc0aa65dda2bf14. | |
| package main | |
| import ( | |
| "errors" | |
| "os" |
This file contains hidden or 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 | |
| // Used in https://github.com/SCP002/terminator. | |
| package main | |
| import ( | |
| "fmt" | |
| "unsafe" |
NewerOlder