Skip to content

Instantly share code, notes, and snippets.

@HijabuAlief
HijabuAlief / main.go
Created August 16, 2026 11:51
n plus one problem mojokwithhijab
package main
import (
"database/sql"
"encoding/json"
"fmt"
"log"
"net/http"
"os"
"time"
@lcretan
lcretan / sq2dq.lua
Created August 16, 2026 11:51 — forked from hymkor/sq2dq.lua
nyagosでシングルクォートを UNIX 風に使えるようにするフィルタ。"で囲まれていない ' を " にかえ、' で囲まれた " を \" に置換するだけ
local function sq2dq(source)
local sq = false
local dq = false
return (string.gsub(source,"[\"']",function(c)
if c == "'" then
if not dq then
sq = not sq
return '"'
end
end
@forkyau
forkyau / hourly_rainfall_data-2026-08-16|19-30.csv
Created August 16, 2026 11:51
GIST created by python code
id station stationid value unit obstime date
0 流浮山 RF001 0 mm 2026-08-16T19:30:00+08:00 2026-08-16
1 湿地公园 RF002 0 mm 2026-08-16T19:30:00+08:00 2026-08-16
2 水边围 N12 0 mm 2026-08-16T19:30:00+08:00 2026-08-16
3 石岗 RF003 M mm 2026-08-16T19:30:00+08:00 2026-08-16
4 大美督 RF004 0 mm 2026-08-16T19:30:00+08:00 2026-08-16
5 大埔墟 RF005 0 mm 2026-08-16T19:30:00+08:00 2026-08-16
6 北潭涌 RF006 0 mm 2026-08-16T19:30:00+08:00 2026-08-16
7 滘西洲 RF007 0 mm 2026-08-16T19:30:00+08:00 2026-08-16
8 西贡 N15 0 mm 2026-08-16T19:30:00+08:00 2026-08-16
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created August 16, 2026 11:51
Rimworld output log published using HugsLib
This file has been truncated, but you can view the full file.
Log uploaded on Sunday, August 16, 2026, 7:50:22 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.4.2), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.4.2.0]: 0Harmony(av:2.4.2,fv:2.4.1), HarmonyMod(2.4.2)
Loading Progress(ilyvion.LoadingProgress): ilyvion.LoadingProgress(0.11.0)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
FROM debian:trixie
ARG MISE_VERSION=v2026.8.6
ENV DEBIAN_FRONTEND=noninteractive
ENV MISE_DATA_DIR=/mise
ENV MISE_CONFIG_DIR=/mise
ENV MISE_CACHE_DIR=/mise/cache
ENV MISE_INSTALL_PATH=/usr/local/bin/mise
ENV PATH=/mise/shims:${PATH}
blueprint:
name: Moody Alarm (unified)
description: >
A mode-ranked alarm. Sensors are optional, so this one blueprint covers both
real alarms (like fire or intruder) and entries that only run side effects (like travel mode)
when a mode changes.
Requires a Dropdown helper with the entity id `input_select.house_mode`,
whose options are listed from LEAST armed to MOST armed, for example:
`off, safety, inside, away, travel`.
@chenhttim-source
chenhttim-source / pages-bundle.b64
Created August 16, 2026 11:49
Temporary MenuCraft Cloudflare Pages deployment bundle
This file has been truncated, but you can view the full file.
class Solution {
public:
bool stoneGameIX(vector<int>& stones) {
int counter_0 = 0;
int counter_1 = 0;
int counter_2 = 0;
for(int val : stones){
if(int type = val % 3; type == 0){
counter_0++;
● Grounded in measurement first. Here's what's actually running.
The chain today, end to end
jotunheimr_lan host
└─ systemd-resolved 127.0.0.53 ← also does LLMNR + mDNS ⚠
└─ DNS → heimdal1:53 (dnsmasq)
├─ authoritative for jotunheimr.lan (local=/jotunheimr.lan/) ✓
└─ everything else → 127.0.0.53 on heimdal1 (systemd-resolved)
└─ upstream = whatever the UPLINK DHCP lease said (router0/FRITZ!Box)