Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created February 11, 2025 19:22
vscode.install v1.97.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-3145728412-1752322905-909997274-1000</user>
<keys>
<key installerType="InnoSetup" displayName="Microsoft Visual Studio Code" displayVersion="1.97.1">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{EA457B21-F73E-494C-ACAB-524FDE069978}_is1</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files\Microsoft VS Code\]]></InstallLocation>
<UninstallString><![CDATA["C:\Program Files\Microsoft VS Code\unins000.exe" /SILENT]]></UninstallString>
@LBognanni
LBognanni / oak-preact-middleware.ts
Created February 11, 2025 19:22
preact-render-to-string middleware for Oak
import { Context } from "@oak/oak";
import { h } from "preact";
import { render } from "preact-render-to-string";
import { layoutDecorator } from "./layout.tsx";
export type DecoratorFunction = (content: string) => string;
export function defaultDecorator(content: string): string {
return content;
}
@JadKHaddad
JadKHaddad / main.rs
Last active February 11, 2025 20:38
‎may-minihttp-devices-server
//! Dependencies
//!
//! ```toml
//! [dependencies]
//! anyhow = "1.0.95"
//! bytes = "1.10.0"
//! dotenvy = "0.15.7"
//! may = "0.3.49"
//! may_minihttp = "0.1.11"
//! postgres = "0.19.10"
@CharlesAustin
CharlesAustin / styles.css
Last active February 11, 2025 19:23
Tailwind v. 4 CSS-first configuration
@import 'tailwindcss';
@theme {
--breakpoint-sm: 768px;
--breakpoint-md: 992px;
--breakpoint-lg: 1200px;
--breakpoint-xl: 1450px;
/** Custom fonts will need to be imported **/
--font-display: "Poppins", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
/mvnw text eol=lf
*.cmd text eol=crlf
@ionymikler
ionymikler / copy_files.py
Created February 11, 2025 19:20
Flatten codebase content to single directory
import shutil
from pathlib import Path
import logging
import re
import subprocess
skip_patterns = [
r'.*\.pyc$',
r'.*__pycache__.*',
r'.*assets.*',
[0 mosu@sweet-chili ~/tmp] tracepath -6 accounts.hetzner.com
1?: [LOCALHOST] 0.017ms pmtu 1500
1: _gateway 0.205ms
1: _gateway 0.053ms
2: _gateway 0.058ms pmtu 1492
2: 2003:0:1701:a418::1 9.818ms
3: 2003:0:1701:a410::2 10.410ms
4: no reply
5: 2003:0:f00::a19 16.134ms
6: core12.nbg1.hetzner.com 15.641ms
@eggplants
eggplants / yt-dlp_for_fany_online_ticket.sh
Created February 11, 2025 19:19
Download a purchased video from https://online-ticket.yoshimoto.co.jp with yt-dlp
#!/usr/bin/env bash
# NOTE: FOR PRIVATE USE. DO NOT RE-UPLOAD DOWNLOADED VIDEOS.
# 1. Reveal source of video player's `<iframe id="video_iframe" ...>` to load window.dataForPlayer
# 2. Execute the following JS code in Developer console in the watching page of purchased video:
# const url = new URL(dataForPlayer.clips[0].config);
# url.origin + url.pathname.replace('/config', '');
# // => 'https://player.vimeo.com/video/<id>'
@choco-bot
choco-bot / FilesSnapshot.xml
Created February 11, 2025 19:19
php v8.4.4 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\php\php-8.4.4-nts-Win32-vs17-x64.zip.txt" checksum="FF008886026AF809464B4D922B35A32B" />
<file path="C:\ProgramData\chocolatey\lib\php\php.nupkg" checksum="3124AA642CB07120C1A7FFFF15EF7B92" />
<file path="C:\ProgramData\chocolatey\lib\php\php.nuspec" checksum="042A01C92FE891DE05A2987E40FB1DD1" />
<file path="C:\ProgramData\chocolatey\lib\php\legal\LICENSE.txt" checksum="60B87C09985188FD87DDBA0ED163594D" />
<file path="C:\ProgramData\chocolatey\lib\php\legal\VERIFICATION.txt" checksum="A5AF28B2340D417BCE5A25E0F317566E" />
<file path="C:\ProgramData\chocolatey\lib\php\tools\chocolateyInstall.ps1" checksum="6C8BE4E046144B0AADF305E5EB0B9621" />
<file path="C:\ProgramData\chocolatey\lib\php\tools\chocolateyUninstall.ps1" checksum="E9621C74F2B7A5428DB231DE03EBEFD0" />
@james-see
james-see / get_wifi_info.sh
Created February 11, 2025 19:19
get wifi connection info to help with connectivity issues
#!/bin/bash
# Get the current Wi-Fi interface
wifi_interface=$(networksetup -listallhardwareports | awk '/Wi-Fi/{getline; print $2}')
# Get the current connected Wi-Fi network details
wifi_network=$(networksetup -getairportnetwork $wifi_interface | awk -F": " '{print $2}')
# Get the IP address
ip_address=$(ipconfig getifaddr $wifi_interface)