Skip to content

Instantly share code, notes, and snippets.

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active January 8, 2025 01:08
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
#!/bin/sh
# save/restore windows through an aerospace restart
# - won't work for OS reboots as (presumably) window IDs will be reset
# - OS restart: could go most of the way there by moving windows based on their
# titles, however aerospace does not provide a CLI facility to do that
# - https://github.com/nikitabobko/AeroSpace/issues/57
STATEFILE=~/.aerospace-windows.json
save()
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active January 8, 2025 01:01
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@alexedwards
alexedwards / gist:dc3145c8e2e6d2fd6cd9
Last active January 8, 2025 00:57
Example of working with Go's database/sql and NULL fields
CREATE TABLE books (
isbn char(14) NOT NULL,
title varchar(255),
author varchar(255),
price decimal(5,2)
);
INSERT INTO books (isbn, title, author, price) VALUES
('978-1503261969', 'Emma', 'Jayne Austen', 9.44),
('978-1514274873', 'Journal of a Soldier', NULL, 5.49),
@VVispy
VVispy / LG TV Homebrew Guide.md
Last active January 8, 2025 00:53
LG TV Homebrew Guide

How to Install Third Party Apps on LG Brand TVs

  • This is done using webOS dev manager + LG developer mode auto-renewal. Completely for free.
  • Homebrew allows users to install select extra apps that are not on the LG content store to their LG TV such as Ad-free YouTube (Sponsorblock included) and Kodi.
  • It's known to work on C and G series LG TVs. May work on others.
  • This will not void your warranty and will not break anything if done correctly.
  • This guide is pretty easy to follow, so don't be overwhelmed

Guide

Pair TV to Computer and Install Homebrew

@ironlungx
ironlungx / nvim-pio.md
Last active January 8, 2025 00:51
PlatformIO with Neovim

Extensions

Following are the extensions required for neovim:

I use lazy.nvim so, just add the following to your plugins table, or create a new file in lua/plugins/lsp.lua

return {
	{