Skip to content

Instantly share code, notes, and snippets.

View JensvandeWiel's full-sized avatar
🎯
Focusing

Jens van de Wiel JensvandeWiel

🎯
Focusing
View GitHub Profile
@mariusrugan
mariusrugan / build-image.yaml
Last active August 12, 2025 23:04
Gitea self-hosted runner
# Inspired by:
# https://blog.gitea.com/creating-go-actions/
# https://gitea.com/Zettat123/test-simple-go-action/src/branch/main/.gitea/workflows/call-username.yml
# https://gitea.com/actions/release-action
# https://gitea.com/gitea/runner-images
# https://github.com/vegardit/docker-gitea-act-runner
# https://github.com/catthehacker/docker_images
#
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
@gdamjan
gdamjan / README.md
Last active April 21, 2025 17:13 — forked from gdamjan-loka/README.md
Local Docker registry running in Kubernetes / k3s

Install a docker registry in a k3s kubernetes cluster

k3s doesn't have a builtin plugin for a local registry, so this is how to install the docker registry. The registry will be exposed via the default traefik ingress (on port 80 and 443).

Assumptions

  • resolvectl query registry.localhost returns 127.0.0.1 - on most Linux distros it does. If not, enable and configure systemd-resolved
  • K3s comes with traefik ingress controller by default, so the ingress for the registry service is configured for that.
@AstralJohn
AstralJohn / Reset Udemy Progress.md
Last active August 18, 2025 13:07
Reset Udemy Progress

Reset Udemy Progress

Last Updated: 06/18/2024

Step 1. Go to the Udemy course in your browser

Go to the course and have any video up. The following code relies on the right sidebar to be visible to uncheck all your progress.

Step 2. Open browser console

You can do this with ctrl+shift+j and making sure the console tab is selected for chrome/brave

@aasumitro
aasumitro / db.go
Created November 19, 2020 06:27
gorm 2 create db if not exitst
package infrastructure
import (
"fmt"
"gorm.io/driver/mysql"
"gorm.io/gorm"
"gorm2.0/utils"
)
@triangletodd
triangletodd / README.md
Last active July 14, 2025 14:06
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a
@coding-red-panda
coding-red-panda / GameUserSettings.ini
Last active August 13, 2024 15:54
Ark Survival Evolved - GameUserSettings.ini
; Ark Survival Evolved GameUserSettings.ini
;
; This file holds all the configuration settings for the standard game as well as potential settings of mods.
; Use this as a template to create your own configuration.
; The configuration in this file is the same as what the Lagoverse server is running.
;
; ---------------------------------------------------------------------------------------------------------------------
; ServerSettings - General settings that affect the entire game
; ---------------------------------------------------------------------------------------------------------------------
[ServerSettings]
@rikatz
rikatz / eventexporter.yml
Created November 5, 2018 18:21
Kubernetes Events Export with Metricbeat + Logstash
---
apiVersion: v1
kind: ConfigMap
metadata:
name: metricbeat-config
namespace: kube-system
labels:
k8s-app: metricbeat
data:
metricbeat.yml: |-
@timcheadle
timcheadle / server.conf
Last active August 11, 2025 05:06
SSL nginx config example
server {
listen 80;
server_name www.example.com example.com;
# Redirect all traffic to SSL
rewrite ^ https://$host$request_uri? permanent;
}
server {
listen 443 ssl default_server;