Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created April 19, 2025 22:37
DacFx-18 v15.0.4316.1 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-401674243-2599432332-1622086628-1000</user>
<keys>
<key installerType="Msi" displayName="Microsoft SQL Server Data-Tier Application Framework (x64)" displayVersion="15.0.4316.1">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A64F249F-3156-4A4E-90AB-65BB9D8F65A8}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{A64F249F-3156-4A4E-90AB-65BB9D8F65A8}]]></UninstallString>
@wonbyte
wonbyte / Makefile
Created April 19, 2025 22:37
C Makefile
# Debugging and tracing flags
TRACEFLAGS := -g -fno-omit-frame-pointer -funwind-tables
# Compiler and basic settings
CC := clang
VERSION := 1.0.0
DEVFLAGS := -Wall -Wextra -Wunused-parameter
INCLUDES := -I include
CFLAGS := $(DEVFLAGS) $(TRACEFLAGS) $(INCLUDES)
@nbugash
nbugash / build.gradle
Created April 19, 2025 22:37
Gradle task to check for sensitive files in Git
// Define a task to check for sensitive files in Git
tasks.register("checkSensitiveFile") {
description = 'Checks that sensitive files are not committed to Git'
group = 'Verification'
// List of sensitive files
doLast {
def sensitivePatterns = [
'**/.env',
'**/.env.override',
@astatochek
astatochek / opfs.ts
Created April 19, 2025 22:36
Example code for storing a string to browser OPFS and retrieving a slice of it
async function storeStringToOPFS(filename: string, data: string): Promise<void> {
const root = await navigator.storage.getDirectory();
const fileHandle = await root.getFileHandle(filename, { create: true });
const writable = await fileHandle.createWritable();
const encoder = new TextEncoder();
await writable.write(encoder.encode(data));
await writable.close();
console.log(`Successfully wrote string to ${filename} in OPFS.`);
}
@ZacharyPuls
ZacharyPuls / Add-all-LUNs-to-multipathd.md
Last active April 19, 2025 22:37
Automatically add all iSCSI LUN WWIDs for a Proxmox storage pool to allowed WWIDs for multipathd

Given a Proxmox pool's STORAGE_ID in $poolid

pvesm list $poolid | awk 'NR>1 {print $1}' | \
while read -r volid
  do echo -n "Finding ID_SERIAL for $volid..."
  serial=$(pvesm path "$volid" 2>/dev/null | grep -v "^Rescanning" | sed -r "s|iscsi://([0-9.]+)/([^:]+):([^/]+)/([0-9]+)|/dev/disk/by-path/ip-\1\\:3260-iscsi-\2\\:\3-lun-\4|" | xargs -I{} udevadm info {} 2>/dev/null | grep ID_SERIAL= | sed -r "s|^.*ID_SERIAL=([0-9a-fA-F]+).$|\1|" || echo "No ID_SERIAL found for volid $volid")
  multipath -a "$serial"
 done
@verstaken
verstaken / gmk87-manual.md
Created April 19, 2025 22:36 — forked from emanuellopes/gmk87-manual.md
GMK67 manual (English)
@janodev
janodev / gist:e53bac6df61d0b63ab7f2545781abd38
Created April 19, 2025 22:35 — forked from samhenrigold/gist:5b88f12283513d8808d8cc9b65bc47ee
`UIView.SystemAnimation.delete` demo playground
/// Video demo: https://hachyderm.io/@samhenrigold/114359529882977822
import UIKit
import PlaygroundSupport
final class DeleteDemoVC: UIViewController {
private let stack = UIStackView()
override func viewDidLoad() {
super.viewDidLoad()
@nuttxpr
nuttxpr / ci-risc-v-07.log
Created April 19, 2025 22:35
[risc-v-07] Special CI Log for nuttx @ 81afa9f7608fb522496ba042cde6eb7eaa5156f2 / nuttx-apps @ 4ed499db3a344363323208bc798e6131f19a66d5
Script started on 2025-04-20 06:27:12+08:00 [COMMAND="/home/luppy/nuttx-release/run-job-special.sh risc-v-07 %1" TERM="tmux-256color" TTY="/dev/pts/18" COLUMNS="100" LINES="7"]
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job-special.sh risc-v-07 %1
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci-special.sh
+ job=risc-v-07
+ [[ risc-v-07 == '' ]]
+ instance=%1
+ set
+ grep TMUX
+ true
+ neofetch
@choco-bot
choco-bot / Install.txt
Created April 19, 2025 22:34
google-web-designer v5.0.4.0226 - Passed - Package Tests Results
2025-04-19 22:31:24,274 4000 [DEBUG] - XmlConfiguration is now operational
2025-04-19 22:31:24,588 4000 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-04-19 22:31:24,607 4000 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-04-19 22:31:24,618 4000 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-04-19 22:31:24,618 4000 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-04-19 22:31:24,634 4000 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-04-19 22:31:24,718 4000 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-04-19 22:31:24,728 4000 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-04-19 22:31:24,744 4000 [DEBUG] - Adding new typ
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created April 19, 2025 22:32
Rimworld output log published using HugsLib
Log uploaded on Saturday, April 19, 2025, 3:31:09 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)