Genera copia de imagenes o pdfs con una marca de agua. Para los pdfs debe generar un archivo antes con la marca.
Inspirado en el tweet https://twitter.com/Belinuxo/status/1324729858593824768?s=19
- ImageMagick
- pdftk
| const axios = require("axios"); | |
| let lastIndexMovement = 0; | |
| const TELEGRAM_BOTID = ""; | |
| const TELEGRAM_CHATID = ""; | |
| class Telegram { | |
| sendTelegramMessage(message) { | |
| const botId = TELEGRAM_BOTID; |
Genera copia de imagenes o pdfs con una marca de agua. Para los pdfs debe generar un archivo antes con la marca.
Inspirado en el tweet https://twitter.com/Belinuxo/status/1324729858593824768?s=19
| # Parallel process with pcntl_fork() | |
| $data = array( | |
| '142.12.34.21', | |
| '75.34.21.34', | |
| '98.34.23.11', | |
| ''97.23.12.33 | |
| ); | |
| foreach($data as $each){ | |
| $pid = pcntl_fork(); |
| router id [our IPv4]; | |
| protocol bgp vultr | |
| { | |
| local as [our ASN]; | |
| source address [our IPv4 from vultr]; | |
| import all; | |
| export filter { | |
| if net ~ [[the IPv4 block we want to announce]] then accept; | |
| reject; |
| 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: |
| #battery | |
| sudo pmset -b standbydelaylow 300 | |
| sudo pmset -b standby 1 | |
| sudo pmset -b halfdim 1 | |
| sudo pmset -b sms 0 | |
| sudo pmset -b disksleep 10 | |
| sudo pmset -b standbydelayhigh 600 | |
| sudo pmset -b sleep 10 | |
| sudo pmset -b autopoweroffdelay 40000 | |
| sudo pmset -b hibernatemode 25 |
| #!/usr/bin/env python3 | |
| import sys | |
| import json | |
| import subprocess | |
| # '1.1.1.1 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 1.35/1.35/1.35' | |
| def parse(s): | |
| data = {} |
| server: | |
| ########################################################################### | |
| # BASIC SETTINGS | |
| ########################################################################### | |
| # Time to live maximum for RRsets and messages in the cache. If the maximum | |
| # kicks in, responses to clients still get decrementing TTLs based on the | |
| # original (larger) values. When the internal TTL expires, the cache item | |
| # has expired. Can be set lower to force the resolver to query for data | |
| # often, and not trust (very large) TTL values. | |
| cache-max-ttl: 86400 |
Google Cloud Locations (e.g. 8.8.8.8)
BGP Providers: https://bgp.services