# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button
# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1T 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 1T 0 part
If you don't know what Wireguard is, well, you should. It's fast, easy to setup and highly configurable. We will configure Wireguard for multiple users with various restrictions using iptables.
This should fit most setups (not mine though 😉)
1. Configurar IPv4 estático e IPv6 estático no pihole (YMMV) | |
192.168.1.2 e 2001:818:xxxx::192:168:1:2 no meu caso | |
2. Configurar DNS uplink do pihole igual ao IP do Router (192.168.1.1) | |
3. Configurar Router | |
Huawei HS8247W (Smart Router 2) | |
1. Configurações Avançadas -> LAN -> Configuração de DHCP | |
Servidor DNS Primário: 192.168.1.2 |
365GPS office address
Contact: Erik Liu
Address: 505 Block B, Donglian Building, Chuangye Second Road, Baoan District, Shenzhen, Guangdong, China(广东省深圳市宝安区创业二路东联大厦B座505,洪浪北地铁站旁)
Mobile/ wechat/ whatsapp: +86-13480999031
Alibaba: 365gps.en.alibaba.com
Skype: topin.sales
E-mail: topin.sales3@qq.com
============================================================= Hi
- Using a ready-to-use Ubuntu image
#!/bin/bash | |
# This script install kafka 2.2.0 | |
# on a centos 7 machine | |
## RUN AS SUDO | |
if [[ $EUID -gt 0 ]] | |
then | |
echo "Please run as root/sudo" | |
exit 1 | |
fi |
Accessing a subnet that is behind a WireGuard client using a site-to-site setup
We want to access a local subnet remotely, but it is behind a NAT firewall and we can't setup port forwarding. Outgoing connections work, but all incoming connections get DROPPED by the ISP's routing policy.
#!/usr/bin/env python3 | |
import os | |
# 1. Save this file in /home/ethos/monitor.py on your ethOS | |
# 2. Change permission to make it executable | |
# chmod 0755 /home/ethos/monitor.py | |
# 3. Run crontab | |
# # crontab -e | |
# 4. Schedule a cron task to execute every 5 minutes | |
""" |
function BINANCE_PRICE(coinsymbol, pair) { | |
var url = "https://api.binance.com/api/v3/ticker/price?symbol="+coinsymbol.toUpperCase()+pair.toUpperCase() | |
var response = UrlFetchApp.fetch(url, {'muteHttpExceptions': true}); | |
var json = response.getContentText(); | |
var data = JSON.parse(json); | |
return data.price | |
} | |
/* |
import subprocess | |
import os | |
import re | |
import sys | |
import argparse | |
import httplib, urllib | |
import time | |
""" | |
# place this file at /home/ethos/check_hash_reboot.py |