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
import dearpygui.dearpygui as dpg | |
# thing user last clicked | |
global currentPick | |
currentPick = None | |
# thing mouse last hovered | |
global currentSelection | |
currentSelection = None |
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
#!/bin/sh | |
cd /tmp | |
wget https://www.cloudflare.com/ips-v4 -O ips-v4-$$.tmp | |
wget https://www.cloudflare.com/ips-v6 -O ips-v6-$$.tmp | |
for cfip in `cat ips-v4-$$.tmp`; do echo "sudo ufw allow from $cfip to any port 443 proto tcp comment 'Cloudflare ipv4'"; done | |
for cfip in `cat ips-v6-$$.tmp`; do echo "sudo ufw allow from $cfip to any port 443 proto tcp comment 'Cloudflare ipv6'"; done |