ln -s ~/bitcoin/bin/* /usr/local/bin
sudo vi /etc/systemd/system/bitcoind.service
[Unit]
Description=bitcoin
After=network.target
| ** Add repository and install bitcoind ** | |
| sudo apt-get install build-essential libtool autotools-dev autoconf libssl-dev libboost-all-dev software-properties-common | |
| sudo add-apt-repository ppa:bitcoin/bitcoin | |
| sudo apt-get install libevent-dev | |
| sudo apt-get install libdb4.8-dev libdb4.8++-dev # if you are on ubuntu 18.04, skip this part and do the next on 20.04 | |
| # if you are ubuntu 20.04 there needs to be a patch for libdb4.8 applied | |
| # https://gist.github.com/danieldk/5700533 | |
| # https://askubuntu.com/questions/393289/how-to-install-libdb4-8-dev-or-equivalent-on-13-10 |
| Pair | Blockchain | Link | |
|---|---|---|---|
| NEXT (native coin)/BTC | NEXT.chain | https://p2pb2b.io/trade/NEXT_BTC/ | |
| NEXT (ERC20)/ETH | Ethereum | https://app.uniswap.org/#/swap?outputCurrency=0x377d552914e7a104bc22b4f3b6268ddc69615be7 | |
| NEXT (BEP20)/BNB | Binance Smart Chain | https://pancakeswap.finance/swap?outputCurrency=0xb8f669e7cb0d52990670c9af7084cee0fcbe81fe |
| #Install Bitcoind | |
| sudo add-apt-repository ppa:bitcoin/bitcoin | |
| sudo apt update | |
| sudo apt install bitcoind | |
| #Install Geth | |
| sudo add-apt-repository -y ppa:ethereum/ethereum | |
| sudo apt update | |
| sudo apt install ethereum |
| #!/bin/bash | |
| # | |
| # this is going to be a rewrite of this: | |
| # https://github.com/defsdoor/letsencrypt-autorenew/blob/master/get_certificates | |
| # example file mycerts: | |
| ## EMAIL [email protected] | |
| ## HOSTS www.example.com | |
| ## EMAIL [email protected] |
This guide describes how to bootstrap new Production Core OS Cluster as High Availability Service in a 15 minutes with using etcd2, Fleet, Flannel, Confd, Nginx Balancer and Docker.
| #!/bin/bash | |
| # Modify the following to match your system | |
| NGINX_CONFIG='/etc/nginx/sites-available' | |
| NGINX_SITES_ENABLED='/etc/nginx/sites-enabled' | |
| PHP_INI_DIR='/etc/php5/fpm/pool.d' | |
| WEB_SERVER_GROUP='www-data' | |
| NGINX_INIT='/etc/init.d/nginx' | |
| PHP_FPM_INIT='/etc/init.d/php5-fpm' | |
| # --------------END |
| #!/usr/bin/env bash | |
| apt-get install -y libpcre3 libpcre3-dev libssl-dev unzip make \ | |
| libgoogle-perftools-dev google-perftools jq | |
| mkdir /tmp/ngxbuild | |
| cd /tmp/ngxbuild | |
| latestNginx=$(curl -s http://hg.nginx.org/nginx/tags | | |
| grep "^ *release-" | head -1 | cut -c 9-) | |
| latestNaxsi=$(curl -s https://api.github.com/repos/nbs-system/naxsi/releases | | |
| jq -r .[].tag_name | grep -v rc | head -1) |
| #/bin/sh | |
| # This file is under construction and will be update regulary, so it can be a cron-shell for backing up Linux based systems. | |
| # put this in the cronjob to run the backup every day at 2:15 | |
| # 15 2 * * * /var/backups/backup.sh | |
| current="$(date +'%d_%m_%Y_%H_%M_%S')" | |
| # MYSQL BACKUP | |
| sudo mysqldump -u root -pPASSWORD --all-databases | gzip > /var/backups/dbbackup_$current.sql.gz | |
| # WEBSITES BACKUP | |
| sudo tar czf /var/backups/sitebackup_$current.tar -C / var/www && gzip /var/backups/sitebackup_$current.tar | |
| # DELETE OLD BACKUPS > 7 days |
| ################################## | |
| ## INTERNAL RULES IDS:1-999 ## | |
| ################################## | |
| #@MainRule "msg:weird request, unable to parse" id:1; | |
| #@MainRule "msg:request too big, stored on disk and not parsed" id:2; | |
| #@MainRule "msg:invalid hex encoding, null bytes" id:10; | |
| #@MainRule "msg:unknown content-type" id:11; | |
| #@MainRule "msg:invalid formatted url" id:12; | |
| #@MainRule "msg:invalid POST format" id:13; | |
| #@MainRule "msg:invalid POST boundary" id:14; |