Skip to content

Instantly share code, notes, and snippets.

@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 / 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
** 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 / nginx-naxsi.sh
Created November 28, 2016 22:00
Nginx Naxsi (firewall) on Ubuntu 16.04
#!/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 / zabbix-server.sh
Created November 28, 2016 21:57
Zabbix Server Installation
#!/bin/sh
apt update && apt install wget htop curl nano ssh -y
wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
dpkg -i zabbix-release_3.2-1+xenial_all.deb && apt-get update
export DEBIAN_FRONTEND=noninteractive
apt install zabbix-server-mysql zabbix-frontend-php -y
@dcnl1980
dcnl1980 / nginx-cookieless.conf
Last active September 17, 2021 02:48
Nginx Cookieless Domain
#
# Name: nginx-cookieless.conf
# Auth: Chris van Steenbergen <cvsteenbergen@gmail.com>
# Date: 12 August 2016
# Desc: Nginx Cookieless Domain configuration for 100% performance grade with
#
# See for yourself at: https://tools.pingdom.com/#!/beJG0v/http://www.reclick.nl
#
server {
@dcnl1980
dcnl1980 / hipchat-server.sh
Created November 28, 2016 21:59
Install the HipChat Server
sudo su
echo "deb http://downloads.hipchat.com/linux/apt stable main" > /etc/apt/sources.list.d/atlassian-hipchat.list
wget -O - https://www.hipchat.com/keys/hipchat-linux.key | apt-key add -
apt-get update
apt-get install hipchat
@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 / 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 / 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 admin@example.com
## HOSTS www.example.com
## EMAIL admin@mail.example.com