Skip to content

Instantly share code, notes, and snippets.

View elovelan's full-sized avatar

Eric Loveland elovelan

View GitHub Profile
@AnthonyMastrean
AnthonyMastrean / Invoke-RakeTabExpansion.ps1
Last active March 10, 2022 05:32
PowerShell tab completion for Rake tasks via PowerTab
if(Test-Path Function:Register-TabExpansion) {
Register-TabExpansion -Name 'rake' -Type Command -Handler {
rake -T | %{ $_ -match '(^rake)(?<task>.*)(#.*)' } | %{ $matches['task'] } | %{ $_.Trim() }
}
}
@lukeplausin
lukeplausin / transfer_ssm_file.sh
Last active October 3, 2025 20:56
Transfer a file to EC2 SSM instance without using S3 (SSM only)
# This script will explain how to transfer a file to EC2 using SSM ONLY!
# You will need to have permission to run SSM commands on the target machine and have sudo access as well
# Infos
INSTANCE_ID=i-1234567890
FILE_NAME=the_file.tar.gz
# Step 1: Run command on machine to install netcat and dump from port to filename
# < Start session
@robotdad
robotdad / vs_cpp_winget.md
Last active September 25, 2025 04:37
Installing VS C++ workloads with winget

This is a short outline of how to install the C++ workload with Visual Studio or the build tools using winget.

To find VS releases with winget use search. winget search buildtools

The install command will install the VS installer with the core of the selected product installed. That isn't much. So if you use either of these commands to insll VS or the build tools you will need to launch the VS installer afterwards and select the relevant C++ workloads you need.

winget install Microsoft.VisualStudio.2022.BuildTools

winget install Microsoft.VisualStudio.2022.Community
@omarmciver
omarmciver / new-data-vhdx-wsl2.md
Last active October 1, 2025 06:35
New VHDX attach to WSL2

Creating and Maintaining a VHDX Drive in WSL

This guide explains how to create, mount, and maintain a VHDX drive for use with WSL (Windows Subsystem for Linux).

Prerequisites

  • Windows 10/11 with WSL2 installed
  • Administrative access
  • PowerShell
  • Sufficient disk space