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 MouseWiggle { | |
Add-Type -Assembly System.Windows.Forms | |
while($True) { | |
Start-Sleep -Seconds 1 | |
[Windows.Forms.Cursor]::Position = New-Object Drawing.Point (random 1000),(random 1000) | |
} | |
} |
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
1. Go to Google Chrome | |
2. Go to any website (works cool on facebook) | |
3. Right click anywhere -> Inspect Element | |
4. Click on the rightmost "Console" tab. | |
5. Copy paste the following * into the console. | |
6. Make sure the volume isn't too loud! | |
6. Press Enter. | |
* Copy paste the following text in the console: | |
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 SNOWsimpleAuth() { | |
// Those are environnement variables defined in File>Project properties>Script properties | |
var username = PropertiesService.getScriptProperties().getProperty('LOGIN'); | |
var password = PropertiesService.getScriptProperties().getProperty('PASSWORD'); | |
// I will use Google script UrlFetchApp class to make request, which is more powerfull than XMLHttpRequest | |
var headers = { | |
'Authorization': 'Basic ' + Utilities.base64Encode(username + ":" + password) | |
}; |
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 isInRange(ip, firstRangeIp, lastRangeIp) | |
{ | |
var ipArr = ip.split("."); | |
var firstArr = firstRangeIp.split("."); | |
var lastArr = lastRangeIp.split("."); | |
var pos = 0 | |
for(i=0;i<4;i++) | |
{ |
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 checker () { | |
// Delete all the row associated to a list of values contained in an other sheet | |
var sss = SpreadsheetApp.openById('X'); // Replace X with spreadsheet ID | |
var ts = sss.getSheetByName('sheet1'); // Replace sheet1 with destination Sheet tab name | |
var ss = sss.getSheetByName('sheet2'); // Replace sheet2 with source Sheet tab name | |
var startRowTS = 1; // First row of data to process in Sheet1 | |
var startRowSS = 1; // First row of data to process in Sheet2 | |
var numRowsTS = ts.getLastRow() ; // Number of rows to process destination table |