Skip to content

Instantly share code, notes, and snippets.

@jakelmg
jakelmg / lancache-flatcar-config.yaml
Last active July 11, 2025 07:16
LAN Cache Flatcar Butane Config Example (RAID 0 XFS, Bonded Network)
variant: flatcar
version: 1.0.0
kernel_arguments:
should_exist:
- flatcar.autologin
passwd:
users:
- name: core
ssh_authorized_keys:
- "ssh-ed25519 T0r5c5h2exdqJOsFgoimZmnNGkOwHse6CkbMcGrW8pi0vxXbkgdmcRDIepuw EXAMPLE SSH KEY"
@Kenichi-md
Kenichi-md / menu.js
Last active July 11, 2025 07:15 — forked from Mr-rabbit-xd/menu.js
const { bot, getBuffer, jidToNum, genThumbnail } = require('../lib/');
const { VERSION } = require('../config');
const {
textToStylist,
getUptime,
@elliotboney
elliotboney / fontList.jsx
Created November 29, 2017 01:24
List all available fonts in Adobe Illustrator using example text. I use it for testing how words look in all my fonts.
// script.name = fontList.jsx;
// script.description = creates a document and makes a list of all fonts seen by Illustrator;
// script.requirements = none; // runs on CS4 and newer;
// script.parent = eboney // 11/28/2017;
// script.elegant = false;
#target illustrator
#targetengine main
var edgeSpacing = 10;
var columnSpacing = 195;
@strarsis
strarsis / howto.md
Last active July 11, 2025 07:09
KeeAgent (for KeePass) on Bash on Windows / WSL (2)

Update (March 2023) (Last checked: Oktober 2024)

Side note: The latest edge build of KeeAgent plugin offers an option for creating a WSL compatible socket. This would be very handy. I already tried to use that socket, but the socket file is currently empty and ssh inside WSL 2 is unable to use it. This appears to be a very new, unreleased and unstable feature. I will follow the development of it and when it finally works (well, for me) I will update this HOWTO. But until then, please use the proven wsl-ssh-agent/npiperelay.exe approach below.

Thanks to the instructions for WSL 2 of the wsl-ssh-agent project, KeeAgent works great in WSL 2 now: https://github.com/rupor-github/wsl-ssh-agent#wsl-2-compatibility The approach uses minimal and well-maintained tools.

Mini-changelog

git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@Heeqw
Heeqw / new_file.txt
Created July 11, 2025 07:00
Updated Gist description for testing
This is a new file added to the gist for testing purposes.
@flipeador
flipeador / extension-manifest-v2-availability.reg
Last active July 11, 2025 07:00
Extend the Manifest V2 phase-out in Windows.
Windows Registry Editor Version 5.00
; Microsoft Edge
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"ExtensionManifestV2Availability"=dword:00000002
; Chromium
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Chromium]
"ExtensionManifestV2Availability"=dword:00000002
@hecheng337
hecheng337 / MisakaF_Reverse_Proxy.md
Last active July 11, 2025 06:59
反向代理 MisakaF 公费服 (Nginx)

如果你之前已经设置好了反向代理服务器:

1.将原来的 location / {} 复制一份,粘贴到下面;
2.在原来的 location 块中加入一行:
proxy_redirect https://MisakaF视频推流地址/ https://你服务器的地址/;
3.在复制的 location 块中,将 location / 改成 location /p/,将 proxy_pass 的目标地址改成 视频推流地址 /p/

完整的 Nginx 配置示范:

map $http_upgrade $connection_upgrade {
@glubsy
glubsy / howto_record_youtube_livestreams.md
Last active July 11, 2025 06:58
How to properly record Youtube & Twitch live streams

How to record Youtube live streams:

  • use livestream_saver to download from the first segment. Can also record membership-only streams by supplying it your cookies (uses yt-dlp to download)

  • use ytarchive which basically does the same thing, except a bit better.

  • use youtube_stream_capture. You can use cookies file to get member-only streams too. Be aware that this script currently fails to download chunks as soon as the stream has ended (this might be a bug).

  • or use live-dl which does monitoring of streams too. This is a wrapper around streamlink and yt-dlp.

@RealDotNetDave
RealDotNetDave / .editorConfig
Last active July 11, 2025 06:55
.editorConfig by David (dotNetDave) McCarter - dotNetTips.com
####################################################################################################
# dotNetDave's (David McCarter) Editor Config - dotNetTips.com
# Updates to this file are posted quarterly at: https://bit.ly/EditorConfig5
# Updated May 1, 2025
# Code performance book is available at: https://bit.ly/DotNetCodePerf4
# Coding standards book is available at: https://bit.ly/CodingStandards8
####################################################################################################
root = true