Skip to content

Instantly share code, notes, and snippets.

@dacr
dacr / index.md
Last active September 8, 2024 02:25
David's programming examples knowledge base / published by https://github.com/dacr/code-examples-manager #fecafeca-feca-feca-feca-fecafecafeca/8fece09821a16cac30da15528e3fcfa03e050e32

David's programming examples knowledge base

akka-pekko

@Balder1840
Balder1840 / wsl2_love_openwrt.md
Last active September 8, 2024 02:20
Run OpenWrt as a custom distro in WSL2 (WSL2下直接运行openwrt)

Here is an instruction to start openwrt as a custom WSL2 distro.
I didn't start it as a gateway in my local because I don't have windows 11 installed, and you know the poor network mode in windows 10 and wsl2.

Found a way to set WSL's network mode to bridged here and have successfully configured it as a gateway in my local.

But anyway, I think it should work under windows 11 and wsl2, since you can config it as bridged mode.
Have fun!

1. Prerequisites

1.1. Import openwrt's rootfs.tar.gz as a custom WSL2 distro

you can download from the official site

@krcm0209
krcm0209 / README.md
Last active September 8, 2024 02:19
Using AdGuard DNS over HTTPS (DoH) on Windows 11

Why

You may want to use AdGuard's DNS over HTTPS[^2] service if you

  1. Want to make it harder for your ISP to know what websites you are requesting
  2. Want to block most traditional ads from your web browsing experience across your entire PC

Setup instructions

  1. Open PowerShell
@Sauerstoffdioxid
Sauerstoffdioxid / googleurlparams.md
Last active September 8, 2024 02:16
Google/Blogger Image URL Parameters

Google/Blogger Image URL Parameters

This is an effort to document what is known about Google's (Blogger's/Blogspot's) image URL parameters. Some of these options were taken from existing first or third party documentation (see the links at the end of this document), but the majority is based off my own investigations.

Where to use them?

  • On Blogger's image URL's: 2.bp.blogspot.com/-OF7u67HQE1M/VHc8S8qJTDI/AAAAAAAACxI/UD-11c63diQ/s1600/005.png
  • On just about any googleusercontent image URL: https://lh3.googleusercontent.com/Jvmz11cLrvNIHG_LWjVO9B-UV2IN4Cfk1pycbhWZl6IriMgCAGCOFuBRtoHaiZ6xeVGqCugZcCql=w176-h176-n-o

Replace the bolded parts with the parameters.

@leodutra
leodutra / alacritty.yml
Created June 12, 2023 08:41 — forked from craig-jennings/alacritty.yml
Alacritty/NuShell/Starship Settings
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will

现整理收集C++世界里那些“牛人”的个人博客。凡三类:一是令人高山仰止的大牛,对C++语言本身产生过深远的影响的人;二是C++运用炉火纯青的高手,有原创性的技术干货;三是中文世界里的C++牛人。

C++大牛的博客

@dmancloud
dmancloud / install-rancher-with-lets-encrypt-certificate.md
Last active September 8, 2024 02:06
Rancher With Cert-Manager & Lets Encrypt (Linux)

Install Rancher Manager With Lets Encrypt (Linux)

Infrastructure

  • Domain Name
  • Ability to make DNS Changes
  • Debian 11 Virtual Machine (Should work with Ubuntu)
  • Port 80 & 443 must be accessible for Let's Encrypt to verify and issue certificates

Pick a subdomain and create a DNS entry pointing to the IP Address that will be assigned to the Rancher Server

@charlesfrye
charlesfrye / README.md
Last active September 8, 2024 02:00
Reproducing results from "Beat GPT-4o at Python by Searching with 100 Dumb LLaMAs"

See rune2e.sh for info on how to run the experiment.

@baymaxium
baymaxium / content.md
Created October 18, 2017 08:02
阿里前CEO卫哲的成败观 | 文谈硅谷

原文:硅谷密探

从最牛职业经理人到投资人

“资本玩家”、“中国零售业十大风云人物”,卫哲的身上,荣光无限,又被赋予了许多历史标签。

他从中国证券教父管金生的小秘书做起,3年干到万国证券副总经理;29岁成为普华永道史上最年轻的合伙人之一;32岁担任百安居中国区总裁,史上最年轻的世界500强中国区总裁; 36岁执掌阿里巴巴,一年后,带领阿里巴巴在香港主板上市,并在之后的几年时间里,将阿里的营业收入从2006年的13.6亿元增长到2010年的55亿元。

@ostechnix
ostechnix / debpostinstall.sh
Last active September 8, 2024 01:58
DebPostInstall: Debian and Ubuntu Post Install Bash Script
#!/usr/bin/env bash
# ------------------------------------------------------------------
# Script Name: DebPostInstall
# Description: A Bash Script to automate essential
# post-installation tasks on Debian and Ubuntu
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: sudo ./debpostinstall.sh
# ------------------------------------------------------------------