Skip to content

Instantly share code, notes, and snippets.

{
"nodes": [
{
"name": "Node1",
"url": "explore.osl.turbomine.co",
"port": 11246,
"ssl": false,
"cache": false
},
{
@nnzo
nnzo / NodeJS8x.md
Last active August 27, 2019 10:20
How to install NodeJS 8.x on an Ubuntu server

Donate! Please, if this helped you, consider donating :)

ETH: 0x709453D46915C562d88CEC34fA948ed7519c190f

BTC: 1LemonR7fZvco7Hg36ZNjy2MKKjhRgUwji

DASH: XffXBUTCyvWnLRtwvp1i8qFfzGr12XAZmd

LTC: LhGHVFynWALCSHAg42JrmWaDXknK1PWYZN

@nnzo
nnzo / 0x-Documentation.md
Last active August 27, 2019 10:57
0x more in-depth documentation.

Donate! Please, if this helped you, consider donating :)

ETH: 0x709453D46915C562d88CEC34fA948ed7519c190f

BTC: 1LemonR7fZvco7Hg36ZNjy2MKKjhRgUwji

DASH: XffXBUTCyvWnLRtwvp1i8qFfzGr12XAZmd

LTC: LhGHVFynWALCSHAg42JrmWaDXknK1PWYZN

version: '3'
services:
traefik:
image: traefik:1.7-alpine
command:
# Redirect all HTTP requests to HTTPS
- '--entrypoints=Name:http Address::80 Redirect.EntryPoint:https'
- '--entrypoints=Name:https Address::443 TLS'
- '--defaultentrypoints=http,https'
# Tell Traefik to look for docker containers
@nnzo
nnzo / microkube1.md
Last active February 26, 2020 10:12

Getting started

Install ruby with rvm

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable

Bundle install depedencies

@nnzo
nnzo / Get-$100-free-credit-DigitalOcean-DO-2020.md
Created March 30, 2020 10:30
$100 free credit Digital Ocean DO 2020
@nnzo
nnzo / 2GBswapfilelinux.sh
Created March 31, 2020 09:14
Create a swapfile on Linux
echo "Creating your 2GB swapfile..."
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
echo "Swapping on"
sudo swapon /swapfile
echo "Making swapfile permanent"
@nnzo
nnzo / 8gbswapfile.sh
Created April 16, 2020 11:07
8GBSwapfile
echo "Creating your 8GB swapfile..."
sudo fallocate -l 8G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
echo "Swapping on"
sudo swapon /swapfile
echo "Making swapfile permanent"
@nnzo
nnzo / fixgembundler.md
Created April 18, 2020 05:47
gem or bundler arn't working after installing rvm? (bundler command not found, gem command not found, gem, rvm)

Have you installed ruby through RVM and gem or bundler aren't working?

Most likely you have forgotten to run source ~/.rvm/scripts/rvm.

If that doesn't work, try source /etc/profile.d/rvm.sh and restart the terminal.

Hope I helped :)

@nnzo
nnzo / ngnixreverseproxyssl
Last active April 30, 2020 13:07
Ngnix Reverse Proxy using let's encrypto SSL
# This file is located at /etc/nginx/sites-enabled/default
# Replace the entire contents of the file with this
server {
listen 9196 default_server;
server_name pool.flame.exchange;
rewrite ^ https://$host$request_uri? permanent;
}
server {