Skip to content

Instantly share code, notes, and snippets.

@RIKIKU
RIKIKU / UnrealTournament.ini
Created January 3, 2022 22:49
working UT ini file
[URL]
Protocol=unreal
ProtocolDescription=Unreal Protocol
Name=Player
Map=Index.unr
LocalMap=CityIntro.unr
Host=
Portal=
MapExt=unr
SaveExt=usa
@RIKIKU
RIKIKU / UnrealTournament.ini
Created October 13, 2020 11:37
An Unreal Tournament INI file that works on the public master servers.
[URL]
Protocol=unreal
ProtocolDescription=Unreal Protocol
Name=Player
Map=Index.unr
LocalMap=CityIntro.unr
Host=
Portal=
MapExt=unr
SaveExt=usa
@RIKIKU
RIKIKU / CleanWindowsUpdate.ps1
Last active August 31, 2017 00:26
Cleans the Windows Update download directory.
stop-service wuauserv -ErrorAction Stop
Get-ChildItem "$env:windir\SoftwareDistribution" | Remove-Item -Recurse -Force
start-service wuauserv
<#
.Synopsis
Opens a new RDP connection to a specified computer using the given credentials.
.DESCRIPTION
Give this thing an array of computer names and a credential to connect to them on and it will open up an RDP session and log you into all of them.
This is great for when you have a huge list of computers that you need to remote into.
.EXAMPLE
$cred = get-credential
$ListOfComputerNames = "Server1","Server2","Server3"
@RIKIKU
RIKIKU / Add-MAMLHelpParameter.ps1
Last active January 9, 2021 06:55
Add a parameter to a MAML help file.
<#
.Synopsis
Adds a parameter to an existing, fully formatted help file.
.DESCRIPTION
This thing just looks for your cmdlet name, clones the first existing parameter and appends it to the bottom of the list of parameters for your cmdlet.
.EXAMPLE
Add-HelpParameter -Path "C:\We've\all seen a \Filepath\before-Hlep.xml" -CmdletName New-Shiney -ParameterName "TurboShiney" -Position 1 -TyepName "String" -TypeFullName "System.String"
#>
function Add-HelpParameter
{
@RIKIKU
RIKIKU / AzureExpiredCertCleaner.ps1
Created January 30, 2017 03:12
Remove expired SSL certificates
Login-AzureRmAccount -TenantId "InsertTennantIdHere"
Get-AzureRmSubscription -SubscriptionId "InsertSubscriptionIdHere" | Select-AzureRmSubscription
$certificates = Get-AzureRmResource -ExpandProperties | where ResourceType -EQ Microsoft.Web/certificates #This part takes ages to run.
foreach ($certificate in $certificates)
{
if((get-date $certificate.Properties.expirationDate) -le (Get-Date) )
{
Remove-AzureRmResource -ResourceName $certificate.ResourceName -ResourceType $certificate.ResourceType -ResourceGroupName $certificate.ResourceGroupName -Verbose -Confirm:$false -Force
#This is a script to automatically download and create the folders for the residtributables needed to install CRM 2016.
#V1.0.0
do{[int]$bitness = Read-Host "What bitness the installed version of Office e.g. 32,64"}
while(!($bitness -eq 32) -xor ($bitness -eq 64))
Add-Type -AssemblyName System.Windows.Forms
#get the source DIR.
$SourceDIRDLG = New-Object Windows.Forms.FolderBrowserDialog