# getenforce
DisabledAlso we need docker, docker-compose, certbot (if you need LetEncrypt)
mkdir -p /opt/graphite/conf /opt/graphite/data /opt/graphite/storage /opt/statsd /opt/grafana/log
/etc/docker/compose/graphite/docker-compose.yml
| mkdir /root/.lnd | |
| apt-get update | |
| apt-get install docker docker-compose git | |
| cd /opt; git clone -b elastoo-lnd --single-branch https://github.com/z1nkum/lnd.git | |
| cd /opt/lnd/docker | |
| curl ifconfig.io # get EXT ip for next step | |
| vim .env | |
| NETWORK=testnet | |
| RPCUSER=olololo |
| #!/bin/sh | |
| # 1) crontab -l: 15 1 * * * /root/make_my_disks_snapshots.sh | |
| # 2) Add service account snapshots-rw@[project-id].iam.gserviceaccount.com with Compute Storage Admin role attached | |
| # 3) Set this account to instance | |
| S_DATE=`date +"%Y%m%d-%H%M%S"` | |
| S_NAME=`hostname` | |
| ZONE=`curl -s -m 10 "http://metadata.google.internal/computeMetadata/v1/instance/zone" -H "Metadata-Flavor: Google" | grep -Po '[^/]+$'` |
# getenforce
DisabledAlso we need docker, docker-compose, certbot (if you need LetEncrypt)
mkdir -p /opt/graphite/conf /opt/graphite/data /opt/graphite/storage /opt/statsd /opt/grafana/log
/etc/docker/compose/graphite/docker-compose.yml
| #!/usr/bin/env python | |
| import argparse | |
| import logging | |
| from sys import stdout | |
| logging.basicConfig(stream=stdout, | |
| level=logging.ERROR, | |
| format='%(asctime)s\t%(process)d\t%(levelname)s\t%(message)s') |
| { | |
| "name": "", | |
| "version": "0.0.1", | |
| "description": "", | |
| "moduleType": [ | |
| "amd" | |
| ], | |
| "authors": [ | |
| "Dmitry S. Vlasov" | |
| ], |
| /* | |
| Redis Ratelimit trait | |
| */ | |
| trait RateLimitRedis | |
| { | |
| protected $redis; |
| abstract class ObjectWithUniqueID { | |
| public $id; | |
| public static $registry = array(); | |
| public function getObjectById( $id ) { | |
| if ( array_key_exists( $id, static::$registry ) ) { | |
| return static::$registry[$id]; | |
| } else return null; | |
| } |
| opkg update | |
| opkg install privproxy | |
| uci add firewall redirect | |
| uci set firewall.@redirect[-1]._name=dansguardian | |
| uci set firewall.@redirect[-1].src=lan | |
| uci set firewall.@redirect[-1].proto=tcp | |
| uci set firewall.@redirect[-1].dest_port=8080 | |
| uci set firewall.@redirect[-1].src_dport=80 | |
| uci set firewall.@redirect[-1].src_dip='! 192.168.111.1' | |
| uci set firewall.@redirect[-1].dest_ip=192.168.111.1 |