Skip to content

Instantly share code, notes, and snippets.

@lukaso
lukaso / main.go
Last active February 2, 2024 11:24
NATS update filters on a consumer (to work around Nack bug where can't update filters on consumers)
// Change filters on a NATS consumer (workaround until nack can support this)
// No warranty. Use at your own risk. Mutates your system so do some tests before going all in.
package main
import (
"context"
"fmt"
"os"
"strings"
@lukaso
lukaso / gist:53f60146ffbb5259012a5c7f703f76c6
Created October 21, 2022 15:45
blender macos detection
/* Get the current operating system. See get_os.js */
let os = getOS();
/* Windows. */
if (os == 'windows') {
showPlatformWarning('This Windows version might not be supported.');
}
else if (os == 'windows-arm') {
showPlatformWarning('Blender is not available for Windows ARM architecture yet.');
}
version:1
:debug:main Starting logging for gimp210 @2.10.33_0+debug+local+quartz+vala
:debug:sysinfo macOS 12.6 (darwin/21.6.0) arch arm
:debug:sysinfo MacPorts 2.7.2
:debug:sysinfo Xcode 14.0.1
:debug:sysinfo SDK 11.3
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 11.0
:debug:main epoch: in tree: 0 installed: 0
:debug:main git 2.38.0_0 exists in the ports tree
:debug:main git 2.38.0_0 +credential_osxkeychain+diff_highlight+doc+pcre+perl5_34 is the latest installed
/usr/local/Library/Homebrew/global.rb:34: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/usr/local/Library/Homebrew/hardware.rb:38: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/usr/local/Library/Homebrew/brew.h.rb:624: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/usr/local/bin/brew:49: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/usr/local/Library/Homebrew/hardware.rb:19: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/usr/local/Library/Homebrew/brew.h.rb:361: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/usr/local/Library/Homebrew/brew.h.rb:361: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
HOMEBREW_VERSION: 0.6
HEAD: 5629414aebbcba7ed274722991c9f27685650866
HOMEBREW_PREFIX: /usr/local