1. download image from official page - https://www.raspberrypi.org/downloads/raspbian/
diskutil list
| #This script was written by REXOVAS to automate 90% of a ZEN Secure Node setup process for an IPv4 node. | |
| #Parts of this script were adapted from a script by github user rnkhouse | |
| #rnkhouse script found here: https://gist.github.com/rnkhouse/f7f04f0cb10b596e2c6623275968a220 | |
| #Prior to running this script, please ensure that you are not signed in as root, and have completed all steps up until the copying | |
| #of authentication key pairs in this guide: https://blockoperations.com/build-zencash-secure-node-part-1-prepare-vps/ | |
| #This script performs all actions described in the 3 guides found on blockoperations.com. It compiles zend from source. | |
| #This script installs both Monit and PM2 and automatically configures monit to monitor zend. | |
| #WARNING: This script is intended for use by advanced Linux users. Please read through this script thoroughly to ensure that |
| ## Go to HELP → Edit Custom VM Options | |
| ## and adjust or add new values. I am using following config values | |
| -Xms128m | |
| -Xmx2048m | |
| -XX:ReservedCodeCacheSize=512m | |
| -XX:+UseCompressedOops | |
| -XX:MaxMetaspaceSize=1024m |
| #/bin/bash | |
| #Ask some info | |
| echo -n "Enter ELK Server IP or FQDN: " | |
| read eip | |
| echo -n "Enter Admin Web Password: " | |
| read adpwd | |
| #Update System | |
| sudo apt-get update | |
| sudo apt-get upgrade -y |
| #!/bin/bash | |
| curl https://getcaddy.com | bash -s personal hook.service,http.datadog,http.forwardproxy,http.login,http.minify,http.nobots,http.ratelimit | |
| # config | |
| mkdir /etc/caddy | |
| chown -R root:www-data /etc/caddy | |
| cat << EOF > /etc/caddy/Caddyfile | |
| alpharack1.crypto-pool.net/monit { | |
| gzip |
| #!/bin/bash | |
| CROPUSER=cropcoin | |
| PUBLIC_IP=$(curl -s ipecho.net/plain) | |
| sudo -u $CROPUSER -H sh -c "echo '{ \"timestamp\": \"`date`\", \"details\": ['; cropcoind masternode status; echo ','; cropcoind getinfo; echo ','; cropcoind masternode list full $PUBLIC_IP; echo ']}'" |
| #!/bin/bash | |
| apt -y install software-properties-common | |
| apt-add-repository -y ppa:bitcoin/bitcoin | |
| apt-get update | |
| apt install -y make build-essential libtool software-properties-common autoconf libssl-dev libboost-dev libboost-chrono-dev libboost-filesystem-dev \ | |
| libboost-program-options-dev libboost-system-dev libboost-test-dev libboost-thread-dev sudo automake git pwgen curl libdb4.8-dev \ | |
| bsdmainutils libdb4.8++-dev libminiupnpc-dev libgmp3-dev pwgen | |
| rm -rf CropDev | |
| git clone https://github.com/Cropdev/CropDev.git | |
| cd CropDev/src |
diskutil list
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
docker volume rm $(docker volume ls -qf dangling=true)
docker volume ls -qf dangling=true | xargs -r docker volume rm
| select add_months(date '2018-01-01',rownum-1) mth from dual connect by level <= 12; |
| #!/bin/bash | |
| sudo -s | |
| sudo apt-get update | |
| wget -qO- https://get.docker.com/ | sh |