Skip to content

Instantly share code, notes, and snippets.

View mr-craps's full-sized avatar

Tom Pachinger mr-craps

  • crapster-net
  • Ingolstadt, DE
View GitHub Profile
<#
.SYNOPSIS
This script performs the installation or uninstallation of an application(s).
.DESCRIPTION
The script is provided as a template to perform an install or uninstall of an application(s).
The script either performs an "Install" deployment type or an "Uninstall" deployment type.
The install deployment type is broken down into 3 main sections/phases: Pre-Install, Install, and Post-Install.
The script dot-sources the AppDeployToolkitMain.ps1 script which contains the logic and functions required to install or uninstall an application.
.PARAMETER DeploymentType
The type of deployment to perform. Default is: Install.
@mr-craps
mr-craps / reserved_addresses.md
Created December 6, 2021 02:08 — forked from dwallraff/reserved_addresses.md
Tables of Reserved IP Addresses (blatantly stolen from https://en.wikipedia.org/wiki/Reserved_IP_addresses)

IPv4 Reserved IP Addresses

Address block (CIDR) Range Number of Addresses Purpose
0.0.0.0/8 0.0.0.0 – 0.255.255.255 16,777,216 Used for broadcast messages to the current ("this").
10.0.0.0/8 10.0.0.0 – 10.255.255.255 16,777,216 Used for local communications within a private network.
100.64.0.0/10 100.64.0.0 – 100.127.255.255 4,194,304 Used for communications between a service provider and its subscribers when using a carrier-grade NAT.
127.0.0.0/8 127.0.0.0 – 127.255.255.255 16,777,216 Used for loopback addresses to the local host.
169.254.0.0/16 169.254.0.0 – 169.254.255.255 65,536 Used for link-local addresses between two hosts on a single link when no IP address is otherwise specified, such as would have normally been retrieved from a DHCP server.
172.16.0.0/12 172.16.0.0 – 172.31.255.255 1,048,576 Used for local communications within a private network.
@mr-craps
mr-craps / ipxe_build.md
Created October 9, 2021 18:22 — forked from rikka0w0/ipxe_build.md
Build IPXE

1. Install tools and config IPXE

# Install compiler and dependencies
sudo apt-get install -y git gcc make liblzma-dev

# Grab the source code
git clone https://github.com/ipxe/ipxe.git
cd ipxe/src

# Enable NFS support
@mr-craps
mr-craps / .. MediaCreationTool.bat ..md
Created October 9, 2021 05:58 — forked from AveYo/.. MediaCreationTool.bat ..md
Universal MediaCreationTool wrapper for all MCT Windows 10 versions from 1507 to 21H1 with business (Enterprise) edition support

Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
Preview
A powerful yet simple windows 10 / 11 deployment automation tool as well!

configure via set vars, commandline parameters or rename script like iso 21H2 Pro MediaCreationTool.bat
recommended windows setup options with the least amount of issues on upgrades already set
awesome keyboard focus dialogs to pick windows version and enhanced preset action

Auto Setup for upgrading directly with the auto-detected Edition, Language, Architecture *
- can troubleshoot auto setup failing by adding no_update to script name

@mr-craps
mr-craps / windows_hardening.cmd
Created October 1, 2021 00:40 — forked from ricardojba/windows_hardening.cmd
A Windows hardening script
::##########################################################################################################################
::
:: This script can ruin your day, if you run it without fully understanding what it does, you don't know what you are doing,
::
:: OR BOTH!!!
::
:: YOU HAVE BEEN WARNED!!!!!!!!!!
::
:: This script is provided "AS IS" with no warranties, and confers no rights.
:: Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section,
@mr-craps
mr-craps / Get-RemoteSSLCertificate.ps1
Created October 1, 2021 00:34 — forked from jstangroome/Get-RemoteSSLCertificate.ps1
PowerShell script to retrieve the public X509 certificate from a remote TLS endpoint
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[string]
$ComputerName,
[int]
$Port = 443
)
@mr-craps
mr-craps / ip_firewall_filter.rsc
Created September 8, 2021 07:42 — forked from SmartFinn/ip_firewall_filter.rsc
MikroTik (RouterOS) Zone-Based Firewall Example
# jan/29/2018 22: 4:17 by RouterOS 6.41
#
/interface list
add name=public comment="public network"
add name=local comment="local network"
add name=guest comment="guest network"
# Change the interfaces below to your own
/interface list member
add list=public interface=ether1
@mr-craps
mr-craps / ip_firewall_filter.rsc
Created September 8, 2021 07:42 — forked from SmartFinn/ip_firewall_filter.rsc
MikroTik (RouterOS) Zone-Based Firewall Example
# jan/29/2018 22: 4:17 by RouterOS 6.41
#
/interface list
add name=public comment="public network"
add name=local comment="local network"
add name=guest comment="guest network"
# Change the interfaces below to your own
/interface list member
add list=public interface=ether1
@mr-craps
mr-craps / gpg cheat sheet.md
Created August 8, 2021 18:46 — forked from SansGuidon/gpg cheat sheet.md
GPG Cheat Sheet

Basics

generate key in batch mode using a custom profile

gpg --gen-key --batch gpgspecs

create a file with your fingerprint info and display the related information. A fingerprint is used as a robust key identifier

gpg --fingerprint

Best practices

abandoned
able
absolute
adorable
adventurous
academic
acceptable
acclaimed
accomplished
accurate