sudo bash << EOF
ufw --force reset
ufw default deny incoming
ufw default deny outgoing
ufw limit 22 # ssh
ufw allow out 53 # dns
ufw allow out 80 # http
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
``` | |
mdadm --detail /dev/mdX | |
``` | |
``` | |
mdadm --stop /dev/mdX | |
``` | |
``` | |
mdadm --assemble --force /dev/mdX /dev/sda /dev/sdb /dev/sdc /dev/sdd |
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 | |
sudo apt install git | |
cd | |
git clone https://github.com/ElementsProject/elements.git | |
sudo apt-get update | |
sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev | |
sudo apt-get install libboost-all-dev | |
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler imagemagick librsvg2-bin | |
sudo apt-get install libqrencode-dev autoconf openssl libssl-dev libevent-dev |
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 | |
echo Setup bitcoin full node. | |
echo Specify bitcoin version, e.g. 22.0: | |
read version | |
echo Install bitcoin-core version $version | |
#Download bitcoin-core: | |
wget https://bitcoincore.org/bin/bitcoin-core-$version/bitcoin-$version-x86_64-linux-gnu.tar.gz | |
#Download the list of cryptographic checksums: | |
wget https://bitcoincore.org/bin/bitcoin-core-$version/SHA256SUMS | |
#Download the signatures attesting to validity of the checksums: |
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
# inspired by https://selivan.github.io/2020/02/25/removing-bloatware-from-xiaomi-miui-android.html | |
pm uninstall --user 0 com.xiaomi.mipicks #GetApps - app store like Google Play from Xiaomi. The most annoying one, periodically shows advertisement. | |
pm uninstall --user 0 com.miui.msa.global #MIUI Ad Services - also responsible for showing ads. | |
pm uninstall --user 0 com.miui.cloudservice #Cloud | |
pm uninstall --user 0 com.miui.cloudbackup #Cloud Backup | |
pm uninstall --user 0 com.xiaomi.glgm #Games | |
pm uninstall --user 0 com.xiaomi.payment #Mi Credit | |
pm uninstall --user 0 cn.wps.xiaomi.abroad.lite #Mi DocViewer(Powered by WPS Office) | |
pm uninstall --user 0 com.xiaomi.midrop #Mi ShareMe | |
pm uninstall --user 0 com.miui.yellowpage #Mi YellowPages |
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
/* | |
* __________________________________________________________________________________________________________________ | |
* | | | | |
* | ________ ___ ________ ________ ___ __ ___ ___ ___ ___ ________ ________ ___ __ | | |
* | |\ __ \|\ \ |\ __ \|\ ____\|\ \|\ \ |\ \|\ \|\ \ |\ \|\ __ \|\ ____\|\ \|\ \ | | |
* | \ \ \|\ /\ \ \ \ \ \|\ \ \ \___|\ \ \/ /|\ \ \\\ \ \ \ \ \ \ \ \|\ \ \ \___|\ \ \/ /|_ | | |
* | \ \ __ \ \ \ \ \ __ \ \ \ \ \ ___ \ \ __ \ \ \ __ \ \ \ \ __ \ \ \ \ \ ___ \ | | |
* | \ \ \|\ \ \ \____\ \ \ \ \ \ \____\ \ \\ \ \ \ \ \ \ \ \|\ \\_\ \ \ \ \ \ \ \____\ \ \\ \ \ | | |
* | \ \_______\ \_______\ \__\ \__\ \_______\ \__\\ \__\ \__\ \__\ \__\ \________\ \__\ \__\ \_______\ \__\\ \__\ | | |
* | \|_______|\|_______|\|__|\|__|\|_______|\|__| \|__|\|__|\|__|\|__| |
NewerOlder