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
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f | |
reg delete "HKCU\Software\Microsoft\WindowsSelfHost" /f | |
reg delete "HKCU\Software\Policies" /f | |
reg delete "HKLM\Software\Microsoft\Policies" /f | |
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f | |
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /f | |
reg delete "HKLM\Software\Microsoft\WindowsSelfHost" /f | |
reg delete "HKLM\Software\Policies" /f | |
reg delete "HKLM\Software\WOW6432Node\Microsoft\Policies" /f | |
reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" /f |
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
from __future__ import print_function | |
import os | |
import subprocess | |
root = "." | |
try: | |
os.mkdir('compressed') | |
except FileExistsError: | |
pass |
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
$trigger=New-JobTrigger -Weekly -At "7:00AM" -DaysOfWeek "Monday" | |
$action="PowerShell.exe -ExecutionPolicy ByPass -File D:\Logs\export-logs.ps1" | |
$sb=[Scriptblock]::Create($action) | |
Register-ScheduledJob -Name "Export Logs" -ScriptBlock $sb -Trigger $trigger |
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
$sourceFile = " " # the source file containing the URLs you want to convert | |
$destFolder = " " # converted PDFs will be saved here. Folder has to exist. Don't forget to make sure that this path must end with "/" | |
$num = 1 | |
foreach ($link in [System.IO.File]::ReadLines($sourceFile)) | |
{ | |
$outfile = $num.ToString() + '.pdf' | |
$outputPath = Join-Path -Path $destFolder -ChildPath $outfile | |
& 'C:\Program Files\Google\Chrome\Application\chrome.exe' --headless --print-to-pdf="$outputPath" "$link" | |
Start-Sleep -Seconds 3 |
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
//this is a function that fires when the webapp receives a GET request | |
function doGet(e) { | |
return HtmlService.createHtmlOutput("request received"); | |
} | |
//this is a function that fires when the webapp receives a POST request | |
function doPost(e) { | |
var params = JSON.stringify(e.postData.contents); | |
params = JSON.parse(params); | |
var myData = JSON.parse(e.postData.contents); |
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
from selenium import webdriver | |
from selenium.common.exceptions import WebDriverException | |
from selenium.webdriver.common.by import By | |
from tqdm import tqdm | |
import time | |
lines = [] | |
Links_File = r'' | |
OP_DIR = r'' | |
i = 1 |
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 requests | |
import csv | |
import concurrent.futures | |
import sys, time | |
import bs4 | |
domain = sys.argv[1] | |
csv_file = sys.argv[2] | |
headers = { |
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
@echo off | |
set "package=%1" | |
adb connect 127.0.0.1:58526 | |
adb install %package% | |
EXIT /B | |
pause |
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/python3 | |
import argparse | |
from amp_tools import TransformHtmlToAmp | |
import codecs | |
arg_parser = argparse.ArgumentParser( description = "Copy source_file as target_file." ) | |
arg_parser.add_argument( "source_file" ) | |
arg_parser.add_argument( "target_file" ) | |
arguments = arg_parser.parse_args() |
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
from bs4 import BeautifulSoup | |
import requests, csv | |
import lxml | |
from requests.structures import CaseInsensitiveDict | |
ads = [] | |
key = input("Enter a keyword/domain/brand: ") | |
headers = CaseInsensitiveDict() | |
headers["authority"] = "www.google.com" |
NewerOlder