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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Password Reader</title> | |
<script> | |
// Extend HTMLInputElement prototype | |
HTMLInputElement.prototype.getPasswordValue = function() { | |
if (this.type === "password") { |
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 os | |
import sys | |
import subprocess | |
import shutil | |
import argparse | |
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) | |
SRC_DIR = os.path.join(PROJECT_ROOT, "src") | |
BUILD_DIR = os.path.join(PROJECT_ROOT, "build") | |
MODULES_DIR = os.path.join(BUILD_DIR, "modules") |
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 os | |
import sys | |
import subprocess | |
import shutil | |
import argparse | |
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) | |
SRC_DIR = os.path.join(PROJECT_ROOT, "src") | |
BUILD_DIR = os.path.join(PROJECT_ROOT, "build") | |
MODULES_DIR = os.path.join(BUILD_DIR, "modules") |
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 socket | |
import time | |
import threading | |
import geoip2.database | |
# Configuration | |
HOST = "0.0.0.0" | |
PORT = 12345 | |
GEOIP_DB_PATH = "GeoLite2-City.mmdb" # Ensure you have this file | |
RATE_LIMIT_MS = 1000 # Minimum time interval between executions in milliseconds |
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 socket | |
import time | |
import asyncio | |
import geoip2.database | |
from functools import lru_cache | |
# Config | |
H, P = "0.0.0.0", 12345 # Host & Port | |
GEO_DB = "GeoLite2-City.mmdb" # GeoIP DB | |
RL_MS = 1000 # Rate limit in ms |
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 socket | |
import time | |
import geoip2.database | |
# Load GeoIP2 database (download the MaxMind GeoLite2 database for this) | |
geoip_db_path = "GeoLite2-City.mmdb" # Ensure you have this file | |
reader = geoip2.database.Reader(geoip_db_path) | |
# Server configuration | |
HOST = "0.0.0.0" |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Tile-based Platformer with Friction</title> | |
<style> | |
body { margin: 0; } | |
canvas { display: block; background-color: #87CEEB; } /* Light blue sky background */ | |
</style> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Greeting</title> | |
</head> | |
<body> | |
<script> | |
// Array containing both encoded data and code logic in hexadecimal |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Greeting</title> | |
</head> | |
<body> | |
<script> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Greeting</title> | |
</head> | |
<body> | |
<script> |
NewerOlder