Skip to content

Instantly share code, notes, and snippets.

@dougg0k
dougg0k / edgerouter_doh.md
Last active January 16, 2026 04:00
Edgerouter / EdgeOS / DoH / Security Settings / NextDNS / Cloudflare

Edgerouter / EdgeOS / DoH / Security Settings

Notes

  • It seems that every firmware update, whatever was done to get nextdns into the router, will be gone, so you will have to redo the steps or at least some, if you confirm that it has happened.
  • Make sure to have NTP enabled and configured. To avoid bugs.
  • You can do through the UI CLI or using SSH, if you have enabled it and set a port.
  • You can delete any configuration done, by using delete, e.g., delete firewall all-ping.
  • These steps were confirmed to be working after a complete hardware reset.
@tak-dcxi
tak-dcxi / typography.md
Last active January 16, 2026 04:00
タイポグラフィCSS

タイポグラフィ

汎用的な文章の折り返し指定

  • 下のような指定を:rootに指定しておく。
:where(:root) {
  overflow-wrap: anywhere; /* 収まらない場合に折り返す */
  /* word-break: initial; 単語の分割はデフォルトに依存(初期値のため指定しなくて良い) */
#!/usr/bin/env bun
/**
* ============================================================
* PROOF: Anthropic is specifically blocking "OpenCode"
* in Claude Code OAuth system prompts
* ============================================================
*
* Video covering this script here: https://www.youtube.com/watch?v=G9YX6StP2-M
*
* This script demonstrates that Anthropic has specifically blocked
@sgup
sgup / wezterm.lua
Last active January 16, 2026 03:57
WezTerm config with Ghostty-style keybindings and default theme (Turn WezTerm into Ghostty)
local wezterm = require("wezterm")
local act = wezterm.action
local config = wezterm.config_builder()
-- Ghostty default color scheme with macOS selection highlight
config.colors = {
foreground = "#d8d8d8",
background = "#282c34",
@jscher2000
jscher2000 / syncedTabsToBookmarksHTML.js
Last active January 16, 2026 03:53
Export Synced Tabs List to "bookmarks.html" file (Browser Console script)
// Run code in Browser Console after enabling chrome debugging --
// about:config => devtools.chrome.enabled => true
// https://developer.mozilla.org/docs/Tools/Browser_Console
try {
var tabPromise = SyncedTabs._internal.getTabClients();
tabPromise.then((arrDevices) => {
if (arrDevices && arrDevices.length > 0){
// Generate a string with the format of a bookmark export file
var d, e, out = '<!DOCTYPE NETSCAPE-Bookmark-file-1>\n<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">\n<TITLE>Bookmarks</TITLE>\n<H1>Bookmarks Menu</H1>\n<DL><p>\n';
const escapeHtmlEntities = function(aText){return (aText || '').replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#39;')};

CSS Shadow FX

  • the NaN mural shadows load slowly in hopes browsers help support shadows and elders
  • the violetttear mural mourns electronic pluses in text shadow
  • the POFT mural advocates life after loss and sobbing shadows
  • the qyslem mural shadows leads downward like madness
  • the sinset mural shadows evoke natural born thrillers
@sergeyk
sergeyk / claude_code_prompts_and_tools.yaml
Last active January 16, 2026 03:43
Claude Code System Prompt and Tool Descriptions
model: claude-opus-4-20250514
messages:
- role: user
content:
- type: text
text: |
<system-reminder>
As you answer the user's questions, you can use the following context:
# important-instruction-reminders
Do what has been asked; nothing more, nothing less.
@minhqnd
minhqnd / export_fap_calendar.md
Last active January 16, 2026 03:40
Xuất lịch học từ FAP (FPT Academic Portal) sang file ICS để import vào Apple Calendar / Google Calendar.

FAP to Calendar

Xuất lịch học từ FAP (FPT Academic Portal) sang file ICS để import vào Apple Calendar / Google Calendar.

Tính năng

  • Xuất lịch học của tất cả các môn trong kỳ hiện tại
  • Support vị trí 5 cơ sở FPT: Hòa Lạc, Đà Nẵng, Cần Thơ, HCM, Quy Nhơn
  • Tự động thông báo thời gian di chuyển dựa vị trí trên
@twalker
twalker / getting-as-started-lily58.md
Last active January 16, 2026 03:39
getting-as-started-lily58

Getting Started

Enclosed is your custom built wireless Lily58 keyboard.

  1. Turn on ("Right on, Left off.") each of the two halves using the small toggle under the USB-C port.
  2. The keyboard should appear in bluetooth settings as "Lily58". Connect to it to pair your computer with the keyboard. Alternatively, connect a USB-C cable between the left half and your computer.
  3. Type and turn knobs!

The default Lily58 keymap has been flashed onto the keyboard.