Skip to content

Instantly share code, notes, and snippets.

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active August 2, 2026 22:24
Conventional Commits Cheatsheet
@trojanfoe
trojanfoe / build-shadercross.py
Last active August 2, 2026 21:42
Build SDL_shadercross
#!/usr/bin/env python3
#
# Builds the SDL shadercross tool and installs it locally.
#
# Prerequisites:
# Python 3
# Git
# C++ compiler
# CMake
# Ninja
@steveosoule
steveosoule / miva-detailed-order-summary-batch-report.html
Last active August 2, 2026 21:39
Miva - Detailed Order Summary Batch Report
<mvt:comment><!-- Development Helper Variables --></mvt:comment>
<mvt:assign name="g.debug" value="0"/>
<mvt:assign name="g.force_download" value="0"/>
<mvt:comment><!-- Make the output download as an attatchement (if desired) --></mvt:comment>
<mvt:if expr="g.force_download">
<mvt:assign name="l.header" value="miva_output_header( 'Content-Disposition', 'attachment; filename=order-summary_' $ s.dyn_time_t $ '.xls' )" />
</mvt:if>
<mvt:comment><!-- Global Helper / File Format Variables --></mvt:comment>
@0xjac
0xjac / private_fork.md
Last active August 2, 2026 21:26
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@kriegalex
kriegalex / install-battlenet-on-cachyos-linux-steam-proton.md
Last active August 2, 2026 22:20
Install Battle.net on CachyOS Linux Using Steam & Proton

Install Battle.net on CachyOS Linux Using Steam & Proton

Tested on: CachyOS (Arch-based) · KDE Plasma 6.5 / 6.6 · Wayland · Steam (native pacman package)

Last updated: March 2026

Games confirmed working: World of Warcraft, Diablo IV, Diablo II: Resurrected, StarCraft Remastered, Hearthstone, Overwatch 2, Call of Duty

Why This Method?

@LukaPrebil
LukaPrebil / guide.md
Last active August 2, 2026 21:16
Upgrading immich postgres major version (14 -> 18) for a docker environment

PostgreSQL Major Version Upgrades (Docker)

Major PostgreSQL upgrades (e.g., 14→18) require a full dump and restore — the data files are not compatible across major versions.

Note: Immich requires vector extensions, and they supply an image with them bundled in as ghcr.io/immich-app/postgres:18-vectorchord0.5.3-pgvector0.8.1

Procedure

  1. Dump: docker exec -t <container> pg_dumpall --clean --if-exists --username=<user> | gzip > dump.sql.gz
  2. Stop the stack: docker compose down
@lewixlabs
lewixlabs / TL-WN722N_monitormode.sh
Last active August 2, 2026 21:14
How to enable monitor mode for TP-LINK TL-WN722N V2/V3/Vx
# Credits:
# - https://www.hackster.io/thatiotguy/enable-monitor-mode-in-tp-link-tl-wn722n-v2-v3-128fc6
# - https://github.com/aircrack-ng/rtl8188eus/issues/234
# Tested on Kali Linux 2022.3
# Commands used to Setup the Adapter from aircrack repository
sudo apt update
sudo apt install bc -y
sudo rmmod r8188eu.ko
git clone https://github.com/gglluukk/rtl8188eus
cd rtl8188eus
@haydenmc
haydenmc / nozzle-wipe.gcode
Created June 17, 2026 00:02
Custom Prusa Core One GCode for Stealthbrush Nozzle Wiper
; Alternate GCode for the Stealthbrush Prusa Core One Mod
; Intended to be slightly more "aggressive" when brushing the nozzle,
; inspired by the Bambu A1 wipe pattern.
;
; Paste after `G29 G ; absorb heat` in Core One Printer "Start G-code"
;
; --- PREP NOZZLE FOR WIPE ---
M109 S180 ; heat nozzle to soften residue, wait
M104 S{((filament_type[0] == "PC" or filament_type[0] == "PA") ? (first_layer_temperature[0] - 25) : (filament_type[0] == "FLEX") ? 210 : 170)} ; set passive (no-wait) MBL target for temp to settle to during wipe
; --- /PREP NOZZLE FOR WIPE ---
@octocat
octocat / hello_world.rb
Created October 1, 2014 16:19
Hello world!
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello #{@name}!"
end
end
hello = HelloWorld.new("World")