Skip to content

Instantly share code, notes, and snippets.

View yousecjoe's full-sized avatar
😺
I may be slow to respond.

Joseph Young yousecjoe

😺
I may be slow to respond.
View GitHub Profile
@yousecjoe
yousecjoe / how-to-setup-ssh-agent.md
Last active November 12, 2023 18:54
How To setup ssh-agent

I manage many different environments for my clients and most of them have a Bastion host which I must connect through in order to access sensitive services (ie. web servers, database servers, etc)

A traditional way for me to configure this access is to use the command ssh-add -K ~/path/to/my/identity/file then using the commandssh -A user@server.com

The problem is every time I reboot my mac, the agent is cleared and I have to look up and go through all of those steps again.

I’m LAZYYYYY I don’t want to keep doing this

So, I’ve outlined a few steps to remove the extra setup

@yousecjoe
yousecjoe / build_and_push_docker_hub.yaml
Created September 12, 2023 20:34 — forked from nbeck415/build_and_push_docker_hub.yaml
This GitHub Actions workflow builds a Docker image and pushes it a container registry every time someone commits to main.
name: Build and push to Docker Hub
on:
push:
branches:
- main
jobs:
push_to_docker_hub:
runs-on: ubuntu-latest
steps: