Skip to content

Instantly share code, notes, and snippets.

View bundyfx's full-sized avatar

Flynn Bundy bundyfx

View GitHub Profile
Measure-Command { Write-Output (((Select-String -Path (Get-ChildItem C:\FoxDeploy -Recurse -Filter *.pgn) -Pattern '^\[Result\s"\d.*' -AllMatches).Matches.Value ) | Group-Object -NoElement | Format-Table -AutoSize) }
<#
.Synopsis
Return basic details on AD objects
.EXAMPLE
Get-ADObjectInfo -Computers
.EXAMPLE
Get-ADObjectInfo -Users | Format-Table -Autosize
.EXAMPLE
Get-ADObjectInfo -Users | Export-Csv -Path C:\Users.csv -nti
#>
import requests
import re
import pandas as pd
import csv
from random import choice
from bs4 import BeautifulSoup
from datetime import datetime
from time import mktime