This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Author: Ali Essam (https://github.com/ali-essam) | |
echo off | |
echo Remember to run this script as Adminstrator | |
echo Make sure to put this batch in the root directory of the flash drive | |
echo Working dir: "%~dp0" | |
echo %~nx0 | |
cd /d %~dp0 | |
echo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mechanize | |
import base64 | |
import sys | |
import time | |
user = 'USERNAME' | |
passw = 'PASSWORD' | |
print 'Rebooting the f**in router' | |
br = mechanize.Browser() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
USER='yourusername' | |
PASS='yourpassword' | |
function login { | |
local __resultvar=$1 | |
local FRMTOKEN=$(curl -s 'http://192.168.1.1/' -H 'Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8,ar;q=0.6,ru;q=0.4' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.92 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Cache-Control: max-age=0' -H 'Connection: keep-alive' --compressed | grep "(\"Frm_Logintoken\").value = \"[0-9]*\"" | grep -o "[0-9]*") | |
echo "Frm_Logintoken=$FRMTOKEN" | |
curl -s 'http://192.168.1.1/' -H 'Origin: http://192.168.1.1' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8,ar;q=0.6,ru;q=0.4' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.92 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded' - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl 'https://gist.githubusercontent.com/ali-essam/7ab5768370a701142cc936e597e8ed48/raw/8f2e50f2f43061135fe65dc857ced39a275cca49/vodafonequota' | sudo tee /etc/network/if-up.d/vodafonequota > /dev/null | |
sudo chmod +x /etc/network/if-up.d/vodafonequota | |
echo "Vodafone Quota Notifier Setup Successfully" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.config/terminator/config | |
[global_config] | |
always_on_top = True | |
borderless = True | |
enabled_plugins = LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler | |
handle_size = 1 | |
sticky = True | |
suppress_multiple_term_dialog = True | |
tab_position = bottom | |
[keybindings] |