Skip to content

Instantly share code, notes, and snippets.

View jonas-med-ett-s's full-sized avatar
🖱️
Clicking away

Jonas jonas-med-ett-s

🖱️
Clicking away
  • Sweden
  • 06:44 (UTC +02:00)
View GitHub Profile
@JBlond
JBlond / openssl_configure.md
Last active June 1, 2026 08:55
OpenSSL configure options

OpenSSL Configure Options (1.1.1g)

Standard party line

Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [experimental-<cipher> ...]
                 [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw]
                 [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm]
                 [no-dso] [no-krb5] [sctp] [386] [--prefix=DIR]
                 [--openssldir=OPENSSLDIR] [--with-xxx[=vvv]] [--test-sanity]
@brianhassel
brianhassel / PreventSleep.cs
Last active March 13, 2026 22:56
Prevent Computer Sleep in C#
internal static class NativeMethods {
public static void PreventSleep() {
SetThreadExecutionState(ExecutionState.EsContinuous | ExecutionState.EsSystemRequired);
}
public static void AllowSleep() {
SetThreadExecutionState(ExecutionState.EsContinuous);
}