Skip to content

Instantly share code, notes, and snippets.

View stesee's full-sized avatar
💭
👨‍💻

Stefan Seeland stesee

💭
👨‍💻
View GitHub Profile
@stesee
stesee / zte-sms-to-file.sh
Last active September 26, 2021 12:35 — forked from mariodian/zte-sms-control.sh
Read SMS on ZTE
#!/bin/bash
# Based on
# Authentication https://github.com/d3suu/ZTE_MF971V_CurlAuth/blob/master/zte_login_pin.sh
# SMS parsing https://gist.github.com/mariodian/65641792700d237d30f3f47d24c746e0
# Cookie things https://stackoverflow.com/questions/15995919/how-to-use-curl-to-send-cookies
URL=http://192.168.1.1
PASSWORD="XXXX"
@stesee
stesee / FiddlerScript.cs
Created May 10, 2021 04:49 — forked from antelle/FiddlerScript.cs
Change response in Fiddler
static function OnBeforeRequest(oSession: Session) {
if (oSession.RequestMethod == 'GET' && oSession.PathAndQuery.IndexOf('part_of_your_url') > 0) {
oSession.utilCreateResponseAndBypassServer();
oSession.oResponse.headers.HTTPResponseCode = 401;
oSession.oResponse.headers.HTTPResponseStatus = '401 Not Authorized';
oSession.oResponse.headers['Access-Control-Allow-Origin'] = '*';
oSession.utilSetResponseBody('response_body');
}
}
@stesee
stesee / VS16NoTelem.bat
Created March 28, 2020 13:57
Disable telemetry in Visual Studio 2019
@echo off
fltmc >nul 2>&1 || (
echo This batch script requires administrator privileges. Right-click on
echo the script and select "Run as administrator".
goto :die
)
rem Change this path if you are using Community or Professional editions
set "VS_INSTALL_DIR=%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise"