Skip to content

Instantly share code, notes, and snippets.

View gbajson-area22's full-sized avatar

Grzegorz Bajson gbajson-area22

  • Cracow
  • 14:22 (UTC +02:00)
View GitHub Profile
@lukeplausin
lukeplausin / transfer_ssm_file.sh
Last active May 6, 2025 05:58
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
@benkehoe
benkehoe / py-args-for-bash.sh
Last active September 4, 2024 20:29
Python argument parsing for bash scripts
#!/bin/sh
# MIT No Attribution
#
# Copyright 2020 Ben Kehoe
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify,
# merge, publish, distribute, sublicense, and/or sell copies of the Software, and to