Skip to content

Instantly share code, notes, and snippets.

Avatar

CrazyMax crazy-max

View GitHub Profile
View term_windows.go
//go:build windows
// +build windows
package term
import (
"fmt"
"unsafe"
"golang.org/x/sys/windows"
@crazy-max
crazy-max / 00-dashboard.yml
Last active Mar 8, 2021
SysVinit conf for Traefik 2
View 00-dashboard.yml
# /etc/traefik/conf.d/00-dashboard.yml
http:
routers:
dashboard:
rule: "PathPrefix(`/api`) || PathPrefix(`/dashboard`)"
service: "api@internal"
@crazy-max
crazy-max / git-empty-commit.md
Last active Oct 17, 2020
Create Git empty commit
View git-empty-commit.md

In case you want to trigger an event on GitHub, you can create an empty commit:

$ git commit --allow-empty -m "Trigger event"
View move-wsl2-distro.md

If you have a small drive on C and would like to move your WSL distro you can do it using the LxRunOffline tool.

  • Install LxRunOffline (msvc)
  • List your installed distros with LxRunOffline list command:
PS C:\> LxRunOffline list
docker-desktop-data
Ubuntu
docker-desktop
View lint.yml
name: lint
on:
pull_request:
paths:
- '.github/workflows/lint.yml'
- 'src/*'
jobs:
lint:
@crazy-max
crazy-max / issues.yml
Last active May 26, 2020
bdougieYo Issues Grab
View issues.yml
name: issues
on:
push:
jobs:
generate:
runs-on: ubuntu-latest
steps:
-
View github-status.yml
name: build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Check GitHub Status
View github-status.yml
name: build
on: push
jobs:
 build:
 runs-on: ubuntu-latest
 steps:
 -
 name: Check GitHub Status
 uses: crazy-max/ghaction-github-status@v1
 -
View pwd.yml
version: "3.5"
x-env-global: &env-global
- &MYSQL_DATABASE "librenms"
- &MYSQL_USER "librenms"
- &MYSQL_PASSWORD "asupersecretpassword"
- &TZ "UTC"
- &PUID "1000"
- &PGID "1000"
@crazy-max
crazy-max / Caddy.env
Last active Dec 5, 2021
Proxmox web interface through Caddy as reverse proxy with Let's Encrypt
View Caddy.env
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_HOSTED_ZONE_ID=