This file contains hidden or 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
| server { | |
| listen 80; | |
| listen [::]:80; | |
| listen 443 quic; | |
| listen 443 ssl; | |
| listen [::]:443 quic; | |
| listen [::]:443 ssl; | |
| http2 on; | |
| http3 off; | |
| {{ssl_certificate_key}} |
This file contains hidden or 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
| #!/bin/bash | |
| # FirewallD setup for RunCloud BGP transit VMs | |
| set -e | |
| PUB_IF=$(ip route show default | awk '/default/ {print $5; exit}') | |
| echo "==> Public interface: $PUB_IF" | |
| # 1. Assign public interface to runcloud zone | |
| firewall-cmd --permanent --zone=runcloud --add-interface=$PUB_IF |
This file contains hidden or 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
| # Your ASN Number | |
| asn: YOUR_ASN | |
| # BIRD router ID | |
| router-id: X.X.X.X | |
| # RIRs to query for IRR filtering | |
| bgpq-args: -S AFRINIC,APNIC,ARIN,LACNIC,RIPE | |
| # Main IRR whois server |
This file contains hidden or 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 | |
| set -euo pipefail | |
| # -------------------------------------------- | |
| # Cloudflare DKIM TXT creator/updater from CSV | |
| # CSV columns (header required): | |
| # domain,record,value | |
| # Example: | |
| # example.com,selector1._domainkey,v=DKIM1; p=MIIBIjANBgkqh... | |
| # -------------------------------------------- |
This file contains hidden or 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
| #!/bin/bash | |
| # Script to create an OpenWrt LXC container in Proxmox | |
| # Downloads from openwrt.org with latest stable or snapshot version, detects bridges/devices, IDs, configures network, sets optional password | |
| # Pre-configures WAN/LAN in UCI, includes summary and confirmation, optional LuCI install for snapshots with apk | |
| # Default resource values | |
| DEFAULT_MEMORY="256" # MB | |
| DEFAULT_CORES="1" # CPU cores | |
| DEFAULT_STORAGE="0.5" # GB |
This file contains hidden or 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
| ## | |
| ## curl -s https://gist.githubusercontent.com/amanjuman/fe6324137c08b356061595e9f76a34b9/raw/b05185579853c8c779408c4bd48df2ea9e33c5a3/linux_install.sh | sudo bash | |
| ## | |
| #!/bin/bash | |
| # Function to detect Linux distribution | |
| detect_distro() { | |
| if [ -f /etc/os-release ]; then | |
| . /etc/os-release |
This file contains hidden or 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
| [Resolve] | |
| DNS=1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com 9.9.9.9#dns.quad9.net | |
| DNSOverTLS=yes | |
| FallbackDNS=149.112.112.112#dns.quad9.net 8.8.8.8#dns.google | |
| LLMNR=no | |
| MulticastDNS=no | |
| DNSSEC=no | |
| Cache=yes | |
| DNSStubListener=yes |
This file contains hidden or 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
| Prefix/L: fd | |
| Global ID: ef2626 | |
| Subnet ID: 100 | |
| Combined/CID: fdfc:ef2626:100::/64 | |
| IPv6 addresses: fdfc:ef2626:100:xxxx:xxxx:xxxx:xxxx |
This file contains hidden or 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
| Download Office Deployment Tool (ODT) | |
| https://officecdn.microsoft.com/pr/wsus/setup.exe | |
| Generate Configuration from Here | |
| https://config.office.com/deploymentsettings | |
| Or create a file named "Configuration.xml" | |
| <Configuration ID="715bbef8-1f6a-4e50-b9dd-bd8f2185885d"> | |
| <Add OfficeClientEdition="64" Channel="Current"> | |
| <Product ID="O365ProPlusRetail"> | |
| <Language ID="en-us" /> |
This file contains hidden or 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
| sudo useradd -rs /bin/false prometheus | |
| sudo mkdir /etc/prometheus /var/lib/prometheus | |
| cd /tmp && wget https://github.com/prometheus/prometheus/releases/download/v2.51.0/prometheus-2.51.0.linux-amd64.tar.gz | |
| tar -xvf prometheus-*.*-amd64.tar.gz && cd prometheus-*.*-amd64 | |
| sudo mv console* /etc/prometheus | |
| sudo mv prometheus.yml /etc/prometheus | |
| sudo mv prometheus promtool /usr/local/bin/ | |
| sudo chown prometheus:prometheus /usr/local/bin/prometheus /etc/prometheus /var/lib/prometheus | |
| sudo nano /etc/systemd/system/prometheus.service |
NewerOlder