Skip to content

Instantly share code, notes, and snippets.

contribute projects globally

Kevin Yu yqlbu

contribute projects globally
View GitHub Profile
yqlbu /
Last active February 28, 2023 16:34
Steps to bootstrap a k0s cluster with Cilium as the CNI solution
yqlbu /
Last active February 28, 2023 15:11
set -e
if [ -n "${DEBUG}" ]; then
set -x
_k0s_latest() {
curl -sSLf ""
yqlbu / shadowrocket-dns-leak-config
Created February 25, 2023 02:34
hadowrocket config, deal with DNS leak
View shadowrocket-dns-leak-config
# Shadowrocket配置文件,解决DNS泄露
bypass-system = true
skip-proxy =,,, localhost, *.local,
tun-excluded-routes =,,,,,,,,,,,,,
dns-server = system
ipv6 = false
prefer-ipv6 = false
dns-fallback-system = false
yqlbu / auto-artifact-export.yml
Last active March 19, 2023 08:38
mosdns-v5 config template
View auto-artifact-export.yml
- name: Update dat files
hosts: all
become: yes
- base_path: /etc/mosdns
- restart_daemon: yes
- daemon_service_name: mosdns
- clean_up_after: yes
yqlbu /
Last active February 21, 2023 15:07
Some hacks around using NVIDIA GPU for Emby Container with QNAP


Some hacks around using NVIDIA GPU for Emby Container with QNAP

Make sure you have NVIDIA driver installed already

Check NVIDIA Driver Path

find /share/ -name "NVIDIA_GPU_DRV"
yqlbu / Dockerfile
Last active February 11, 2023 13:48
AWS Lambda + Serverless Framework Demo
View Dockerfile
ARG FUNCTION_DIR="/function"
### Production Stage ###
FROM python:slim-bullseye as staging-image
# Include global args in this stage of the build
# Set working directory to function root
yqlbu / pve-trick-sriov-vf-configuration
Last active February 26, 2023 14:24
Enable SR-IOV VF on Proxmox 7+
View pve-trick-sriov-vf-configuration
# The following is a step-by-step example for enabling SR-IOV VF on Promxox 7+ with BCM57810 10G NIC


SSH Configuration

$ ssh admin@router
[user@router] > /file print file=mykey;
[user@router] > /file set mykey contents="copy and paste contents of ~/.ssh/ here";
[user@router] > /user ssh-keys import public-key-file=mykey.txt
[user@router] > /ip ssh set always-allow-password-login=yes"
yqlbu /
Created October 3, 2022 02:03
Cilium Writeup