Skip to content

Instantly share code, notes, and snippets.

View s-leon's full-sized avatar

Leon Schröder s-leon

  • SUSE
View GitHub Profile
@s-leon
s-leon / up
Last active May 2, 2024 11:56
oS TW update script
#!/bin/bash
sudo -s <<EOF
zypper dup -l -y --no-recommends --allow-downgrade --allow-arch-change --force-resolution
flatpak update -y --noninteractive --force-remove
flatpak remove --unused --delete-data -y
#flatpak repair
journalctl --rotate
journalctl --vacuum-time=2d
zypper clean
rm -rfv /var/tmp/flatpak-cache-*
@s-leon
s-leon / bt-headset-hack.sh
Last active April 23, 2021 19:17
bt-headset-hack.sh
#!/bin/bash
# add pulseaudio-modules-bt from home:MasterPatricko for ldac codec
echo -e "pair 38:18:x:xx:xx:xx\nyes" | bluetoothctl
sleep 2
bluetoothctl -- trust 38:18:x:xx:xx:xx
bluetoothctl -- connect 38:18:x:xx:xx:xx
sleep 2
bluetoothctl -- disconnenct 38:18:x:xx:xx:xx
sleep 2
pulseaudio -k && pulseaudio --start
#/usr/bin/env sh
# Get the Zone ID from: https://www.cloudflare.com/a/overview/<your-domain>
DNS_ZONE=***
# Get the existing identifier for DNS entry:
# https://api.cloudflare.com/#dns-records-for-a-zone-list-dns-records
IDENTIFIER=***
# Get these from: https://www.cloudflare.com/a/account/my-account