This file contains 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
TARGET=/dev/sda1 | |
TMP=/tmp/$(uuidgen) | |
mkdir $TMP | |
mkdir $TMP/TeslaCam | |
chown 1984:1999 $TMP $TMP/TeslaCam | |
mkfs.ext4 -b 4096 -O ^flex_bg -E lazy_itable_init=0,lazy_journal_init=0,root_owner=1984:1999 -L TESLADRIVE -d $TMP $TARGET |
This file contains 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
( | |
curl -s https://pkg.hamonikr.org/hamonikr-pkg.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/hamonikr.gpg | |
echo "deb [arch=amd64] https://repo.hamonikr.org jammy main" | sudo tee /etc/apt/sources.list.d/hamonikr-pkg.list | |
echo "#deb-src [arch=amd64] https://repo.hamonikr.org jammy main" | sudo tee -a /etc/apt/sources.list.d/hamonikr-pkg.list | |
sudo apt update | |
sudo apt install -y nimf nimf-libhangul | |
im-config -n nimf | |
sudo mkdir -p /opt/zoom/platforminputcontexts | |
sudo ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libqt5im-nimf.so /opt/zoom/platforminputcontexts | |
ls -al /opt/zoom/platforminputcontexts |
This file contains 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 | |
# Store at /usr/local/sbin/reboot with 755 permission | |
echo "" | |
echo "Using kexec for faster reboot." | |
echo "" | |
echo "If you want to perform a full reboot," | |
echo "use 'systemctl reboot' instead." | |
echo "" |
This file contains 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 | |
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
exec > /dev/kmsg 2>&1 | |
TMP=/tmp/ipsum.txt | |
until wget --spider https://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt > /dev/null 2>&1; do | |
echo "Waiting for GitHub to be accessible" |
This file contains 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
# FIVRVoltage00 | |
wrmsr -a 0x150 0x80000011f1e00000 | |
# FIVRVoltage10 | |
wrmsr -a 0x150 0x80000111f6600000 | |
# FIVRVoltage20 | |
wrmsr -a 0x150 0x80000211f1e00000 | |
# FIVRVoltage30 | |
wrmsr -a 0x150 0x80000311f6600000 | |
# FIVRVoltage40 | |
wrmsr -a 0x150 0x80000411fec00000 |
This file contains 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
dconf dump / | grep '^\[' | tr -d '\[' | tr -d '\]' | | |
while read a; do | |
( | |
dconf dump /$a/ | | |
sed -e 's@\[/\]@DUMMYPLACEHOLDER@g' | | |
sed -e '/DUMMYPLACEHOLDER/,$!d' | | |
tail -n+2 | | |
sed -e 's@^\[@DUMMYPLACEHOLDER@g' | | |
sed '/DUMMYPLACEHOLDER/,$d'; echo | |
) | |