Skip to content

Instantly share code, notes, and snippets.

View crazy-max's full-sized avatar

CrazyMax crazy-max

View GitHub Profile
$ docker-compose logs -f
Attaching to bin_diun_1, cloudflared
cloudflared | time="2019-12-14T15:30:07+01:00" level=info msg="Adding DNS upstream" url="https://1.1.1.1/dns-query"
cloudflared | time="2019-12-14T15:30:07+01:00" level=info msg="Adding DNS upstream" url="https://1.0.0.1/dns-query"
cloudflared | time="2019-12-14T15:30:07+01:00" level=info msg="Starting metrics server" addr="[::]:49312"
cloudflared | time="2019-12-14T15:30:07+01:00" level=info msg="Starting DNS over HTTPS proxy server" addr="dns://0.0.0.0:5053"
diun_1 | Sat, 14 Dec 2019 15:30:07 CET INF Starting Diun v2.0.0
diun_1 | Sat, 14 Dec 2019 15:30:07 CET INF Found 1 docker provider(s) to analyze...
diun_1 | Sat, 14 Dec 2019 15:30:10 CET INF New image found id=mydocker image=docker.io/crazymax/cloudflared:latest provider=docker
diun_1 | Sat, 14 Dec 2019 15:30:12 CET INF New image found id=mydocker image=docker.io/crazymax/cloudflared:2019.9.0 provider=docker
version: "3.5"
x-env-global: &env-global
- &MYSQL_DATABASE "librenms"
- &MYSQL_USER "librenms"
- &MYSQL_PASSWORD "asupersecretpassword"
- &TZ "UTC"
- &PUID "1000"
- &PGID "1000"
name: build
on: push
jobs:
 build:
 runs-on: ubuntu-latest
 steps:
 -
 name: Check GitHub Status
 uses: crazy-max/ghaction-github-status@v1
 -
name: build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Check GitHub Status
@crazy-max
crazy-max / issues.yml
Last active May 26, 2020 22:20
bdougieYo Issues Grab
name: issues
on:
push:
jobs:
generate:
runs-on: ubuntu-latest
steps:
-
name: lint
on:
pull_request:
paths:
- '.github/workflows/lint.yml'
- 'src/*'
jobs:
lint:
@crazy-max
crazy-max / move-wsl2-distro.md
Last active October 4, 2020 00:08
Move WSL2 distro

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
@crazy-max
crazy-max / git-empty-commit.md
Last active October 17, 2020 21:34
Create Git empty commit

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

$ git commit --allow-empty -m "Trigger event"
@crazy-max
crazy-max / ddns-route53.yml
Last active November 25, 2020 17:43
medium-ddns-route53-config
credentials:
accessKeyID: "ABCDEFGHIJKLMNO123456"
secretAccessKey: "abcdefgh123456IJKLMN+OPQRS7890+ABCDEFGH"
route53:
hostedZoneID: "ABCEEFG123456789"
recordsSet:
- name: "ddns.example.com."
type: "A"
ttl: 300
@crazy-max
crazy-max / 00-dashboard.yml
Last active March 8, 2021 10:26
SysVinit conf for Traefik 2
# /etc/traefik/conf.d/00-dashboard.yml
http:
routers:
dashboard:
rule: "PathPrefix(`/api`) || PathPrefix(`/dashboard`)"
service: "api@internal"