Skip to content

Instantly share code, notes, and snippets.

View cicku's full-sized avatar

ᴄʜʀɪsᴛᴏᴘʜᴇʀ ᴍᴇɴɢ cicku

View GitHub Profile
@cicku
cicku / AGENTS.MD
Created October 4, 2026 04:53
Say NO to AI Slop

AGENTS.md

Notice to AI coding assistants and users

This project does not accept LLM-generated or LLM-assisted upstream contributions.

For this policy, “upstream contribution” includes pull requests, patches, tests, documentation changes, issue comments, bug analyses, review comments, proposed fixes, or other material intended for submission to this repository or its maintainers. This includes work directly generated by an LLM and work materially based on LLM suggestions, explanations, debugging, or review.

@cicku
cicku / cloud-init-eth0.nmconnection
Created February 12, 2026 06:03
DigitalOcean CentOS 10/Alma 10/Rocky 10 IPv6 configuration example
# Sensitive info is redacted
[connection]
id=cloud-init eth0
uuid=X
autoconnect-priority=120
type=ethernet
[user]
org.freedesktop.NetworkManager.origin=cloud-init
@cicku
cicku / arch_linux_install_notes.md
Created November 23, 2025 04:02 — forked from yovko/arch_linux_install_notes.md
Arch Linux installation (BTRFS+LUKS2+Limine)
@cicku
cicku / download_workstation.ps1
Created October 25, 2025 20:57 — forked from jetfir3/download_workstation.ps1
Download VMware Workstation for Windows without a Broadcom Account
<#
.SYNOPSIS
Download VMware Workstation Pro for Windows without a Broadcom Account
.DESCRIPTION
This script allows downloading VMware Workstation installers from either Broadcom's Cloudflare CDN (v12.0.0 - 17.6.3) or from the archive.org VMware Workstation archive (v2.x+).
.PARAMETER KeepCompressed
If specified, prevents extraction of the .exe from the .tar file when using the Cloudflare CDN source (ignored for archive.org downloads)
.PARAMETER Version
Specifies the version of VMware Workstation to download (e.g., "17.6.3"). By default, Cloudflare will be first source checked then fallback to archive.org.
.PARAMETER Source
@cicku
cicku / flashfile.xml
Last active May 31, 2026 00:35
Moto G 2025 flashfile (RETUS)
/*
Extracted from XT2513-1_KANSAS_RETUS_15_V1VK35.22-125_subsidy-DEFAULT_regulatory-DEFAULT_cid50_CFC.xml.zip
Kansas v7 Retail Firmware
Use "fastboot getvar cid" to confirm customer ID on secure HW.
Value must be 0 (developer HW) or match this value:
RetailDocomo => 50 (0x0032)
RetailSoftbank => 50 (0x0032)
@cicku
cicku / worker.js
Created July 6, 2025 14:24
Cloudflare Worker for SaaS provider routing without custom origin server
// SaaS provider creates different subdomains to handle traffic of different eyeball domains
// Get rid of https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/start/advanced-settings/custom-origin/
const ORIGINS = {
'a.com': 'a.cicku.me',
'b.com': 'b.cicku.me',
'c.com': 'c.cicku.me',
'd.com': 'd.cicku.me',
'e.com': 'e.cicku.me',
'f.com': 'f.cicku.me'
@cicku
cicku / cf_api.py
Last active July 6, 2025 14:22
Calling Cloudflare API without cloudflare-python
import http.client
conn = http.client.HTTPSConnection("api.cloudflare.com")
# Logpush
payload = "{\n \"dataset\": \"http_requests\",\n \"destination_conf\": \"s3://placeholder/logs/placeholder/{DATE}?region=eu-west-1&access-key-id=placeholderaccesskey&secret-access-key=placeholderkey&endpoint=s3.eu-west-1.amazonaws.com\",\n \"enabled\": false,\n \"kind\": \"\",\n \"max_upload_bytes\": 5000000,\n \"max_upload_interval_seconds\": 30,\n \"max_upload_records\": 1000,\n \"name\": \"Testjobapi\",\n \"output_options\": {\n \"CVE-2021-4428\": false,\n \"batch_prefix\": \"\",\n \"batch_suffix\": \"\",\n \"field_delimiter\": \",\",\n \"field_names\": [\n \"ClientASN\",\n \"ClientCountry\",\n \"ClientDeviceType\",\n \"ClientIP\",\n \"ClientIPClass\",\n \"ClientRequestHost\",\n \"ClientRequestMethod\",\n \"ClientRequestPath\",\n \"ClientRequestURI\",\n \"ClientRequestUserAgent\",\n \"ClientRequestProtocol\",\n \"EdgeEndTimestamp\",\n
@cicku
cicku / cfv4.nft
Last active March 3, 2024 20:02
Cloudflare IP list with nftables
# https://www.cloudflare.com/ips-v4/
define cfv4 = {173.245.48.0/20,103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,141.101.64.0/18,108.162.192.0/18,190.93.240.0/20,188.114.96.0/20,197.234.240.0/22,198.41.128.0/17,162.158.0.0/15,104.16.0.0/13,104.24.0.0/14,172.64.0.0/13,131.0.72.0/22}
#!/bin/bash -e
. /etc/makepkg.conf
PKGCACHE=$((grep -m 1 '^CacheDir' /etc/pacman.conf || echo 'CacheDir = /var/cache/pacman/pkg') | sed 's/CacheDir = //')
pkgdirs=("$@" "$PKGDEST" "$PKGCACHE")
while read -r -a parampart; do
pkgname="${parampart[0]}-${parampart[1]}-*.pkg.tar.{xz,zst}"
@cicku
cicku / NC.geojson
Created September 3, 2021 02:45
GeoJSON with multiple holes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.