pg_dump -U username -d db_name -h host_name > out_filename.sql
# If using docker
docker container exec -it container_name pg_dump -U username -d db_name -h host_name > out_filename.sql
This file contains hidden or 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 | |
function cleanup() { | |
echo "Cleaning up..." | |
sudo rm -f /etc/sudoers.d/ubuntu_nopasswd | |
} | |
function install_brew() { | |
$(which sudo) apt-get update | |
$(which sudo) apt-get install -y sudo curl git |
curl -X PUT http://0.0.0.0:8200/v1/sys/init --data '{"secret_shares":1, "secret_threshold":1}'
curl -X PUT http://0.0.0.0:8200/v1/sys/unseal --data '{"key":"a5e665962f544dd16471c120c5500a7906cfbaeb3f18ae0fc6c5c71d444f0a90"}'
This file contains hidden or 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
I ran into the battle of running all of my VMs and the host node under a single public IP address. Luckily, the host is just pure Debian, and ships with iptables. | |
What needs to be done is essentially to run all the VMs on a private internal network. Outbound internet access is done via NAT. Inbound access is via port forwarding. | |
Network configuration | |
Here’s how it’s done: | |
Create a virtual interface that serves as the gateway for your VMs: |
This file contains hidden or 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 Proxmox VE on Debian Stretch | |
#https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Stretch | |
# Disable Commercial Repo | |
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list | |
apt-get update | |
# Add PVE Community Repo | |
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list |
Below you'll find Tradingview import files for Bittrex and Binance BTC-base markets
Ordered by CMC's Market Cap
I use Tradingview and I like to quickly click through all coins on a particular exchange. The files below can be imported into a Tradingview watchlist.
★ ★ ★ If you use these, leave a comment or a star above ★ ★ ★
State: Draft
Based on the Peatio Stable branch
To the coin daemon's {coin}.conf
file, include the -walletnotify
command:
# Notify when receiving coins
This file contains hidden or 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 -x | |
COMPOSE_VERSION="1.23.2" | |
COMPOSE_URL="https://github.com/docker/compose/releases/download/$COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m)" | |
# Opendax bootstrap script | |
install_core() { | |
sudo bash <<EOS | |
apt-get update | |
apt-get remove -y --purge unscd |