View autodebi.sh
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 | |
curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh && chmod a+rx debi.sh | |
export SSHPORT=12345 | |
export PASSWORD=12345678 | |
sudo ./debi.sh --cdn --network-console --ethx --bbr --user mx --password $PASSWORD --version 11 \ | |
--authorized-keys-url https://github.com/KevinMX.keys --timezone Asia/Shanghai --filesystem xfs \ | |
--install 'htop tmux git vim curl wget aria2 socat' --https --hostname daydream --firmware --grub-timeout 5 --ssh-port $SSHPORT | |
#Docker install (after reboot) | |
sudo apt update && sudo apt -y install lsb-release gnupg curl ca-certificates |
View unas-certgen
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
#Make sure you have root access. | |
#Not a script yet, so please, check the notes and execute these lines manually. | |
sudo apt update && sudo apt -y upgrade && sudo apt -y install socat | |
curl https://get.acme.sh | sh -s email=$email | |
#Get these tokens from Cloudflare | |
export CF_Zone_ID="ZONEID" | |
export CF_Account_ID="ACCOUNTID" | |
export CF_Token="TOKEN" |
View hentaiathome@.service
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
[Unit] | |
Description=Hentai@Home Autostart | |
After=network-online.target | |
[Service] | |
Type=simple | |
WorkingDirectory=/home/%I/h2h/ | |
ExecStart=java -jar -Xms64m -Xmx768m /home/%I/h2h/HentaiAtHome.jar | |
#Restart=always | |
User=%I |
View voldown.sh
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 | |
dbus-send --print-reply --system --dest=org.bluez $(dbus-send --print-reply --system --dest=org.bluez / org.freedesktop.DBus.ObjectManager.GetManagedObjects | grep -E '/org/bluez/hci./dev_.._.._.._.._.._..' -om1) org.bluez.MediaControl1.VolumeUp |
View bctrial.sh
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/sh | |
#For testing purposes only. Please purchase genuine BC license and support the developers. | |
#Run this script with root/sudo. | |
mv /usr/bin/bcompare /usr/bin/bcompare_bak | |
cat << "EOF" > /usr/bin/bcompare | |
#!/bin/sh | |
rm "${HOME}/.config/bcompare/registry.dat" | |
/usr/bin/bcompare_bak $@ | |
EOF | |
chmod 0755 /usr/bin/bcompare |