This file contains 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": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, |
This file contains 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
# This proxy can help you understand what requests a container is making. | |
# You'll need to point that container to this and this to what ever the container really wanted to make the request to. | |
# Alternatives to this are to use a system proxy/service mesh (istio) | |
# kubectl logs deployments/proxy-logger --tail -1|grep {|jq -r .request_query | |
# a use vscode extension to decode querystrings: https://marketplace.visualstudio.com/items?itemName=sryze.uridecode | |
# to use that, pipe the output to a file and then use that extension to decode uri as URI Component | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: |
This file contains 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
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: update-nightly-helm-sa | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: cluster-admin-binding |
This file contains 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 { | |
listen 443 ssl http2; | |
server_name rainmachine.xyz; | |
ssl_certificate /etc/nginx/fullchain1.pem; | |
ssl_certificate_key /etc/nginx/privkey1.pem; | |
location / { |
This file contains 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
Set-Alias -Name h -Value ALLHISTORY | |
Set-Alias -Name history -Value ALLHISTORY | |
Set-Alias -name which where.exe | |
Set-Alias -name curl -value http.exe # pip install httpie or choco install httpie | |
Set-Alias -Name ll -Value Get-ChildItem |
This file contains 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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: demo-app1 | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: demo-app1 | |
namespace: demo-app1 |
This file contains 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 { | |
# server_name your.host.lan # use this if not the only proxy for 443 | |
listen 443 ssl http2 default_server; # the default_server may break other servers listening on 443, and there can only be one. | |
ssl_certificate /etc/ssl/letsencrypt/fullchain.pem; | |
ssl_certificate_key /etc/ssl/letsencrypt/privkey.pem; | |
location / { | |
proxy_pass https://xxx; #IP or fqdn | |
proxy_set_header Host $http_host; # the magic |
This file contains 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
# sample code, use at your own risk | |
# script to install zfs, nextcloud using snap and moving the data to the new volume with compression and deduplication enabled. | |
# Do your own research as to pros and cons of zfs dedupe and compression. | |
# Short advice is that compression works well unless you're mostly storing compressed file formats like media. | |
# install and configure zfs, assuming 2nd disk is where you want your data stored. | |
sudo apt install zfsutils-linux | |
sudo zpool create nextcloud /dev/sdb | |
sudo zfs create nextcloud/data | |
sudo zfs set compression=lzjb nextcloud/data |