Skip to content

Instantly share code, notes, and snippets.

View nderjung's full-sized avatar
🥑

Alexander Jung nderjung

🥑
View GitHub Profile
@nderjung
nderjung / list-grub-entries.sh
Created April 26, 2019 15:28
List grub entries
awk -F\' '$1=="menuentry " || $1=="submenu " {print i++ " : " $2}; /\tmenuentry / {print "\t" i-1">"j++ " : " $2};' /boot/grub/grub.cfg
@nderjung
nderjung / reset-proxmox-cluster.sh
Created March 12, 2019 16:24
Reset proxmox cluster
#/bin/bash -xe
systemctl stop pvestatd.service
systemctl stop pvedaemon.service
systemctl stop pve-cluster.service
systemctl stop corosync
systemctl stop pve-cluster
sqlite3 /var/lib/pve-cluster/config.db "delete from tree where name = 'corosync.conf';"
@nderjung
nderjung / pubs-remove-underscores.sh
Last active March 11, 2019 16:44
Remove underscores from pubs/pubs entries
#!/bin/bash
for old in `pubs list | grep -Po '\[\K[^]]*'`; do
new=`echo $old | sed -r 's/_//g'`
pubs rename $old $new
done
@nderjung
nderjung / fix-muffly-headset.sh
Created December 25, 2017 18:55
Fix a muffled bluetooth headset
# Determine the profile index by
pacmd list-cards
# Set the audio profile to a2dp sink (replace 6 with profile index):
pacmd set-card-profile 6 a2dp_sink
@nderjung
nderjung / keybase.md
Last active September 22, 2017 12:20

Keybase proof

I hereby claim:

  • I am a1exanderjung on github.
  • I am alexanderjung (https://keybase.io/alexanderjung) on keybase.
  • I have a public key ASA2GY_YkGY5vYxEAU-vYktsGchBql5JxhVC8wDlF9LDyAo

To claim this, I am signing this object: