Install debian as usual:
- EFI partition ~256M, boot, esp flags
- ext2 boot partition ~512M
- luks cyrpt volume
- LVM pv
- swap ~5G
- btrfs
- LVM pv
When the installation is finished, boot into SystemRescueCD.
| #!/bin/bash | |
| # Slack default icons seem to big for KDEs taskbar (64x64px, don't know why KDE does not scale them down automatically). | |
| # To fix that (being able to see notification bubbles again!), simply resize the icons. | |
| # For me 24x24px is optimal. | |
| sudo mogrify -resize 24x24 /usr/lib/slack/resources/app.asar.unpacked/src/static/slack-taskbar-*.png |
values.yaml
## One may define arbitrary environment variables here
env:
VARIABLE_ONE: "Foo"
VARIABLE_TWO: ""
## List of all environment variables that are required by this helm chart
requiredEnvs:
- VARIABLE_ONE| #!/bin/bash | |
| # grep -E pattern to ignore certain resources | |
| IGNORE="^resourcequota/gke-resource-quotas|^secret/default-toke|^serviceaccount/default" | |
| # Get a list of all "listable" namespaced ressources | |
| resources=$(kubectl api-resources --verbs=list --namespaced=true -o name | paste -sd, -) | |
| namespaces=$(kubectl get namespaces -o jsonpath='{.items[*].metadata.name}') | |
| for ns in $namespaces; do |
| import math | |
| import datetime | |
| secs_per_day = 24 * 60 * 60 | |
| def SOMECALCFUNC(datefloat): | |
| # date comes as float from libreoffice where the integer part is the number | |
| # of days since 1899-12-30 and the decimal part is the time as fraction of | |
| # day. | |
| timefrac, days = math.modf(datefloat) |
To make the usbhid driver ignore the touchscreen device, add a HID_QUIRK_IGNORE quirk as module paramater:
Add a modprobe file, like /etc/modprobe.d/disable_raydium_touchscreen.conf:
# Add/modify USB HID quirks by specifying
# quirks=vendorID:productID:quirks where vendorID, productID, and quirks are all in 0x-prefixed hex
#
# For a list of quirks, see https://github.com/torvalds/linux/blob/master/include/linux/hid.h
options usbhid quirks=0x2386:0x4328:0x00000004
| #!/bin/env python3 | |
| # | |
| # Download LAADS data from https://ladsweb.modaps.eosdis.nasa.gov | |
| # | |
| import argparse | |
| import concurrent.futures | |
| import datetime | |
| import shutil |
| # Get namespace, secret name and JWT "kid" (key ID) of all service-account-token secrets | |
| kubectl get secrets --field-selector type=kubernetes.io/service-account-token \ | |
| -o jsonpath='{range .items[*]}{.data.token}{"\n"}{end}' -A | | |
| while read token; do | |
| echo $token | base64 -d | step crypto jwt inspect --insecure | jq -r '[ .payload."kubernetes.io/serviceaccount/namespace", .payload."kubernetes.io/serviceaccount/secret.name", .header.kid] | @tsv' | |
| done | |
| # The key ID references the public-key that needs to be used to validate the signature. | |
| # Compute the kid for a given public-key like: |
| # Place this at the end of the ssh config to launch a tmux session called 'ssh' when logging in via SSH or attach to it when it exists. | |
| # * Don't launch tmux then ssh is called with a command (like 'ssh <remote> <command>') | |
| # * If tmux is not installed, fall back to the login shell | |
| # * Print the MOTD message in a temporary split-window on creating/attaching a session (will close on enter key) | |
| Match exec "[[ $(ps h o args p $PPID | wc -w) -eq 2 ]]" | |
| RequestTTY yes | |
| RemoteCommand command -v tmux > /dev/null 2>&1 && tmux new-session -A -s ssh \; split-window 'motd=$(cat /run/motd.dynamic 2>/dev/null || cat /etc/motd 2>/dev/null); lines=$(echo "$motd" | wc -l); tmux resize-pane -y $((lines + 1)); echo "$motd"; read -r _' || exec $SHELL -l |