Skip to content

Instantly share code, notes, and snippets.

@thetanil
thetanil / bootstrap.sh
Created May 9, 2026 15:13
Machine bootstrap: installs git+uv, clones thetanil/resto, writes ~/.vaultpass, runs ansible
#!/usr/bin/env bash
# bootstrap.sh — full machine bootstrap for thetanil/resto
#
# Usage (store this in your password manager with real values):
# GH_TOKEN=ghp_xxxx VAULT_PASS=hunter2 bash <(curl -LsSf https://gist.githubusercontent.com/thetanil/REPLACE_WITH_GIST_ID/raw/bootstrap.sh)
#
# GH_TOKEN — fine-grained GitHub token with read-only access to thetanil/resto
# VAULT_PASS — ansible-vault password; written to ~/.vaultpass (chmod 600)
set -euo pipefail
@thetanil
thetanil / gist:ad3d819be266567dcda9763b309a39cc
Created May 22, 2023 07:38
block list for LG advertising machine and TikTrash
104.104.77.88
142.251.33.202
13.209.152.196
35.80.127.232
ngfts.lege.com
ngfts.lge.com
lge.com
us.ad.lgsmartad.com
de.ad.lgsmartad.com
lgad.cjpowercast.com
local top = [[
<!DOCTYPE html>
<html lang=en>
<head>
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="description">
<style>
@thetanil
thetanil / circularity.py
Created March 5, 2020 06:43 — forked from a5kin/circularity.py
Procedural generation of circular patterns
#!/usr/bin/python3
__author__ = "Andrey Zamaraev (a5kin)"
import math
import random
import cairo
import numpy as np