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
require('dotenv/config'); | |
const axios = require('axios'); | |
let data = JSON.stringify({ | |
"status": "dnd" | |
// ('invisible', 'online', 'idle', 'dnd')." | |
}); | |
let config = { | |
method: 'patch', |
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
SecRule REMOTE_ADDR `@ipMatch 127.0.0.1` `id:3;phase:1;t:none;log;pass;ctl:ruleRemoveById=55666` | |
Range would be | |
SecRule REMOTE_ADDR `@ipMatch 127.0.0.1/24` `id:3;phase:1;t:none;log;pass;ctl:ruleRemoveById=55666` | |
both combined | |
SecRule REMOTE_ADDR `@ipMatch 127.0.0.1/24;127.0.0.1` `id:3;phase:1;t:none;log;pass;ctl:ruleRemoveById=55666` |
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
import os | |
from PIL import Image | |
source_folder = os.getcwd() | |
target_folder = os.path.join(source_folder, "webp_converted") | |
if not os.path.exists(target_folder): | |
os.makedirs(target_folder) | |
max_file_size = 1 * 1024 * 1024 |
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
from playwright.sync_api import sync_playwright | |
from urllib.parse import urljoin, urlparse | |
import os | |
import time | |
# === config === | |
START_URL = "https://www.example.com/somepath" | |
WAIT_BETWEEN_REQUESTS = 2.5 | |
OUTPUT_FILE = "output1.txt" |
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
SETTINGS=~/Library/Application\ Support/discord/settings.json | |
FILE=$(< "$SETTINGS" jq ". + {DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING: true}") | |
echo $FILE | jq . | tee "$SETTINGS" |