Skip to content

Instantly share code, notes, and snippets.

@lohvht
lohvht / transfer_ssm_file.sh
Created March 15, 2024 08:18 — forked from lukeplausin/transfer_ssm_file.sh
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
@lohvht
lohvht / .zshrc
Last active May 26, 2021 15:16
ZSH and terminal setup for unix-like systems
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
DEFAULT_USER=`whoami`
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
@lohvht
lohvht / steps.md
Created March 4, 2021 17:15
PowerShell Self-Signing Powershell Script Steps

Credits from: https://www.tenforums.com/general-support/107659-how-sign-powershell-profile-w-self-signed-certificate-2.html#post1341612 Attempted and suceeded at 5 March 2021

POWERSHELL ONLY SOLUTION

The following is a powershell-only solution which will not require the installation of extra software/tools/features (at least on Windows 10):

Open up a Powershell window with Admin privileges and run the following to create the self-signed certificate and save it to the PS variable of your choice.

Below, the naming distinction mycert is used. I recommend that or just copy/paste the code.