# plug in 32GB micro SD card
sudo lsblk # something like /dev/sde
sudo mkfs.vfat -F 32 -n "GameBoy" /dev/sde
# safely eject and plug into device
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 | |
| # Optionally, install client | |
| # curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | sh | |
| # Create project where all this will live | |
| oc new-project openshell | |
| oc adm policy add-scc-to-user privileged -z openshell-sandbox -n openshell | |
| # Install operator and crds |
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 | |
| # https://redhatgov.io/workshops/openshift_4_101/ | |
| # https://github.com/RedHatGov/openshift-workshops/tree/master/dc-metro-map | |
| oc new-project metro | |
| echo "Created namespace" | |
| oc new-app --name=dc-metro-map https://github.com/RedHatGov/openshift-workshops.git --context-dir=dc-metro-map --as-deployment-config=true | |
| echo "Started build" |
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 | |
| # Bender's Certified Ultimate OS & Agent Restore System | |
| # Usage: ./restore_system.sh <path_to_backup_directory> | |
| set -e | |
| BACKUP_DIR="$1" | |
| if [ -z "$BACKUP_DIR" ]; then | |
| echo "❌ Error: Please specify the path to the backup directory." |
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 | |
| BACKUP_DIR="/home/claw/Backups/$(date +%Y-%m-%d_hours-%H)" | |
| mkdir -p "$BACKUP_DIR" | |
| echo "🤖 Backing up OpenClaw and Workspace..." | |
| openclaw backup create --output "$BACKUP_DIR" --verify | |
| echo "📦 Exporting Fedora DNF package list..." | |
| rpm -qa --qf "%{NAME}\n" > "$BACKUP_DIR/fedora-packages.txt" |
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 | |
| # be "root" user | |
| # set timezone | |
| timedatectl set-timezone America/New_York | |
| # add "claw" user and let them sudo | |
| useradd -m -s /bin/bash -G wheel claw |
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
| { | |
| "$schema": "https://opencode.ai/config.json", | |
| "mode": { | |
| "plan": { | |
| "model": "anthropic/claude-opus-4-8", | |
| "tools": { "write": false, "edit": false, "bash": false } | |
| }, | |
| "build": { | |
| "model": "anthropic/claude-sonnet-5", | |
| "tools": { "write": true, "edit": true, "bash": true } |
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 | |
| # update | |
| sudo dnf upgrade --refresh | |
| sudo dnf system-upgrade download --releasever=44 --allowerasing | |
| sudo dnf5 offline reboot |
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
| name: Local Config | |
| version: 1.0.0 | |
| schema: v1 | |
| models: | |
| - name: Granite | |
| provider: openai | |
| model: granite-3-1-8b-instruct | |
| apiKey: sk-abc123def456ghi789jkl012mno345pqr678stu901vwx234 | |
| apiBase: "http://granite-3-1-8b-instruct-predictor.ic-shared-llm.svc.cluster.local:8080/v1" |
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 | |
| # get certs | |
| openssl s_client -showcerts -connect YOUR_REG.COM:8443 </dev/null | |
| # see subject and issuer | |
| openssl x509 -noout -subject -issuer | |
| <PASTE YOUR CERT HERE> |
NewerOlder