Skip to content

Instantly share code, notes, and snippets.

@alexunderboots
alexunderboots / import
Created January 8, 2024 14:51 — forked from Pliner/import
Mikrotik antifilter.download update script
:do {
:do {
/file remove "/ipsum.rsc";
/file remove "/subnet.rsc";
} on-error={}
:put "Downloading ipsum.rsc...";
:do {
/tool fetch url="https://antifilter.download/list/ipsum.rsc" dst-path="/ipsum.rsc"
} on-error={
@alexunderboots
alexunderboots / wireguard_layer2.md
Created November 16, 2023 14:39 — forked from zOrg1331/wireguard_layer2.md
wireguard, wireguard layer 2, wireguard over TCP

Intro

This note describes how to connect two networks/devices/VMs over public network using Wireguard with Layer 2 support (ARP, IPv6 link-local, etc).

This can also be achieved using SSH and its "tap" tunnel, however, it does not provide the same level of latency and bandwidth as full-blown VPN such as Wireguard.

In addition, this note describes how to tunnel Wireguard over TCP connection. This may be of use if you encounter firewall in-between so, for instance, you can use TCP port 443 only.

Objective

@alexunderboots
alexunderboots / 1 Установка
Created November 1, 2022 14:28 — forked from YouROK/1 Установка
Install Antizapret to vps
Установка проверялась на Ubuntu 20.04, на других версиях может не работать
Для установки на впс зайдите на совой впс по ssh из под рута, скопируйте строку ниже и вставьте в терминал
rm install-az.sh; wget https://gist.githubusercontent.com/YouROK/21617b476ea914cc5b76d72903d6702f/raw/install-az.sh && chmod +x ./install-az.sh && ./install-az.sh
После установки, если нет подключения, то нужно добавить эти строчки перед ключами
pull-filter ignore block-outside-dns
route 8.8.8.8 255.255.255.255 vpn_gateway
route 77.88.8.8 255.255.255.255 vpn_gateway
@alexunderboots
alexunderboots / patch-edid.md
Created January 24, 2022 14:32 — forked from ejdyksen/patch-edid.md
A script to fix EDID problems on external monitors in macOS

patch-edid.rb

A script to fix EDID problems on external monitors in macOS.

Instructions

  1. Connect only the problem display.

  2. Create this directory structure (if it doesn't already exist):