This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sends many UDP packets to different target IPs. Tries to overhelm the NAT translation tables of | |
# NAT routers | |
# | |
# Example calls: | |
# Linux with installed Powershell: pwsh udp_nat_dos.ps1 | |
# Windows .\udp_nat_dos.ps1 | |
# | |
# Code adapted from https://www.msxfaq.de/code/powershell/psudp.htm | |
# Original source seems to be: http://pshscripts.blogspot.de/2008/12/send-udpdatagramps1.html | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Merges two CSV files with common attribute set | |
.EXAMPLE | |
./mergeCompareCsv.ps1 ./users1.csv ./users2.csv -outfile merged.csv -Delimiter ';' | |
#> | |
[CmdletBinding()] | |
Param ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## deletes all link files on Desktop and Common Desktop Directories, that link to Program Files. | |
## | |
# Get the desktop folder path | |
$desktopPath = [Environment]::GetFolderPath("Desktop") | |
$desktopPathPublic = [Environment]::GetFolderPath("CommonDesktopDirectory") | |
$ErrorActionPreference = "Stop" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example calls: | |
# ./renamePictures.ps1 | |
# ./renamePictures.ps1 -defaultDescription Holland2022 | |
# ./renamePictures.ps1 -fixedDescription Hallo123 | |
# ./renamePictures.ps1 -folder hallo\. -defaultDescription Holland2022 | |
param( | |
[string]$folder=".", | |
[switch]$simulate, | |
[switch]$removeExistingDates, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(()=>{alert(ytInitialData.metadata.channelMetadataRenderer.rssUrl);})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(() => { | |
const items = document.querySelectorAll('a'); | |
let delay = 0; | |
for (let index = 0; index < items.length; index++) { | |
const item = items[index]; | |
if (item.getAttribute('href') != null && item.getAttribute('href').endsWith('.pdf')){ | |
/* only write last part of link to download element (filename) */ | |
var downloadUri = item.getAttribute('href'); | |
var n = downloadUri.lastIndexOf('/'); | |
var result = downloadUri.substring(n + 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Version 7.0 | |
$ErrorActionPreference = "Stop" | |
########## helper functions ###### | |
function iterateActiveUsers($users){ | |
foreach($user in $users){ | |
$userId = $user.id # 00u4rruv8mIU5CvRz4234 | |
if(!$userId){ | |
# something is wrong. exit. | |
Write-Host "No field 'id' found - exiting." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Okta: Check Uniqeness of employeeNumber | |
#Requires -Version 7.0 | |
$ErrorActionPreference = "Stop" | |
########## helper functions ###### | |
function iterateUsers($users){ | |
$employeeNumberMap = @{} | |
foreach($user in $users){ | |
$userId = $user.id # example: 00u4rruv8mIU5CvRz4234 | |
if(!$userId){ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# examples: | |
# .\REST_GET_to_CSV_ps7.ps1 https://api.github.com/repos/powershell/powershell/issues x x | |
$ErrorActionPreference = "Stop" | |
$url = $Args[0] | |
$headerName = $Args[1] | |
$headerContent = $Args[2] | |
$maxRelLink = $Args[3] | |
$dataname = $Args[4] |
NewerOlder