This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| type Cleaner struct { | |
| cleaningMethod string | |
| tools []string | |
| } | |
| type CoffeeMachine struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let widget = await createWidget(); | |
| if (!config.runsInWidget) { | |
| await widget.presentSmall(); | |
| } | |
| Script.setWidget(widget); | |
| Script.complete(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh -p 53871 -i ~/.lima/_config/user -o NoHostAuthenticationForLocalhost=yes 127.0.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| users=() | |
| certs=() | |
| for user in $(kubectl config view --raw --output json | jq -r '.users[] | "\(.name)"'); do | |
| users+=($user) | |
| done | |
| for cert in $(kubectl config view --raw --output json | jq -r '.users[] | "\(.user."client-certificate-data")"'); do | |
| certs+=($cert) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Written by Dario Mader | |
| #Github https://github.com/darox | |
| #Date: 22.08.2020 | |
| version: '3.8' | |
| services: | |
| grafana: | |
| image: "grafana/grafana" | |
| volumes: | |
| - type: bind |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server: | |
| http_listen_port: 9080 | |
| grpc_listen_port: 0 | |
| # Positions | |
| positions: | |
| filename: /tmp/positions.yaml | |
| # Loki Server URL | |
| clients: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Promtail service | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| ExecStart=/usr/local/bin/promtail/promtail -config.file /usr/local/bin/promtail/config.yaml | |
| [Install] | |
| WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| auth_enabled: false | |
| server: | |
| http_listen_port: 3100 | |
| ingester: | |
| lifecycler: | |
| address: 127.0.0.1 | |
| ring: | |
| kvstore: | |
| store: inmemory | |
| replication_factor: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hostname: server1.com | |
| loglevel: warn | |
| url: http://server1.com | |
| logfile: /var/log/cloudflared.log |
NewerOlder