Skip to content

Instantly share code, notes, and snippets.

View cicku's full-sized avatar

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

View GitHub Profile
@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 October 3, 2025 20:29
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.
# 规则配置仅供参考,适用于 Surge Mac (1.3.0) 及其后续版本;
# 包含 Proxy Group、URL Rewrite 特性;
# 包含 Reject 规则,用于拦截广告、行为分析、数据统计;
# 屏蔽 Hao123、百度搜索,放行百度地图、百度外卖、百度音乐、百度云盘、百度百科。
# Surge for Mac 简明指南 http://bit.ly/1TATRaG
[General]
# warning, notify, info, verbose
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
loglevel = notify
@cicku
cicku / gist:f2f9830bbd0b129f65eb
Last active August 29, 2015 14:26 — forked from koelling/gist:ef9b2b9d0be6d6dbab63
CVE-2015-0235 (GHOST) test code
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define CANARY "in_the_coal_mine"
struct {
char buffer[1024];