Skip to content

Instantly share code, notes, and snippets.

@lg
lg / adding-tailscale-to-edgerouter.md
Last active December 24, 2025 09:32
Add tailscale to an EdgeRouter and surviving system upgrade

Adding tailscale to an EdgeRouter (and surviving system upgrades)

I suggest you run sudo bash on all of these so you're the root user.

Installing

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your EdgeRouter's processor (ex. ER4 is mips and ERX is mipself)
sudo bash    # if you havent already
#include <windows.h>
#include <atlbase.h>
#include <atlcom.h>
#include <msctf.h>
#include <strsafe.h>
#include <psapi.h>
#pragma comment(lib, "psapi.lib")
#define TEXTSERVICE_DESC L"Universal Text Service"
@mimoo
mimoo / improve_newyork.md
Last active December 24, 2025 09:29
Improving New York

Improving New York

A list of what I think would improve the city:

  • more pedestrian streets like in Europe (this one is urgent)
  • more small parks across the city (SF has many small parks across the city)
  • less scaffoldings (OMG these scaffoldings are everywhere and they stay there for months/years!)
  • less rats (this is crazy)
  • less trash (in nordic countries they have trash underground)
  • more electrical cars (reduces noise pollution)
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active December 24, 2025 09:28
set -e, -u, -o, -x pipefail explanation
@cjgiridhar
cjgiridhar / nested_maps.go
Created February 18, 2019 16:23
Nested Maps in Golang
package main
import "fmt"
func main() {
// shoppingList is a map that has a map inside it
shoppingList := make(map[string]map[string]int)
// veggies key points to veggiesMap
veggiesMap := map[string]int{"onion": 2, "orka": 3}
@thiagozs
thiagozs / DoH_DNSoverHTTPS.md
Created November 29, 2021 21:16
DoH - DNS over HTTPS

DoH - DNS over HTTPS

DoH queries resolve over HTTPS for privacy, performance, and security. DoH also makes it easier to use a name server of your choice instead of the one configured for your system.

Spec

RFC 8484 - DNS Queries over HTTPS (DoH)

Publicly available servers

@Clemv95
Clemv95 / ygg-api-download.yml
Last active December 24, 2025 09:20 — forked from LimeDrive/ygg-api.yml
Indexeur ygg-api pour jackett / prowlarr
---
id: yggapi
name: YggAPI
description: Indexeur non-officiel pour YggTorrent (YGG) - MOVIES / TV
language: fr-FR
type: private
encoding: UTF-8
testlinktorrent: false
links:
- https://yggapi.eu/
@t3dotgg
t3dotgg / model-prices.csv
Last active December 24, 2025 09:14
Rough list of popular AI models and the cost to use them (cost is per 1m tokens)
Name Input Output
Gemini 2.0 Flash-Lite $0.075 $0.30
Mistral 3.1 Small $0.10 $0.30
Gemini 2.0 Flash $0.10 $0.40
ChatGPT 4.1-nano $0.10 $0.40
DeepSeek v3 (old) $0.14 $0.28
ChatGPT 4o-mini $0.15 $0.60
Gemini 2.5 Flash $0.15 $0.60
DeepSeek v3 $0.27 $1.10
Grok 3-mini $0.30 $0.50
@browny
browny / simple_socket_example.c
Last active December 24, 2025 09:12
simple socket example in C
/* --- Usage --- */
g++ server.c -o server
g++ client.c -o client
./server
./client 127.0.0.1
/* --- server.c --- */
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@subtleGradient
subtleGradient / vt-hig.pdf
Last active December 24, 2025 09:09
VT-HIG Cheat Sheet -- Virtual Terminal Human Interface Guidelines
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.