This section is a collection of snippets that I have collected over time!
Exchange online - Add an email alias through Active Directory Azure AD Connect
How to add email aliases to Exchange Online when syncing through Azure AD connect.
DataFlex - Clear a data dictionary but keep its parents
Clear a datadiction but keep its parents so you can easily create a collection of child records that all have the same parents.
PostgreSQL - A collection of useful snippets
A collection of useful PostgreSQL queries and scripts
AWS - Make all objects in S3 bucket public
Make all objects in a S3 bucket public
Powershell - A simple script to send emails through a remote SMTP server
A simple Powershell script to connect to a SMTP server and send an email
Git - Some useful snippets
A collection of random Git snippets when consulting on multiple repos
WordPress - Some useful snippets
A collection of random Git snippets when consulting on multiple repos
Windows Subsystem for Linux - How to compact an overgrown disk
Overtime a WSL2 partition may grow and not be reclaimed. The following will fix that.
C# - Communicating with Ruby on Rails using signed cookies
When making a C# program that talks to an existing Ruby on Rails program, the following is helpful for working with signed cookies.
Ruby - Creating a basic Rack server
Sometimes it’s just easier to create a base RACK app so you can handle basic requests so you can write some Ruby and make a simple API.
C# - Choosing a GC mode
When deploying your C# app you have a whole two choices for your Garbage collector settings. If you need to use lower memory, use workstation and for higher throughput use server.
.NET Core - Standard Dockerfile for ASP Core
This is a standard Dockerfile for ASP.NET Core applications
APT - This must be accepted explicitly before updates for this repository can be applied
When doing apt-get update on an older distribution it may error saying: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Linux - Set up and create a SWAP partition.
This will set up a SWAP partition on an existing linux machine.
Linux - Secure delete files
Use these commands for multiple ways to securely delete files on Linux
WSL2 and SSH Keys between sessions
Keep your SSH keys easy to use when switching from Linux to WSL2.
Create a scheduled task from Powershell
How to create a scheduled task in Windows Task Manager using Powershell
WSL2 - Working with Vim
How to keep using Vim in WSL2