Skip to content

Instantly share code, notes, and snippets.

View dcnl1980's full-sized avatar

TheDev dcnl1980

View GitHub Profile
** 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
@dcnl1980
dcnl1980 / next.csv
Created November 23, 2021 10:43
Where to buy NEXT tokens
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
@dcnl1980
dcnl1980 / TOOLS.MD
Last active April 18, 2020 14:06
Install of blockchains

------- MAKE A SYMBOLIC LINK AFTER COMPILE OR INSTALL ----------

ln -s ~/bitcoin/bin/* /usr/local/bin

------- SETUP A DAEMON SERVICE ----------

sudo vi /etc/systemd/system/bitcoind.service

[Unit]
Description=bitcoin
After=network.target
@dcnl1980
dcnl1980 / install-crypto-servers.sh
Last active August 19, 2022 15:13
install-crypto-servers-ubuntu
#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
@dcnl1980
dcnl1980 / letsupdate
Created January 24, 2017 10:03 — forked from philcryer/letsupdate
auto renewal script for Let's Encrypt
#!/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]
@dcnl1980
dcnl1980 / NOTES.md
Created January 2, 2017 21:41 — forked from DenisIzmaylov/NOTES.md
Step By Step Guide to Configure a CoreOS Cluster From Scratch

Step By Step Guide to Configure a CoreOS Cluster From Scratch

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.

Content

@dcnl1980
dcnl1980 / nginx-add-virtualhost.sh
Created December 27, 2016 21:51
Creating NGINX virtualhost
#!/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
@dcnl1980
dcnl1980 / build-nginx-naxsi.sh
Created December 20, 2016 15:51
Build the latest Nginx with NAXSI
#!/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)
@dcnl1980
dcnl1980 / backup-linux.sh
Last active November 29, 2016 12:50
Linux backup script
#/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
@dcnl1980
dcnl1980 / naxsi_core.rules
Created November 29, 2016 08:45
Naxsi Rules Conf
##################################
## 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;