DISM.exe /Online /Get-TargetEditions
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
| const IMAGES_NUM = 250 | |
| let imgSrcs = new Set() | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| function appendImages() { | |
| var imgs = document.getElementsByTagName("img") |
| /** | |
| * Given some Javascript object, the function will have the browser download it as a | |
| * json file (exactly like if it was downloaded from some server). | |
| * The content of the file downloaded by the browser would be the "data" object input. | |
| * One could also pass a name for the file to be downloaded to the function. | |
| * References: | |
| * - https://www.freecodecamp.org/news/how-to-use-the-browser-console-to-scrape-and-save-data-in-a-file-with-javascript-b40f4ded87ef/ | |
| * - https://github.com/edubey/browser-console-crawl/blob/master/single-story.js | |
| * @date 2021-06-18 | |
| * @param {object} data |
| public static void Scrape() | |
| { | |
| var scraper = new HtmlWeb(); | |
| var page = scraper.Load("https://vainolo.z14.web.core.windows.net/WebScraping.html"); | |
| var nodes = page.DocumentNode.Descendants().SkipWhile(e => e.Id != "Techniques").Skip(1).TakeWhile(e => e.Name != "h2"); | |
| foreach (var currNode in nodes) | |
| { | |
| if(currNode.GetClasses().Contains("mw-headline")) | |
| { |
DISM.exe /Online /Get-TargetEditions
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
| // Create an interval which will keep scrolling downwards | |
| const interval = setInterval(() => { | |
| window.scrollTo(0, document.body.scrollHeight) | |
| }, 250) | |
| // If there are no more items, you can call `clearInterval(interval)` to stop scrolling | |
| // Now copy the below code to scrape data and download a file containing the data | |
| ;(() => { | |
| // Define a function to scrape elements we want |
| (Linkedin = { | |
| release: '1.0.5 stable', | |
| data: {}, | |
| config: { | |
| autoStart: true, | |
| inspectorSpeed: 5000, | |
| sendSpeed: 4000, | |
| pagerSpeed: 10000, | |
| scrollDownAuto: 600, | |
| debug: true, |
| /* | |
| INSTRUCTIONS | |
| 1. Open this file in notepad or something similar | |
| 2. Paste your list of names where it says replace names | |
| 3. Go to linkedin and line up a people search for your city | |
| 4. In google chrome. In Windows and Linux hit: Ctrl + Shift + J. On Mac hit: Cmd + Option + J. | |
| 5. Copy paste this whole script in to the console and hit enter | |
| 6. leave the window active while it collects results | |
| 7. You should get a tab seperated CSV that you can open in Excel |
| //* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - */ | |
| //* */ | |
| //* Filename: gist.2d = dataCapture.js */ | |
| //* */ | |
| //* Copyright (c) 2018-2019 Otto Grajeda. All rights reserved. */ | |
| //* Contact info: ottograjeda@gmail.com. See additional disclaimers below. */ | |
| //* */ | |
| //* NOTE 1: Portions of code (mainly API methods) are copyrighted by Google LLC. */ | |
| //* NOTE 2: Code is NOT Open Source or Production Ready. It is working sample code. */ | |
| //* NOTE 3: For support or code questions search keywords @ Google or Stack Overflow. */ |
| using System; | |
| using System.Net.Http; | |
| using System.Threading.Tasks; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| WriteLine("A: Main"); | |
| var googleTask = CallGoogleAsync(); |
| /** | |
| Why?: | |
| This script is useful for following a large list of accounts straight from your browser. | |
| There are many reasons to use this... Maybe you want to follow everyone in a community but you | |
| can't be bothered to click on all those buttons... Maybe you want to follow all these accounts | |
| in the hopes that they'll follow you back, giving you lots of free followers for doing nothing | |
| How: | |
| 1. Navigate to a twitter page with multiple [Follow] buttons visible... | |
| - Scrolling to the bottom of a page may list more... Do this for maximum efficiency |