Skip to content

Instantly share code, notes, and snippets.

View NPetersenDK's full-sized avatar

Nikolaj Petersen NPetersenDK

View GitHub Profile
@NPetersenDK
NPetersenDK / Find-InactiveChannels.ps1
Created January 22, 2023 03:32
TeamSpeak Channel Inactivity finder
<#
.SYNOPSIS
Finds inactive Channels on TeamSpeak 3 Server using the Server Query API.
.DESCRIPTION
Finiding all inactive channels using the "seconds_empty" in the Channel info from the API.
You need to be on 3.12 or higher on your TeamSpeak server, and have an API key.
Change $TSAPIKEY and $Server to your info.
"Console Sample v.1"
{
// GSI Documentation: https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Game_State_Integration
"uri" "http://IP"
"timeout" "0.1"
"buffer" "0.1"
"throttle" "0.5"
"heartbeat" "60.0"
"auth"
{
<#
.Author
Nikolaj Petersen
.Description
A small script to detect for motion on Hue Sensors.
If motion is detected we will:
- Write to a CSV file
@NPetersenDK
NPetersenDK / CSGO-AutoUpdater.ps1
Last active January 15, 2019 22:39
A PowerShell SteamCMD autoupdater for CS:GO
<#
.Author
____ _____ _____ _____ ____ ____ _____ _ _
| _ \| ____|_ _| ____| _ \/ ___|| ____| \ | |
| |_) | _| | | | _| | |_) \___ \| _| | \| |
| __/| |___ | | | |___| _ < ___) | |___| |\ |
|_| |_____| |_| |_____|_| \_|____/|_____|_| \_|
Nikolaj Petersen / NPetersenDK
@NPetersenDK
NPetersenDK / CSGO-Server-Creator.ps1
Created December 30, 2018 03:14
CSGO Server Creator for PowerShell
<#
.Author
____ _____ _____ _____ ____ ____ _____ _ _
| _ \| ____|_ _| ____| _ \/ ___|| ____| \ | |
| |_) | _| | | | _| | |_) \___ \| _| | \| |
| __/| |___ | | | |___| _ < ___) | |___| |\ |
|_| |_____| |_| |_____|_| \_|____/|_____|_| \_|
Nikolaj Petersen / NPetersenDK
@NPetersenDK
NPetersenDK / IsoToMKV.ps1
Last active May 31, 2019 22:53
Getting rid of the old and beloved method to rip movies in: ISO, with this script you can convert all files in a directory to MKV. Make sure you have: MakeMKV 32-Bit version and it is activated.
<#
.Author
Nikolaj Petersen
https://nipetersen.dk
github@nipetersen.dk
gist.github.com/NPetersenDK
.Changelog
<#
____ _____ _____ _____ ____ ____ _____ _ _
| _ \| ____|_ _| ____| _ \/ ___|| ____| \ | |
| |_) | _| | | | _| | |_) \___ \| _| | \| |
| __/| |___ | | | |___| _ < ___) | |___| |\ |
|_| |_____| |_| |_____|_| \_|____/|_____|_| \_|
.Author
Nikolaj Petersen
n@nipetersen.dk
@NPetersenDK
NPetersenDK / Get-NetworkInfo-STARTJOB.ps1
Last active July 15, 2016 11:19
Get network information from a user and send it with Outlook. This time I have tried with Start-Job
<#
.Info:
Network troubleshooting for your clients :)
.Author
Nikolaj Petersen - n@nipetersen.dk - https://nipetersen.dk
.Other?
We are using your Outlook to send the mail - the default address will be the sender
Change the $recipient and $subject to what you would want it to be
<#
.Info:
Network troubleshooting for your clients :)
.Author
Nikolaj Petersen - n@nipetersen.dk - https://nipetersen.dk
.Other?
We are using your Outlook to send the mail - the default address will be the sender
Change the $recipient and $subject to what you would want it to be
<#
.Info:
Network troubleshooting for your clients :)
.Author
Nikolaj Petersen - n@nipetersen.dk - https://nipetersen.dk
.Other?
We are using your Outlook to send the mail - the default address will be the sender