Dev-Runde Montag | apploft.
- Gehirn anschalten.
- Claude Code nativ installieren (nicht über Homebrew — der Update-Channel ist dort langsamer, ihr hängt sonst immer etwas hinterher):
curl -fsSL https://claude.ai/install.sh | bash
| @echo off | |
| :: BatchGotAdmin | |
| :CheckPrivileges | |
| NET FILE 1>NUL 2>NUL | |
| if '%errorlevel%' == '0' ( goto gotAdmin ) else ( goto getAdmin ) | |
| :getAdmin | |
| echo This script requires administrator privileges. Please confirm the UAC prompt. | |
| powershell -Command "Start-Process '%~f0' -Verb runAs" | |
| exit /b |
| #!/usr/bin/env ruby | |
| require 'csv' | |
| require 'json' | |
| if ARGV.size != 2 | |
| puts 'Usage: csv_to_json input_file.csv output_file.json' | |
| puts 'This script uses the first line of the csv file as the keys for the JSON properties of the objects' | |
| exit(1) | |
| end |
| #!/bin/bash -e | |
| clear | |
| echo "============================================" | |
| echo "WordPress Install Script" | |
| echo "============================================" | |
| echo "Database Name: " | |
| read -e dbname | |
| echo "Database User: " | |
| read -e dbuser | |
| echo "Database Password: " |
| <!-- | |
| ...................................................................................... | |
| ...................................................................................... | |
| ...................................................................................... | |
| ................................. ................................. | |
| ................................. o--o o-o ................................. | |
| ................................. | | | ................................. | |
| ................................. O-o o-o ................................. | |
| ................................. | | | ................................. | |
| ................................. o o-o ................................. |
| batman = true | |
| while batman | |
| puts "forever" | |
| end |
| #!/bin/bash | |
| NOW=`/bin/date +"%m%d%Y-%H%M%S"` | |
| if [[ "$?" != "0" ]]; then | |
| NOW="UNKNOWN_DATE" | |
| fi | |
| mysqldump -h hostname -u username -pPassword databasename > /opt/databasebackup/$NOW.sql | |
| if [[ "$?" != "0" ]]; then | |
| echo "$0: backup failed with error code $?" | |
| fi |