This will allow you to use Open vSwitch with Libvirt to put your VMs on the same network as the host and not use the default NAT based bridge.
dnf install -y virt-install libvirt openvswitch
| ######################################################################### | |
| # ================================================== # | |
| # $ Mikrotik RouterOS update script for CloudFlare $ # | |
| # ================================================== # | |
| # # | |
| # - You need a CloudFlare account & api key (look under settings), # | |
| # a zone and A record in it # | |
| # - All variables in first section are obvious, except CFid, # | |
| # To obtain CFid use following command in any unix shell: # | |
| # curl https://www.cloudflare.com/api_json.html -d 'a=rec_load_all' -d 'tkn=YOUR_API_KEY' -d '[email protected]' -d 'z=domain.com'|python -mjson.tool |
| from pprint import pformat | |
| from typing import Any | |
| from pygments import highlight | |
| from pygments.formatters import Terminal256Formatter | |
| from pygments.lexers import PythonLexer | |
| def pprint_color(obj: Any) -> None: | |
| """Pretty-print in color.""" |
| function reverseIp6 { | |
| echo "$1" | awk -F: 'BEGIN {OFS=""; }{addCount = 9 - NF; for(i=1; i<=NF;i++){if(length($i) == 0){ for(j=1;j<=addCount;j++){$i = ($i "0000");} } else { $i = substr(("0000" $i), length($i)+5-4);}}; print}' | rev | sed -e "s/./&./g" | |
| } | |
| $(reverseIp6 "2001:db8:85a3::8a2e:370:7334")"ip6.arpa." | |
| #Result: 4.3.3.7.0.7.3.0.e.2.a.8.0.0.0.0.0.0.0.0.3.a.5.8.8.b.d.0.1.0.0.2.ip6.arpa. |
| continue | |
| dir=/var/www/downloads | |
| file-allocation=falloc | |
| max-connection-per-server=4 | |
| max-concurrent-downloads=2 | |
| max-overall-download-limit=0 | |
| min-split-size=25M | |
| rpc-allow-origin-all=true | |
| rpc-secret=YouShouldChangeThis | |
| input-file=/var/tmp/aria2c.session |
| #!/usr/bin/perl | |
| # | |
| # Brad's el-ghetto do-our-storage-stacks-lie?-script | |
| # | |
| sub usage { | |
| die <<'END'; | |
| Usage: diskchecker.pl -s <server[:port]> verify <file> | |
| diskchecker.pl -s <server[:port]> create <file> <size_in_MB> | |
| diskchecker.pl -l [port] |