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
#!/usr/bin/perl -l | |
# wvdiald.pl - Auto connect USB modems on Linux | |
# Author: naveenk <dndkumarasnghe@gmail.com> | |
# License: MIT | |
# Make sure you have wvdial and usb-modeswitch installed. Fill the connection parameters below. | |
# Run this as root. Add "perl /path/to/wvdiald.pl" to /etc/rc.local to make this a service | |
######################### CHANGE AS NEEDED ################################ | |
# connection parameters |
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
/* | |
Invalid data will cause the server to silently reject your POST request. | |
Analyze the POST request on form submission via Chrome Dev tools. | |
*/ | |
(async () => { | |
// create a form data object | |
let form = new FormData() |
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
function executeOnPageSpace(code){ | |
// create a script tag | |
var script = document.createElement('script') | |
script.id = 'tmpScript' | |
// place the code inside the script. later replace it with execution result. | |
script.textContent = | |
'document.getElementById("tmpScript").textContent = JSON.stringify(' + code + ')' | |
// attach the script to page | |
document.documentElement.appendChild(script) |
NewerOlder