Skip to content

Instantly share code, notes, and snippets.

@jbratu
jbratu / setupiisforsslperfectforwardsecrecy_v17.ps1
Last active February 11, 2026 10:32
Great powershell script for tightening HTTPS security on IIS and disabling insecure protocols and ciphers. Very useful on core installations.
# Copyright 2019, Alexander Hass
# https://www.hass.de/content/setup-microsoft-windows-or-iis-ssl-perfect-forward-secrecy-and-tls-12
#
# After running this script the computer only supports:
# - TLS 1.2
#
# Version 3.0.1, see CHANGELOG.txt for changes.
Write-Host 'Configuring IIS with SSL/TLS Deployment Best Practices...'
Write-Host '--------------------------------------------------------------------------------'
@Stephanevg
Stephanevg / createRandomFiles.ps1
Last active October 3, 2022 17:30
This function will create random files. It allows you to select the total size all the files together must have, and the number of individual files to create in total. (for example, A total of 5GB in 100 different files). The main advantage of this function is that it will create files with human understandeble names (and if your lucky, funny na…
Function Create-RandomFiles{
<#
.SYNOPSIS
Generates a number of dumb files for a specific size.
.DESCRIPTION
Generates a defined number of files until reaching a maximum size.
.PARAMETER Totalsize
Specify the total size you would all the files combined should use on the harddrive.
@soheilpro
soheilpro / example.sh
Last active July 17, 2025 23:50
Easy IIS log file format specification for goaccess.
goaccess -f u_ex150629.log --log-format "$(cat u_ex150629.log | ./goiisformat.sh)" --date-format '%Y-%m-%d' --time-format '%H:%M:%S'