Skip to content

Instantly share code, notes, and snippets.

interfaces {
lo0 {
unit 0 {
family inet {
filter {
input-list [ discard-ip-options discard-frags accept-single-hop-bfd-v4 accept-multi-hop-bfd-v4 accept-bgp-v4 accept-ospf2 accept-vrrpv3-v4 accept-established-v4 accept-common-services-v4 discard-all-v4 ];
}
}
family inet6 {
filter {
@httpsx
httpsx / WireGuard DPI обход РКН - Windows.md
Last active October 13, 2025 11:58
WireGuard DPI обход РКН - Windows

Для обхода блокировки достаточно отправить 1 любой udp пакет, тем самым нарушим начальное определение протокола WireGuard
Способ с использованием Windows PowerShell. Без скачивания Nmap и подобного софта.

Шаг 0: Отключитесь от всех туннелей.

Шаг 1: Редактируем Клиент конфиг

Добавим в него "ListenPort", это позволит иметь статичный порт на котором будет работать WireGuard
Нажмите ПКМ на нужный "туннель" и выберите "Редактировать выбранный туннель..." Step1

После DNS добавляем новую строку

@smarteist
smarteist / sshproxy.sh
Last active October 17, 2024 19:31
This script runs ssh proxy in local socks5 port 1080
#!/bin/bash -i
user="root"
pass="@PASS@@@@"
ip_address="111.111.11.11"
ssh_port=22
sudo_pass_file="/tmp/sshpass"
proxy_port=1080

Uninstall Microsoft Edge

Important

Working on the latest supported Windows versions. Run Windows Update before following this guide.

1. Open Powershell > RUN AS ADMIN

2. Paste in irm https://gist.github.com/ave9858/c3451d9f452389ac7607c99d45edecc6/raw/UninstallEdge.ps1 | iex and press enter

3. Microsoft Edge will be completely uninstalled.

@RubenKelevra
RubenKelevra / fast_firefox.md
Last active October 24, 2025 14:55
Make Firefox fast again
@denisgolius
denisgolius / install-victoriametrics-single-ubuntu.sh
Last active April 5, 2025 17:25
install VicotriaMetrics Single on ubuntu 20.04
#!/bin/bash
set -e
system_set_hostname "$HOSTNAME"
apt update && apt upgrade -y && apt install -y curl wget net-tools traceroute jq
# Generate files
mkdir -p /etc/victoriametrics/single
mkdir -p /var/lib/victoria-metrics-data
#IPv6
#Отключили ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.all.forwarding=0
net.ipv6.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_source_route = 0
@Anton-ShadowBoss
Anton-ShadowBoss / user.js
Last active July 6, 2025 14:37
Mozilla Firefox Anti-Telemetry user.js
/*
Mozilla Firefox Anti-Telemetry user.js
Обновлено 25.06.2021 для Firefox 89
Основано на:
https://github.com/ghacksuserjs/ghacks-user.js
https://github.com/earthlng/FFprefs-diffs
Цель данной выборки - отключение телеметрии без
"обрезания" рабочего функционала и
@pintoXD
pintoXD / crc16_arc.py
Created April 27, 2020 11:32
CRC16/ARC Python implementation
def crc16(data, offset, length):
if data is None or offset < 0 or offset > len(data) - 1 and offset+length > len(data):
return 0
crc = 0x0000
for i in (range(0, length)):
# crc = crc << 8
crc ^= data[i]
# print(hex(data[i]))
print(bin(crc))
for j in range(0, 8):
@apfelchips
apfelchips / user.js
Last active August 14, 2025 20:41
~ 🥖.config🥖firefox🥖Profiles🥖profile.default🥖user.js
// src: https://gist.github.com/apfelchips/f129c8316055e524774d757365267e26
// goal: disable all annoying stuff from firefox and tighten security, but still retain all modern web features
// configure as little as possible to benefit from changeing/hardened defaults by Mozilla
// inspired by:
// https://github.com/pyllyukko/user.js/blob/master/user.js
// https://github.com/ghacksuserjs/ghacks-user.js/blob/master/user.js
// http://kb.mozillazine.org/About:config_entries
// https://gist.github.com/ruilapa/3207798