Skip to content

Instantly share code, notes, and snippets.

View kortheof's full-sized avatar

Fanis Korlos kortheof

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
@knatsakis
knatsakis / .vimrc
Last active September 29, 2019 19:59
vimscript: Highlight trailing whitespace and overlength lines
highlight Trailing ctermbg = DarkRed " Used when no colorscheme is set
highlight Overlength ctermfg = Yellow " Used when no colorscheme is set
augroup colorScheme " Used when switching colorschemes
autocmd! " Added so that ~/.vimrc can be re-sourced multiple times
autocmd ColorScheme * highlight Trailing ctermbg = DarkRed
autocmd ColorScheme * highlight Overlength ctermfg = Yellow
augroup END
let g:highlightsExcludeFileTypes = [] " File types where no highlighting should occur (e.g.: ['deb'])