This file contains hidden or 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
| Retrieves all of the trust relationships for this domain - Does not Grab Forest Trusts | |
| ([System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()).GetAllTrustRelationships() | |
| Grab Forest Trusts. | |
| ([System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()).GetAllTrustRelationships() | |
This file contains hidden or 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 | |
| echo - This scripts automates process of installing Windows Subsystem for Linux (WSL) | |
| REM Due some limitations, this script has to be can't be executed under PowerShell | |
| Get-ChildItem >nul 2>&1 | |
| if %errorLevel% == 0 ( | |
| echo # Swich to CMD | |
| cmd /c start "" %0 | |
| exit 0 | |
| ) |
This file contains hidden or 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 | |
| echo - This scripts automates process of installing Windows Subsystem for Linux (WSL) | |
| REM Due some limitations, this script has to be can't be executed under PowerShell | |
| Get-ChildItem >nul 2>&1 | |
| if %errorLevel% == 0 ( | |
| echo # Swich to CMD | |
| cmd /c start "" %0 | |
| exit 0 | |
| ) |
This file contains hidden or 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
| //Regular Expressions List | |
| //Short Tutorial | |
| \ // the escape character - used to find an instance of a metacharacter like a period, brackets, etc. | |
| . // match any character except newline | |
| x // match any instance of x | |
| ^x // match any character except x | |
| [x] // match any instance of x in the bracketed range - [abxyz] will match any instance of a, b, x, y, or z | |
| | // an OR operator - [x|y] will match an instance of x or y |
This file contains hidden or 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/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz> | |
| # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html | |
| """Various general utility functions.""" | |
| from __future__ import with_statement | |
| from contextlib import contextmanager |
This file contains hidden or 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 urllib.request import urlopen | |
| from urllib.parse import urlparse | |
| from bs4 import BeautifulSoup | |
| import re | |
| import datetime | |
| from furl import furl | |
| import random | |
| import requests | |
| import time |
This file contains hidden or 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 collections import namedtuple | |
| import urllib.parse | |
| import logging | |
| import re | |
| import html | |
| from urllib.parse import urlunsplit, urljoin, urlparse, urlsplit | |
| import tldextract | |
| urljoin=False | |
| LOGGER = logging.getLogger(__name__) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| // XPath CheatSheet | |
| // To test XPath in your Chrome Debugger: $x('/html/body') | |
| // http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
| // 0. XPath Examples. | |
| // More: http://xpath.alephzarro.com/content/cheatsheet.html | |
| Path Expression Expression Result | |
| / html Select the root element catalog.Note: If the path starts with a slash(/ ) it always represents an absolute path | |
| to an element! Your absolute path is the same as your context in this case. |