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 json | |
import time | |
FILE_NAME = "Preferences" | |
with open(FILE_NAME, "r") as rfp: | |
data = json.load(rfp) | |
with open(FILE_NAME+"-indented.json", "w") as wfp: | |
wfp.write(json.dumps(data, indent=4, sort_keys=True)) |
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
# Tested on Chrome Version 86.0.4240.75 (Official Build) (64-bit) | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
options = Options() | |
prefs = { | |
"profile.default_content_setting_values.plugins": 1, | |
"profile.managed_plugins_allowed_for_urls": ["https://example.com", "https://www.whatismybrowser.com:443"], | |
"plugins.run_all_flash_in_allow_mode": True, |
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
embed-server --server-config=standalone-ha.xml --std-out=echo | |
echo Changing transaction default timeout | |
/subsystem=transactions/:write-attribute(name=default-timeout,value=3600) | |
echo Done | |
stop-embedded-server |
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 | |
DOMAINS="example.com|example.info" | |
# Global API Key and email | |
EMAIL="userCF@email.com"; | |
KEY="XXX"; | |
# New Record details | |
SUB="subdomain" |
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 | |
WG_CONFIG_DIR="/etc/wireguard" | |
WG_CONFIG_FILE="/etc/wireguard/wg0.conf" | |
function print_ok() { | |
echo -e "\033[0;32m[OK] $1 \033[0m" | |
} | |
function print_error() { |