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
| #cloud-config | |
| # Ubuntu 24.04 Autoinstall Configuration | |
| # This file automates the installation of Ubuntu 24.04 with LVM encryption | |
| # and automatically configures the system with dotfiles from this repository | |
| autoinstall: | |
| version: 1 | |
| # Interactive sections - prompt user during installation | |
| # These sections will be shown as interactive forms during installation |
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 | |
| # Bootstrap script for fresh Ubuntu install | |
| # Run with: bash -c "$(curl -fsSL https://xxz.dk/l/u24b)" | |
| set -e | |
| echo "=== Dotfiles Bootstrap ===" | |
| # Install minimal dependencies | |
| echo "[1/6] Installing dependencies..." |
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 | |
| kubectl get -A -o custom-columns="kind":.kind,"name":.metadata.name,"namespace":.metadata.namespace pvc,configmap,serviceaccount,secret,ingress,service,deployment,statefulset,hpa,job,cronjob,replicaset --no-headers | while read kind name namespace | |
| do | |
| #echo $kind | |
| #echo $namespace | |
| #echo $name | |
| mkdir -p "${namespace}" | |
| echo "${namespace}:${kind}/${name}" | |
| kubectl get -o=yaml -n "$namespace" "${kind}/${name}" |kubectl neat > "${namespace}/${kind}-${name}.yaml" | |
| done |
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
| import clipboard | |
| import re | |
| raw = clipboard.paste() | |
| p = re.compile('.*\/\/([0-9]+)>(.*) » (.*) - .*$') | |
| output = "" | |
| for l in raw.splitlines(): | |
| m = p.match(l) | |
| if m != None: | |
| output += "{0} {1} --> {2}\n".format(m.group(1),m.group(2),m.group(3)) | |
| if output != "": |
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 | |
| # see related issue: https://github.com/rundeck/rundeck/issues/357 | |
| # import vars | |
| source ~/.rd/rd.conf | |
| # make sure rd & jq commands are in the PATH | |
| which -- rd jq >/dev/null || exit 1 | |
| del_executions() { | |
| local project=$1 | |
| while true; do |
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
| <?php | |
| class TimeoutException extends RuntimeException {} | |
| class Timeout | |
| { | |
| private $active; | |
| public function set($seconds) | |
| { |
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
| #/etc/systemd/system/mqtt-2-influxdb.service | |
| [Unit] | |
| Description=MQTT to Influxdb bridge | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=lrasmussen | |
| WorkingDirectory=/home/lrasmussen/mqtt-2-influxdb | |
| ExecStart=/usr/bin/nodejs --use_strict ./app.js |
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
| # -- coding: utf-8 -- | |
| # | |
| from sopel import module | |
| @module.require_owner | |
| @module.commands("nick") | |
| def changeNick(bot,trigger): | |
| newnick = trigger.group(2) | |
| bot.nickname = newnick | |
| bot.write(("NICK",), newnick) |
NewerOlder