Skip to content

Instantly share code, notes, and snippets.

@heyalexej
heyalexej / gsm-setup.md
Last active November 27, 2026 07:15
SIM Card Management Through GSM Modem On Linux

SIM Card Management Over GSM Modem

A small guide on how to send and receive USSD codes on Linux

I am using the built in GSM (UMTS) modem of my Thinkpad X1 extensively because I am often in places with flaky internet connections. I connect through the standard Network Manager on Ubuntu and everything works fine. There was one major annoyance though. Every time I wanted to top up the SIM balance or book a new package, I needed a phone to send and receive USSD codes. So I took some time to figure out how to do it from the shell. I wrote this down as a help for others and a reminder for myself. Without further ado...

First intsall gammu and picocom.

➜  ~  sudo apt-get install -y gammu picocom
@Mr-xn
Mr-xn / mac.js
Created May 29, 2026 09:35
typora mac 激活
#!/usr/bin/env node
/**
* Typora macOS 激活脚本
* 原理:替换二进制中的 RSA 公钥,用自己的私钥签名生成 Activation Token
*/
const crypto = require('crypto');
const fs = require('fs');
const path = require('path');
const { spawnSync } = require('child_process');
@simbo
simbo / pihole-setup-simple.md
Created November 25, 2020 15:45
Setting up a Raspberry Pi for pi-hole

Setting up a Raspberry Pi for pi-hole

Used Model: Raspberry Pi (Model B Rev 2, armv6l)

Prepare SD Card

Download the Raspberry Pi Imager, start it and follow the instructions to create an image using the Raspberry Pi OS Lite (32-bit) (a debian port without desktop environment).

@Fanman03
Fanman03 / UAP-Guide.md
Last active November 27, 2026 07:10
UniFi AP Buyers Guide

UniFi AP Buyers Guide

(updated May 2025)

The APs in this list are ordered from highest to lowest performance. However, unless you have a very high number of devices you likely do NOT need to buy the most expensive, highest performance AP. You can also check Ebay for deals, especially on older equipment.

All APs in this list support both wired backhaul and mesh modes. However, wired connections are strongly recommended for better performance and reliability.

Number of spatial streams are listed in order of 2.4GHz, 5GHz, 6GHz.

Good Choices:

@rz6agx
rz6agx / Little-known-XRay-features.md
Last active November 27, 2026 07:01
Малоизвестные фичи XRay

Малоизвестные фичи XRay

В этом посте я кратко поведаю о разных интересных возможностях XRay (клиент и сервер для протоколов VMess, VLESS, Trojan и других, в том числе с XTLS-Reality и XTLS-Vision), о которых, кажется, мало кто знает, но которые могут оказаться очень полезными.

Fragment

На фоне недавних событий (замедление Youtube Роскомнадзором), многие открыли для себя инструменты типа GoodbyeDPI и подобных. Они работают с использованием различных трюков при передаче данных по протоколу TCP, благодаря которым цензурирующее оборудование (так называемое ТСПУ) при обработке TLS-handshake оказывается сбитым с толку и не понимает, на какой именно сайт вы пытаетесь попасть (потому что не может прочитать параметр "SNI" при установке TLS-соединения), и в итоге блокировка/замедление не срабатывает. XRay тоже умеет подобное, там это называется "Fragment".

Простейший конфиг XRay для этого будет выглядеть примерно так:

Discord HypeSquad Badge Script (Updated December 2025)

Current Status (as of December 24, 2025):
Discord officially removed the HypeSquad section from settings in September 2025, meaning you can no longer join via the in-app quiz. Existing badges remain visible on profiles, but new users can't join officially.

Good news: The internal API endpoint (/hypesquad/online) still works! This console script lets you add a HypeSquad house badge directly.

Important Warnings:

  • This is unofficial and may violate Discord's Terms of Service (considered automation).
  • Use at your own risk—account bans are rare for this but possible.
@rz6agx
rz6agx / Xray_proxy_Windows.md
Last active November 27, 2026 06:59
Причина написания этого модуля - возможность поднять системный прокси-сервер в пространстве пользователя, не используя полномочия администратора

Запуск Xray-прокси в Windows 10/11

Основная причина написания этого модуля - возможность поднять системный прокси-сервер в пространстве пользователя, не используя полномочия администратора. Для автоматизации этого действия напишем скрипт в виде модуля, Powershell будет его подгружать автоматически. Для этого создаем папку по пути USERPROFILE\Documents\WindowsPowerShell\Modules\XrayTools и создаем там файл XrayTools.psm1:

# Укажите путь где лежит бинарник и конфигурационный файл xray
$Global:XrayPath       = "$env:USERPROFILE\Downloads\xray\xray.exe"
$Global:XrayConfig     = "$env:USERPROFILE\Downloads\xray\config.json"
$Global:ProxyAddress   = "127.0.0.1:1080"
# Используем маску 172.16/12 для покрытия всего диапазона 172.16.0.0 - 172.31.255.255
@dexhorthy
dexhorthy / the-no-ai-slop-manifesto.md
Last active November 27, 2026 07:00
The No AI Slop Manifesto

No AI Slop: A Manifesto

Written by the speakers and attendees of AIE Code Summit 2026

In 2001, 17 software engineers and leaders got together at a ski lodge in Snowbird, Utah to understand the biggest challenge of their time: heavyweight, documentation-driven software development processes.

Out of this we got the Agile Manifesto, four values and twelve principles that changed how most of the industry builds software.

Today we convene to build our own manifesto - the No AI Slop manifesto.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@rz6agx
rz6agx / Xray-proxy-scheme-upd.md
Last active November 27, 2026 06:53
xray proxy VPN

Многоуровневая прокси-схема с Xray, которая выживет в 2025–2026 годах

TL;DR
РФ-VPS (VLESS + Vision + Reality → microsoft.com) → Зарубежный VPS (Shadowsocks-2022 blake3-aes-128-gcm) → Интернет
Маршрутизация только на клиенте, сервер в РФ просто «глухая труба».

К 2025–2026 году это самая живучая и незаметная схема для России.

Зачем это нужно в конце 2025 года