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
| # MikroTik Script: freedomain.rsc | |
| # Purpose: Update DNS records dynamically | |
| :local apiKey "api_key" | |
| :local domain "example.com,example.org" | |
| :local fileName "last_pppoe_ip.txt" | |
| :local lastIP | |
| :local currentIP |
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
| @echo off | |
| setlocal enabledelayedexpansion | |
| set "current_dir=%~dp0" | |
| set "found_folder=" | |
| for /d %%d in ("%current_dir%WPy64*") do ( | |
| if exist "%%d" ( | |
| set "found_folder=%%d" | |
| goto :folder_found |
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 | |
| NM=`uname -a && date` | |
| NAME=`echo $NM | md5sum | cut -f1 -d" "` | |
| if [ $# -eq 1 ]; then | |
| ppa_name=`echo "$1" | cut -d":" -f2 -s` | |
| if [ -z "$ppa_name" ]; then | |
| echo "PPA name not found" | |
| echo "Utility to add PPA repositories in your debian machine" | |
| echo "$0 ppa:user/ppa-name" | |
| else |
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
| # MikroTik Script: 6in4.rsc | |
| # Purpose: Update PPPoe IP dynamically | |
| :local apiKey "api_key" | |
| :local tunnelId "tunnel_id" | |
| :local fileName "last_pppoe_ip2.txt" | |
| :local lastIP | |
| :local currentIP |
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 -S uv run --script | |
| # /// script | |
| # dependencies = ["httpx", "pyftpdlib"] | |
| # /// | |
| import os | |
| import mimetypes | |
| import tempfile | |
| import logging | |
| logging.basicConfig( |
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 -S uv run --script | |
| # /// script | |
| # dependencies = [ "pyrofork", "tgcrypto-pyrofork" ] | |
| # /// | |
| import sys | |
| from pathlib import Path | |
| from pyrogram.client import Client | |
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 python3 | |
| import argparse | |
| import fnmatch | |
| from pathlib import Path | |
| from typing import List, Optional, Union | |
| try: | |
| from pathspec import PathSpec | |
| _HAS_PATHSPEC = True |
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
| // ==UserScript== | |
| // @name ChatGPT → Markdown saver | |
| // @namespace tgpt.chat.markdown.saver | |
| // @version 1.3 | |
| // @description Save current ChatGPT dialog (user + assistant) as a .md file via the Tampermonkey menu. | |
| // @match https://chatgpt.com/* | |
| // @match https://chat.openai.com/* | |
| // @match http*://*/* // lets you run this on mirrors/embeds too (menu-only, harmless) | |
| // @match file:///* // saved HTML files | |
| // @grant GM_registerMenuCommand |
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 python3 | |
| import argparse | |
| import time | |
| import math | |
| import logging | |
| from dataclasses import dataclass | |
| from typing import Optional, Dict, Tuple, List | |
| from evdev import InputDevice, UInput, ecodes as E |
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/sh | |
| API_KEY="$api_key" | |
| API_SECRET="$api_secret" | |
| FQDN="$domain" | |
| ADDR="$__IP" | |
| TTL=3600 | |
| WAIT="${param_wait:-8}" | |
| DNS="${dns_server:-1.1.1.1}" |
OlderNewer