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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "log/slog" | |
| "os" | |
| "regexp" | |
| "runtime" | |
| "runtime/debug" |
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
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "os" | |
| "strings" | |
| ) |
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
| $ intiface-engine --websocket-port 12345 --use-bluetooth-le | |
| Intiface Server, starting up with stdout output. | |
| 2025-11-30T05:39:56.322616Z INFO intiface_engine::engine: Intiface CLI Setup finished, running server tasks until all joined. | |
| 2025-11-30T05:39:56.322630Z INFO buttplug::util::device_configuration: Loading from internal base device configuration... | |
| 2025-11-30T05:39:56.358523Z INFO buttplug::util::device_configuration: Loaded config version ConfigVersion { major: 3, minor: 15 } | |
| 2025-11-30T05:39:56.360127Z INFO buttplug::util::device_configuration: No user configuration provided. | |
| 2025-11-30T05:39:56.360702Z INFO intiface_engine::buttplug_server: Including Bluetooth LE (btleplug) Device Comm Manager Support | |
| 2025-11-30T05:39:56.360741Z INFO buttplug::server::device::server_device_manager: BtlePlugCommunicationManager: false | |
| 2025-11-30T05:39:56.363530Z INFO buttplug::server::server_builder: Buttplug Server Operating System Info: NixOS 25.11.0 [64-bit] | |
| 2025-11-30T05:39:56.366058Z INFO buttplug::server |
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
| // SPDX-License-Identifier: Unlicense OR MIT | |
| // GLFW doesn't build on OpenBSD and FreeBSD. | |
| //go:build !openbsd && !freebsd && !android && !ios && !js | |
| // +build !openbsd,!freebsd,!android,!ios,!js | |
| // The glfw example demonstrates integration of Gio into a foreign | |
| // windowing and rendering library, in this case GLFW | |
| // (https://www.glfw.org). | |
| // |
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
| #!/usr/bin/env nix-shell | |
| #!nix-shell -i bash -p bluez | |
| BT_DEVICE="XX:XX:XX:XX:XX:XX" | |
| BT_RSSI_THRESHOLD=-15 | |
| get_rssi() { | |
| out=$(hcitool rssi $BT_DEVICE) || return 1 | |
| out=${out#*: } | |
| echo $out |
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
| #!/usr/bin/env bash | |
| KUBECONF_CONFIG_DIR="${XDG_CONFIG_HOME:-"$HOME/.config"}/kubeconf" | |
| KUBECONF_KNOWN_CONFIGS="$KUBECONF_CONFIG_DIR/known_configs" | |
| kubeconf() { | |
| case "$1" in | |
| a|add) | |
| _kubeconf::add "${@:2}" | |
| ;; |
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
| #!/usr/bin/env bash | |
| set -eo pipefail | |
| NIX_EXPR=$(cat <<-'EOF' | |
| { | |
| mainProgram, | |
| }: | |
| let | |
| pkgs = import <nixpkgs> { }; |
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
| // ==UserScript== | |
| // @name Hypnohub Auto-load Bigger Thumbnails | |
| // @version 1 | |
| // @grant none | |
| // @match *://hypnohub.net/* | |
| // @run-at document-end | |
| // @noframes | |
| // ==/UserScript== | |
| async function urlExists(url) { | |
| const ok = await fetch(url, {method: "GET"}).then(r => r.ok).catch(() => false) |
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
| // ==UserScript== | |
| // @name WS hack | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over Discord! | |
| // @author You | |
| // @match https://discord.com/* | |
| // @grant none | |
| // @run-at document-start | |
| // @require https://cdnjs.cloudflare.com/ajax/libs/pako/1.0.11/pako.min.js |
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
| @-moz-document domain("freedesktop.org") { | |
| .refentry { | |
| max-width: 765px; | |
| line-height: 1.5; | |
| margin: auto; | |
| position: relative; | |
| } | |
| .refentry pre { | |
| line-height: 1.25; |
NewerOlder