Skip to content

Instantly share code, notes, and snippets.

View Rosenstein's full-sized avatar
💭

Rosenstein Rosenstein

💭
View GitHub Profile
/**
* Remove defined words from string
*
* @param string $input the input string
* @return string the modified string
*
* Function taken from https://gist.github.com/keithmorris/4155220 / Rosenstein
**/
function removeWords($input){
@Rosenstein
Rosenstein / reboot_cisco.bat
Last active April 22, 2020 21:21
Quickly reboot Cisco / Technicolor EPC3925 router from windows shortcut or Task Scheduler. Edit config parameters first. You will need curl.exe in the same folder as this batch file.
@echo off
color 0A
@SETLOCAL
:START
@REM ###CONFIG########
@SET IP=192.168.0.1
@SET USER=admin
@SET PASS=pass
if exist cookie.txt del cookie.txt
@REM ###CONFIG########