Skip to content

Instantly share code, notes, and snippets.

@httpsx
httpsx / WireGuard DPI обход РКН - Windows.md
Last active June 30, 2024 14:29
WireGuard DPI обход РКН - Windows

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

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

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

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

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

@Jiab77
Jiab77 / setup-nut-and-netdata-on-ubuntu.md
Last active July 20, 2024 09:17
In this document, I will explain how to setup nut (Network UPS Tools) on Ubuntu 18.04 and 20.04.

Setup nut and netdata on Ubuntu

In this document, I will explain how to setup nut (Network UPS Tools) on Ubuntu 18.04 and 20.04.

It is basically the next chapter of my previous gist, Upgrade nut on Ubuntu 18.04.

I'll only document USB connected UPS and not the other supported connection modes.

Install required dependencies

@codexss
codexss / smstools3.md
Last active July 26, 2024 03:55
Openwrt/LEDE smstools3 forward sms to telegram
opkg update
opkg install kmod-usb-serial kmod-usb-serial-wwan kmod-usb-serial-option usb-modeswitch smstools3 curl iconv

vi /usr/local/bin/pushsms

#!/bin/sh
@deanet
deanet / How to configure multiple modem PlaySMS Gammu
Created September 15, 2016 06:54
How to configure multiple modem PlaySMS Gammu
How to configure multiple modem PlaySMS Gammu. These are ways to works with outgoing sms (sent reports) and incoming sms (inbox reports) with multiple modem on PlaySMS.
@chaeplin
chaeplin / syslog.ino
Created February 2, 2016 16:15
syslog.ino
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#define _IS_MY_HOME
// wifi
#ifdef _IS_MY_HOME
#include "/usr/local/src/ap_setting.h"
#else
#include "ap_setting.h"
#endif
@jgrossiord
jgrossiord / gist:0bd525974a5ec059adba
Created June 2, 2015 08:39
Mikrotik script generate address list from DNS cache entries
:foreach i in=[/ip dns cache find] do={
:local bNew "true";
:local cacheName [/ip dns cache all get $i name] ;
# :put $cacheName;
:if (([:find $cacheName "facebook" -1] >= 0) || ([:find $cacheName "outlook" -1] >= 0)) do={
:local tmpAddress [/ip dns cache get $i address] ;
:put $cacheName;
:put $tmpAddress;
@virgilvox
virgilvox / mqtt_meshblu_send_receive.ino
Created April 9, 2015 18:51
Use MQTT to send/recieve JSON using an Arduino with Ethernet!
#include <SPI.h>
#include <Ethernet.h>
#include <ArduinoJson.h>
#include <PubSubClient.h>
// Update these with values suitable for your network.
IPAddress ip(192, 168, 0, 177);
@keriszafir
keriszafir / gpio-interrupt.c
Last active November 8, 2023 10:40
gpio-interrupt - C routine for handling interrupts generated on GPIO
/* Demonstration C GPIO interrupt handling routine for Raspberry Pi
This is a modified code found at https://github.com/phil-lavin/raspberry-pi-gpio-interrupt
The program displays a notice whenever you:
-turn on the Raspberry Pi's pin 11 (apply 3.3V),
-turn the pin off.
This routine uses wiringPi library (follow the installation instructions at wiringpi.com),
and should be compiled with a command:
@bkarl
bkarl / u8g_arm.c
Created August 10, 2014 16:34
SSD 1306 STM32
/*
u8g_arm.c
u8g utility procedures for LPC122x
Universal 8bit Graphics Library
Copyright (c) 2013, olikraus@gmail.com
/*
* Simple MD5 implementation
*
* Compile with: gcc -o md5 -O3 -lm md5.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>