Skip to content

Instantly share code, notes, and snippets.

View EncodeTheCode's full-sized avatar
💭
Coding useful tools for workflow.

EncodeTheCode

💭
Coding useful tools for workflow.
View GitHub Profile
<!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") {
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")
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")
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
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
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"
<!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>
<!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
<!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>
<!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>