curl --cookie-jar cookies.txt 'http://192.168.1.1/index/login.cgi' -H 'Cookie: Language=en_us' --data 'Username=admin&Password=CHANGEME' --compressed
This file contains 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
var exec = require('child_process').exec | |
var url = 'https://URL' | |
var command = | |
'curl --silent ' + url + '| ffprobe pipe:0 -print_format json -show_format' | |
exec(command, function callback (error, stdout, stderr) { | |
if (stderr.indexOf('Invalid data') > -1) { | |
console.error('Error!') | |
} |
# 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
curl --cookie-jar cookies.txt 'https://account.withings.com/connectionwou/account_login' --data 'email=<USERNAME>&password=<PASSWORD>' --compressed
curl -b cookies.txt 'https://scalews.withings.com/cgi-bin/v2/measure' --data-binary 'action=getmeashf&meastype=35%2C12&deviceid=<DEVICE_ID>' --compressed
Olá :)
ALGUÉM já fez o planeamento da eletricidade de uma CASA de origem ou com obras qual são as dicas que fizeram para o Prewire de uma casa com CAT6 (alarme com cabos network, tablets na parede, HDMI over Ethernet, cat6 no tecto para app, bastidor na garagem, homeassistant, shelly). Eu tenho alguns requisitos mas gostava de saber a vossa opinião especialmente na parte de HDMI over ehternet.
Eu vou tentar centralizar tudo num documento, mas a ideia era seria se ganhares o "euromilhões"
This file contains 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
SELECT | |
tc.constraint_name, tc.table_name, kcu.column_name, | |
ccu.table_name AS foreign_table_name, | |
ccu.column_name AS foreign_column_name | |
FROM | |
information_schema.table_constraints AS tc | |
JOIN information_schema.key_column_usage AS kcu | |
ON tc.constraint_name = kcu.constraint_name | |
JOIN information_schema.constraint_column_usage AS ccu | |
ON ccu.constraint_name = tc.constraint_name |
This file contains 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
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 |
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 😉)
This file contains 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 | |
file='./output.json' | |
id_file='./output-archive-ids.txt' | |
if [[ -z ${AWS_ACCOUNT_ID} ]] || [[ -z ${AWS_REGION} ]] || [[ -z ${AWS_VAULT_NAME} ]]; then | |
echo "Please set the following environment variables: " | |
echo "AWS_ACCOUNT_ID" | |
echo "AWS_REGION" | |
echo "AWS_VAULT_NAME" |
NewerOlder