Skip to content

Instantly share code, notes, and snippets.

Avatar
⚙️
Automating things.......from home!

Luke Leigh BanterBoy

⚙️
Automating things.......from home!
View GitHub Profile
View ohmyposhv3-v2.json
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
View DontTrustProgress.ps1
function Fake-Progress
{
$PSDefaultParameterValues['Write-Progress:Activity']='Making stuff up'
Write-Progress -Status 'Starting out' -PercentComplete 5
10..45|%{
Write-Progress -Status 'Doing stuff' -PercentComplete $_
Start-Sleep -Milliseconds 100
}
@BanterBoy
BanterBoy / Get-PatchTue.ps1
Created Jun 10, 2020
PowerShell function to show you when the next patch Tuesday will occur. You can also specify month/year to find historical or future dates.
View Get-PatchTue.ps1
function Get-PatchTue {
<#
.SYNOPSIS
Get the Patch Tuesday of a month
.PARAMETER month
The month to check
.PARAMETER year
The year to check
.EXAMPLE
Get-PatchTue -month 6 -year 2015
@jhaddix
jhaddix / all.txt
Created Jan 19, 2019 — forked from orangetw/all.txt
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
View all.txt
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎
View download_sysinternals.ps1
#!/usr/bin/env powershell
$ErrorActionPreference = "Stop" # Fail fast!
# Import-Module BitsTransfer
# Start-BitsTransfer -Source https://download.sysinternals.com/files/SysinternalsSuite.zip
# Start-BitsTransfer -Source https://download.sysinternals.com/files/SysinternalsSuite-Nano.zip
# powershell.exe -ExecutionPolicy ByPass -File .\download_sysinternals.ps1
@jdhitsolutions
jdhitsolutions / Find-Cimclass.ps1
Last active Sep 25, 2018
A PowerShell function to search WMI for a specfic class using the CIM cmdlets.
View Find-Cimclass.ps1
#requires -version 4.0
#search WMI for a class
Function Find-CimClass {
[CmdletBinding()]
[OutputType([Microsoft.Management.Infrastructure.CimClass])]
Param(
[Parameter(Position = 0, Mandatory, HelpMessage = "Enter the name of a CIM/WMI class. Wildcards are permitted.")]
[ValidateNotNullOrEmpty()]
View safari-reaper.html
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
body {
background: repeat url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/7QCIUGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAGscAVoAAxslRxwCAAACAAAcAnQAV8KpIENoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbGQgLSBodHRwOi8vd3d3LnJlZGJ1YmJsZS5jb20vcGVvcGxlL0NoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQzYxOTY2LTIuMQAAAAAAAA
@meoso
meoso / Example.com-Password-Expiration-Notifications.ps1
Last active Jul 1, 2022
PowerShell Active Directory Password Expiration Email Notification
View Example.com-Password-Expiration-Notifications.ps1
#################################################################################################################
#
# Password-Expiration-Notifications v20210428
# Highly Modified fork. https://gist.github.com/meoso/3488ef8e9c77d2beccfd921f991faa64
#
# Originally from v1.4 @ https://gallery.technet.microsoft.com/Password-Expiry-Email-177c3e27
# Robert Pearman (WSSMB MVP)
# TitleRequired.com
# Script to Automated Email Reminders when Users Passwords due to Expire.
#
@biinari
biinari / extract-123-reg-zonefile.js
Last active Jul 1, 2021
Script to extract the DNS entries from 123-reg advanced dns page
View extract-123-reg-zonefile.js
// Moved to a new home at https://github.com/biinari/zonefile-extract/tree/master/123-reg
@shmup
shmup / torrents.md
Last active Jun 22, 2022
transmission blocklist guide
View torrents.md

Transmission Blocklist

The Transmission torrent client has an option to set a Blocklist, which helps protect you from getting caught and having the DMCA send a letter/email.

It's as simple as downloading and installing the latest client: