Note: You may have to go into Preferences (⌘,) -> Profiles -> Keys and enable Left option (⌥) key acts as: +Esc for the option commands to work.
| Modifier | Symbol |
|---|---|
| Option | ⌥ |
| Command | ⌘ |
| Control | ⌃ |
| Caps Lock | ⇪ |
| Shift | ⇧ |
| ( | |
| set -x; cd "$(mktemp -d)" && | |
| OS="$(uname | tr '[:upper:]' '[:lower:]')" && | |
| ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" && | |
| KREW="krew-${OS}_${ARCH}" && | |
| curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" && | |
| tar zxvf "${KREW}.tar.gz" && | |
| ./"${KREW}" install krew | |
| ) |
| Install Shizuku | |
| Install Better internet tiles | |
| Connect your device to an adb shell and launch this command: | |
| - adb.exe shell sh /storage/emulated/0/Android/data/moe.shizuku.privileged.api/start.sh | |
| Open Shizuku and check that is running (as an alternative it's possible to Pair ADB without a computer by doing ADB via WIFI and use your phone split screen to confirm permissions) | |
| Open Better internet tiles and add quick toggles |
| cat <<EOF | kubectl apply -f - | |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: developer | |
| --- | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: developer-sa |
| for i in {1..100000}; do echo $(tr -dc A-Za-z0-9 </dev/urandom | head -c 5) >> output.txt; | |
| done; |
| #!/bin/bash | |
| # | |
| #Script to monitor the network LAN ARP segment and send out notifications in case of changes | |
| #Set it up via cronjob - e.g. */5 * * * * root cd /var/hostmon && bash hostmon.sh | |
| #Save previous scan | |
| cp scan.txt previousscan.txt | |
| # Exception lists to be populated for flapping cases / dhcp / low wifi connection - Name or MAC address) | |
| excluded_list=(Samsung FF:FF:46:FF:FF:FF) |
| Replace from line 30 to end of document | |
| :30,.s/pattern1/pattern2/g | |
| // Go to Radarr and click 'settings' => 'general'. | |
| // Open the JavaScript Console in Google Chrome (View => Developer => Javascript Console) | |
| // Past the following in. Hit enter and away you go. | |
| const key = document.getElementsByClassName('x-api-key')[0].value; | |
| if (!key) { | |
| alert('Navigate to /settings/general and run again'); | |
| } |
| ./check_ipmi_sensor -H 10.1.102.130 -U xxxx -P xxxx -L xxxx -xST Physical_Security,OEM_Reserved,Session_Audit -xT Physical_Security |
Note: You may have to go into Preferences (⌘,) -> Profiles -> Keys and enable Left option (⌥) key acts as: +Esc for the option commands to work.
| Modifier | Symbol |
|---|---|
| Option | ⌥ |
| Command | ⌘ |
| Control | ⌃ |
| Caps Lock | ⇪ |
| Shift | ⇧ |
| # Quitting VIM fastly | |
| ESC + ZZ (equal to wq! if file name is already set) | |
| # Quitting VIM fastly no saving | |
| ESC + ZQ | |
| # Split pane | |
| Command + d (iTerm2 split pane vertically) |