Skip to content

Instantly share code, notes, and snippets.

:: Restart Windows network interface
@echo off
SET interfaceName="Wi-Fi"
netsh interface set interface name=%interfaceName% admin="DISABLED"
netsh interface set interface name=%interfaceName% admin="ENABLED"
'''
Date : 7/26/2011
Authoer : Shay Ashkenazi
Edimax BR-6524n Broadband Router L2TP Reconnector
'''
import http.client
@shayas
shayas / setenv.bat
Last active September 26, 2015 12:18
::
:: Description : This command adds a path to the system environemnt Path variable
:: This can be done manually in system configurations but if you use it a lot,
:: this line of code will help you to automate it
::
:: Usage : setenv.bat [PATH]
:: Example : setenv.bat "%cd%" (This will add current directory)
::
@echo off
'''''''''''''''''''''''''''
'
' Author : Shay Ashkenazi
'
' VBScript System Library
'
'''''''''''''''''''''''''''
' Run system command
Function Run(command)
'''
Date : 9/19/2015
Author : Shay Ashkenazi
Simple Telnet Catcher for 3Com 3CRWER100-75 Router
==================================================
As this router boots, port 9000 is opened for only 1 second.
This simple script will open a connection and leave this port open.