Skip to content

Instantly share code, notes, and snippets.

@Jaycso
Jaycso / stoplocations.py
Created March 12, 2026 22:06
Script to add location data to stops.txt
import csv
import requests
def main():
input_file = "gtfs/stops.txt"
output_file = "gtfs/stops_updated.txt"
base_url = "https://bustimes.org/api/stops/?atco_code="
not_found = []
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@choco-bot
choco-bot / FilesSnapshot.xml
Created March 12, 2026 22:06
goldendict-en-ru-en.install v1.0.1 - Failed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\goldendict-en-ru-en.install\goldendict-en-ru-en.install.nupkg" checksum="613C11E6621BCCF0610E1EC9E16BE59E" />
<file path="C:\ProgramData\chocolatey\lib\goldendict-en-ru-en.install\goldendict-en-ru-en.install.nuspec" checksum="554C3773E5E34B8717DA06416D34B5E3" />
<file path="C:\ProgramData\chocolatey\lib\goldendict-en-ru-en.install\tools\chocolateyInstall.ps1" checksum="ABC9AB5177DE85538F668FB4EC9661D2" />
</files>
</fileSnapshot>
@avaitla
avaitla / send_otlp.py
Created March 12, 2026 22:05
Send test traces / logs / metrics to grpc endpoint
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "opentelemetry-api",
# "opentelemetry-sdk",
# "opentelemetry-exporter-otlp-proto-grpc",
# ]
# ///
"""Send example OTLP traces, logs, and metrics to a gRPC endpoint."""
{"args":[],"texture":"AEAAQLMCiVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAA+klEQVR4XmMYBaMhMBoCoyEwGgKjITByQ4CRWK9bWFj8h6k9ceIEWB+yGEgOJj6UgpOJFMcCPYihHCSGTXyoBALTSM/+Iz4AWEhJAcA8j6EcmxjDKBgNgSETAkRXg8A68D8uXwENYRyqcU5SAGBTDAuVoRoIFNcCjEM8u4+2A0Z6eT2aAkZTwAgPgdEsMJoFRrPAyA4BkrrD/0c7eaMhMBoCoyEwGgKjITAaAqMhMBoCoyEwGgKjITAaAqMhMBoCoyEwGgKjITAaAqMhMBoCoyEwGgKjITAaAqMhMBoCoyEwGgKjITAaAqMhMBoCoyEwGgKjITAaAkMrBABiAxZ+uE9PdgAAAABJRU5ErkJggg\u003d\u003d","cubes":[],"name":"louis scp","desc":"ahwqsvgwvgsvwvstw"}
@myth1996
myth1996 / privacy-policy.html
Created March 12, 2026 22:05
ReadyToFly Privacy Policy
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Privacy Policy — ReadyToFly</title>
<style>
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; max-width: 800px; margin: 0 auto; padding: 24px 20px 60px; color: #1a1a1a; line-height: 1.7; }
h1 { font-size: 28px; margin-bottom: 4px; }
h2 { font-size: 18px; margin-top: 36px; border-bottom: 1px solid #e5e5e5; padding-bottom: 6px; }
@PeculiarE
PeculiarE / candySwapBinarySearch.md
Created March 12, 2026 22:04
Fair Candy Swap - LeetCode - Days 71 & 72

Question

Intuition

Using binary search

Approach

Complexity

  • Time complexity: $$O((m+n)\ log\ n)$$
@EdwardKerckhof
EdwardKerckhof / install.ps1
Created March 12, 2026 22:04
Homelab CLI installer
# Install the homelab CLI from the private GitHub repo.
#
# Usage (remote):
# gh api repos/EdwardKerckhof/homelab-v2/contents/cli/install.ps1 -H "Accept: application/vnd.github.raw" | iex
#
# Usage (local, from a cloned repo):
# .\cli\install.ps1
#
# On a fresh Windows machine, this script auto-installs git, python, and pipx
# via winget before installing the CLI.
return({WG=function(P,P,O)O=(P[12410]);return O;end,_G=function(P,P)P+=1;return P;end,b=function(P,O,u,U)if U==0X75 then(u)[8]=({});if not(not O[26169])then U=(O[26169]);else U=P:V(U,O);end;return 40855,U;elseif U==0x50 then(u)[0B1001__]={};if not O[23108]then O[8403]=(-5074676638+((P.Ba((P.ua(P.E[5],(O[11792]))),O[0X2e10]))-O[20930]+P.E[0X2]));U=(-2720955853+((O[0X2E10]>=U and O[5916]or O[18379])+O[20930]+P.E[0b1_1__1]-O[10799]));(O)[23108]=(U);else U=P:j(U,O);end;return 0X9F97,U;else if U~=0X6F then else(u)[0xA]=P.R.gsub;return 0X380a,U;end;end;return nil,U;end,ba=setmetatable,W=error,r=bit32.lshift,k=function(P,O,u)(O)[0xd]=(nil);u=P.K;return u;end,eG=function(P,P,O,u)(P[0b11010__])[O+0B10]=u;end,qG=function(P,P,O,u)P=0B0;O=(#u);return O,P;end,U=function(...)(...)[...]=nil;end,AG=function(P,O,u,U,R,E,Q,q,_)for r=82,0X14E,126 do if r==0XD0 then E=q[0x1b](O);elseif r==82 then O=q[0X24]();continue;else if r~=0x14e then else(R)[7]=E;end;end;end;U=0X20;while true do if U~=0X20 then R[0x8]=q[0B1_00100]();R[0x4__