Skip to content

Instantly share code, notes, and snippets.

View maziara's full-sized avatar

Maziar maziara

View GitHub Profile
@maziara
maziara / AutoConnectVPN.bat
Created March 20, 2021 20:03
A simple batch file to auto-check and auto-connect a VPN connection
@echo off
set vpnName="My VPN Connection Name"
set pingIp=192.168.1.1
set checkInterval=30
:whileLoop
for /f %%i in ('ping %pingIp% -l 1 -n 1 ^| find /c "Reply from %pingIp%"') do SET MATCHES=%%i
@maziara
maziara / DisableDocumentClick.js
Last active December 25, 2016 22:12
A TamperMonkey script for disabling the click popups that advertisers use on the whole document.
// ==UserScript==
// @name Disable DocumentClick
// @namespace https://github.com/maziara/DisableDocumentClick
// @updateURL https://raw.githubusercontent.com/maziara/DisableDocumentClick/master/DisableDocumentClick.js
// @version 0.1
// @description Disabling the click popups that advertisers use on the whole document.
// @author Maziara
// @include *
// @grant none
// ==/UserScript==