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: Prepare SSH connection | |
hosts: cloudinit | |
gather_facts: false | |
tasks: | |
- name: Clean old SSH host keys | |
delegate_to: localhost | |
ansible.builtin.shell: | | |
ssh-keygen -R {{ inventory_hostname }} 2>/dev/null || true | |
run_once: 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 | |
TEMPLATE_ID=9000 | |
STORAGE="local-lvm" | |
BRIDGE="vmbr0" | |
# Download image | |
cd /var/lib/vz/template/iso/ | |
wget -q https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2 |
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
substitutions: | |
device_name: "wall-tablet" | |
device_friendly_name: "Wall Tablet" | |
device_description: "Guition ESP32-S3-4848S040 " | |
time_timezone: "Europe/Amsterdam" | |
# Icons | |
lightbulb: "\U000F0335" | |
ceiling_light: "\U000F0769" | |
lamp: "\U000F06B5" |
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
# Creates Home Assistant Power and Energy sensors for APSystems ECU-C | |
# Copy this file to /homeassistant/packages/ecu.yaml | |
# Add the following lines to the /homeassistant/configuration.yaml: | |
# homeassistant: | |
# packages: | |
# system: !include packages/ecu.yaml | |
# Update the IP (192.168.0.6) to the address your ECU runs at | |
# Update the ECUID (215000015509) to your ECUID. You can find this on the main webpage of the ECU |
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
{ | |
"ignition": { | |
"version": "3.0.0" | |
}, | |
"passwd": { | |
"users": [ | |
{ | |
"groups": [ | |
"sudo", | |
"docker" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> | |
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:</string> | |
</dict> | |
<key>Label</key> |
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 | |
#Remaps '§` to <esc> | |
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000029}]}' |
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
>>> dadong-pulseaudio v10.0 Extracting | |
gzip -d -c /opt/dlcache/dadong-pulseaudio-v10.0.tar.gz | tar --strip-components=1 -C /opt/output/build/dadong-pulseaudio-v10.0 -xf - | |
>>> dadong-pulseaudio v10.0 Patching | |
>>> dadong-pulseaudio v10.0 Updating config.sub and config.guess | |
for file in config.guess config.sub; do for i in $(find /opt/output/build/dadong-pulseaudio-v10.0 -name $file); do cp support/gnuconfig/$file $i; done; done | |
>>> dadong-pulseaudio v10.0 Configuring | |
>>> dadong-pulseaudio v10.0 Autoreconfiguring | |
./git-version-gen: Failed to determine git revision | |
./git-version-gen: Failed to determine git revision | |
./git-version-gen: Failed to determine git revision |
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
diff -rq pulseaudio-10.0/ pulseaudio-10.0-git/ | |
Only in pulseaudio-10.0-git/: .mailmap | |
Only in pulseaudio-10.0/: .tarball-version | |
Only in pulseaudio-10.0-git/: .travis.yml | |
Only in pulseaudio-10.0/: .version | |
Only in pulseaudio-10.0/: ABOUT-NLS | |
Only in pulseaudio-10.0/: Makefile.in | |
Only in pulseaudio-10.0/: aclocal.m4 | |
Only in pulseaudio-10.0-git/: autogen.sh | |
Only in pulseaudio-10.0/: build-aux |
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
#!/usr/bin/python | |
import re | |
import datetime | |
from pyadb import ADB | |
adb = ADB('/Users/willem/Library/Android/sdk/platform-tools/adb') | |
adb.shell_command('dumpsys alarm') | |
batchMatch = re.search(r'Pending alarm batches: [0-9]+[\n\r]+(.*}})[\n\r]+', adb.get_output(), re.M|re.S) |
NewerOlder