Skip to content

Instantly share code, notes, and snippets.

Flynn Bundy bundyfx

Block or report user

Report or block bundyfx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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
View Get-ADobjectInfo.ps1
Return basic details on AD objects
Get-ADObjectInfo -Computers
Get-ADObjectInfo -Users | Format-Table -Autosize
Get-ADObjectInfo -Users | Export-Csv -Path C:\Users.csv -nti
View FoxDeployChallenge
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) }
View gist:c85e08f0b221a88d0c55
#0o0o0o0o0 git content
$ContentPaths = 'C:\Lab\Git\Prod','C:\Lab\Git\Test','C:\Lab\Git\Dev'
git clone $ContentPaths[0] --quiet
git clone $ContentPaths[1] --quiet
git clone $ContentPaths[2] --quiet
ii C:\Lab\Git
View gist:f9c20fd2984ef2501a4a
#Starting Section
$reader=(New-Object System.Xml.XmlNodeReader $xaml)
Title="DSC Control Center" Height="491.015" Width="1102.416" ResizeMode="NoResize">
<TextBox Name="Computer" HorizontalAlignment="Left" Height="23" Margin="81,9,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="170"/>
<Label Name="label" Content="Computer:" HorizontalAlignment="Left" Margin="10,6,0,0" VerticalAlignment="Top" Width="66"/>
bundyfx / Jan2016-ScriptingGames
Last active Jan 3, 2016
Jan 2016 Scripting Games
View Jan2016-ScriptingGames
Get the Up time (Last boot time) of target machines.
Get-Uptime -Computername DC1,NLB1,NLB2
$Collection | Gup
$Collection | Get-Uptime | Export-CSV C:\Temp\UpTime.csv -nti
bundyfx / DecemberScriptingGames.ps1
Created Dec 9, 2015
December Scripting Games Puzzle !!
View DecemberScriptingGames.ps1
$list = @"
1 Partridge in a pear tree
2 Turtle Doves
3 French Hens
4 Calling Birds
5 Golden Rings
6 Geese a laying
7 Swans a swimming
8 Maids a milking
9 Ladies dancing
View November-ScriptingGames-2015
0..(($VMNameStr -split ",").GetLength(0) -1) | % {Set-Variable "VMName$Psitem" -Value ($VMNameStr -split ',')[$Psitem] -PassThru }
#The VMNameStr param is intended to be taken as a single string rather than the conventional array of strings ([String[]]).
#Take values from param, split those and turn it in a range, Foreach of those create a new variable based on the number coming across the pipeline.
#The value of those variables will be the original array split calling the position index of the current item in the pipeline (Passthru to display this on the screen).
bundyfx / NBA_RSS_October_2015
Created Oct 11, 2015
October 2015 Scripting Games (NBA RSS)
View NBA_RSS_October_2015
#Requires -Version 3.0
Get the latest updates on your favourite NBA teams!
Get-RSSFeed -Team Lakers
Get-RSSFeed Spurs
Why not combine two of my favourite things! PowerShell/NBA
You can’t perform that action at this time.