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 November 19, 2024 02:40
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