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 | |
exec zsh | |
nvm install 14.15.0 | |
nvm alias default 14.15.0 | |
exec zsh |
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 https://bootstrap.pypa.io/get-pip.py -o get-pip.py | |
python get-pip.py | |
pip install supervisor | |
echo_supervisord_conf > supervisord.conf | |
cat <<EOF | tee --append supervisord.conf | |
[program:mining-server] | |
command=/usr/bin/yarn --cwd /root/Mining-Local-Server start |
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
sudo apt-get install -y build-essential cmake libssl-dev pkg-config | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
echo "source $HOME/.cargo/env" >> ~/.zshrc | |
exec zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.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
echo "Enable swap up to 4GB ..........." | |
sudo fallocate -l 4G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
echo "Enable /swapfile at startup .........." | |
echo "/swapfile swap swap defaults 0 0" | sudo tee -a /etc/fstab |
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
Verifying my Blockstack ID is secured with the address 1DT463TCSDhke87gyUPz4h2MgU4BBZbHAs https://explorer.blockstack.org/address/1DT463TCSDhke87gyUPz4h2MgU4BBZbHAs |
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
Verifying my Blockstack ID is secured with the address 13Ajmd6LbP2xb4HktsEKKzFTnMPti65BAX https://explorer.blockstack.org/address/13Ajmd6LbP2xb4HktsEKKzFTnMPti65BAX |
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 | |
docker rm $(docker ps -a -f status=exited -q) | |
docker rmi $(docker images --quiet --filter "dangling=true") | |
#docker system prune -a | |
docker system prune -a -f |
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 | |
echo "Enable swap up to 4GB ..........." | |
sudo fallocate -l 4G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
echo "Enable /swapfile at startup .........." |
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
// install intercity | |
curl https://gist.githubusercontent.com/TranDinhKhang/54447f859b767157165399213d6a2cbb/raw/2bd57bf9776ebcf16a27fe75c9028691d4fcea3d/install%2520intercity | bash | |
source /root/.bashrc && intercity-server install | |
// clean up docker image | |
rm -rf /tmp/* | |
rm -rf /var/tmp/* | |
docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs docker rm | |
docker images | grep "<none>" | cut -d ' ' -f 1 | xargs docker rmi -f |
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
#!/usr/bin/env bash | |
version=0.2.0 | |
dir_name=intercity-server-${version}-linux-x86_64 | |
file_name=${dir_name}.tar.gz | |
download_url=https://intercity.io/downloads/linux_x86_64/${file_name} | |
bin_dir="/var/intercity-cli" | |
source_line="export PATH=\$PATH:${bin_dir}" |
NewerOlder