Skip to content

Instantly share code, notes, and snippets.

View xTCry's full-sized avatar
🦉
Power On

Vladislav Khr xTCry

🦉
Power On
View GitHub Profile
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AmneziaWG 2.0 Generator (Full Entropy)</title>
<style>
body { font-family: 'Segoe UI', system-ui, sans-serif; background-color: #0d1117; color: #c9d1d9; display: flex; justify-content: center; padding: 20px; margin: 0; }
.container { background-color: #161b22; padding: 25px; border-radius: 12px; border: 1px solid #30363d; max-width: 650px; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
h1 { font-size: 1.25rem; text-align: center; color: #58a6ff; margin-bottom: 20px; }
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active July 29, 2026 05:48
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@xTCry
xTCry / 7g-firewall.conf
Last active April 23, 2026 09:23
Fixed `7g-firewall.conf` for `Bitrix` & (fix for `Yandex.Metrika`)
# 7G FIREWALL - NGINX v1.6
# @ https://perishablepress.com/7g-firewall-nginx/
map $query_string $bad_querystring_7g {
default 0;
"~*([a-z0-9]{2000,})" 1;
"~*(/|%2f)(:|%3a)(/|%2f)" 2;
"~*(order(\s|%20)by(\s|%20)1--)" 3;
@xTCry
xTCry / README.md
Last active February 9, 2026 12:56
[Nginx] Config for block site bots / Конфиг для блокировки вредного трафика от хостинг провайдеров

[Nginx] Конфиг для блокировки вредного трафика от хостинг-провайдеров

Nginx config for block site bad traffic (bots)

Что произошло?

Было замечено, что на сайт идет множество запросов с симуляцией поведения Android девайса с прокруткой содержимого страницы и ее повторного открытия уже с другой информацией об устройстве.

Запросы обычно происходили на одни и те же страницы (в основном только на две-три). Адрес запроса был сформирован так, что сервер переадресовывал на корректный адрес. Например, с /info/info/.

У более чем 95% подозрительных запросов были использованы IPv6 адреса. Что явно затрудняло обнаружение продозрительного трафика, т.к. нагрузки почти не было и сайт работал в штатном режиме, но была замечена накрутка посещаемости.

@xTCry
xTCry / README.md
Last active July 31, 2026 11:26
[Bitrix VM] Настройки/фиксы

[Bitrix VM] Настройки/фиксы

Фикс редиректа на :443 работы через Nginx proxy в NAT

Статья: https://it-lux.ru/nginx-reverse-proxy-bitrix-vm/

Создать файл /etc/nginx/bx/settings/schema.conf

map $http_x_forwarded_proto $balancer_port {
@dynax60
dynax60 / backup.sh
Created May 29, 2023 06:27
Simple site change tracker
#!/bin/bash
PATH=/usr/bin:/usr/sbin
# Установка переменных
SITE_DIRECTORY="/var/www/mysite.ru" # Путь к директории сайта
BACKUP_DIRECTORY="/opt/git/site" # Путь к директории для сохранения бэкапов
EMAIL_RECIPIENT="mysite@mysite.ru" # Адрес получателя электронной почты
MAX_DIFF_SIZE=$((10 * 1024)) # 10 Кб в байтах
# Создание временной директории для выполнения операций
@kylefmohr
kylefmohr / code-server.sh
Last active January 5, 2025 12:35
Script to install cdr/code-server v4.19.1, point it do a domain, and install LetsEncrypt
#!/bin/bash
#Tested working on Ubuntu 20.04 and 22.04!
VERSION='4.22.1'
echo "This script will install code-server v$VERSION, enable it as a service, and expose it to the internet with a LetEncrypt Certificate."
echo ""
echo "By this point, you should already have a domain name pointed to the IP address of this server!"
read -p "Press ENTER to continue or CTRL+C to quit"
echo "Which domain name do you want to use? Including subdomain if applicable: "
read domainname
@gjreasoner
gjreasoner / README.md
Last active April 1, 2026 09:39
Expand Ubuntu 20 Proxmox Disk
# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button

# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME                      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                         8:0    0    1T  0 disk
├─sda1                      8:1    0    1M  0 part
├─sda2                      8:2    0    1G  0 part /boot
└─sda3                      8:3    0    1T  0 part
@gullyn
gullyn / flappy.html
Last active November 19, 2025 15:40
Flappy bird in 205 bytes (improved!)
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c>
@negezor
negezor / bot.js
Last active February 3, 2021 21:00
Command prototype using Composition API for vk-io
const { VK } = require('vk-io');
const { Commander, useMessage, useViewer, onEnter, ref, watch } = require('./core');
const vk = new VK({
token: ''
});
const commander = new Commander();