Skip to content

Instantly share code, notes, and snippets.

View senseab's full-sized avatar
😵
I am dead, just literally.

Sense T senseab

😵
I am dead, just literally.
  • 13:53 (UTC +08:00)
View GitHub Profile
@senseab
senseab / yuzucheatsspliter.py
Created July 1, 2023 01:06
Split cheats for yuzu
#!/usr/bin/env python3
import os
import sys
import re
INNER=r'(?P<name>.+)\](?P<content>.+)'
class Parser():
def __init__(self, cheatfile):
@senseab
senseab / k3s-patch.yml
Last active May 19, 2022 09:48
use traefik acme with cloudflare on k3s
# TODO: STILL WIP
# use `traefik.ingress.kubernetes.io/router.tls.certresolver: default` annotation for kubernetes ingress.
---
apiVersion: v1
kind: Secret
metadata:
name: cloudflare-api-token-secret
namespace: kube-system
data:
api-token: OMITTED
@senseab
senseab / calico.yaml
Last active October 22, 2023 12:36
deploy calico in k3s
# Usage in k3s
# set k3s server with `--flannel-backend=none --disable-network-policy --service-cidr=10.43.0.0/16,fd01::00/112`
# restart all k3s component, containerd included.
# use this manifest with `kubectl apply -f <manifest>
# set `net.ipv6.conf.all.forwarding=1` and `net.ipv4.conf.all.forwarding=1` via sysctl
# ALL done.
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap