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
# Source: https://gist.github.com/da48772c54dcf09a45bef5d4d778a6e9

###################################
# Using Docker Multi-Stage Builds #
# https://youtu.be/zpkqNPwEzac    #
###################################

# Referenced videos:
# - Kaniko - Building Container Images In Kubernetes Without Docker: https://youtu.be/EgwVQN6GNJg

Ubuntu Hyper-V VM Enhanced Session

Summary

The Hyper-V Enhanced Session increases performance of the VM GUI and adds multimedia capabilities which improves the end user experience of Linux running on Hyper-V.

Installation and Enhanced session

Follow steps on the post below:

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

GeoIP

Summary

A curl command which returns a JSON object with IP WHOIS data from the ip-api.com database. Useful for investigating IPv4 addresses.

curl -s "http://ip-api.com/json/<IPv4>" | jq
@yousecjoe
yousecjoe / how-to-setup-ssh-agent.md
Last active June 18, 2024 05:00
How To setup ssh-agent

How To: Setup SSH Agents

Summary

If you connect to many different environments for management and development using SSH, an SSH agent configuration reduces friction.

An SSH (Secure Shell) Agent is a background program that uses key-based authentication to establish secure connections with remote servers without the need for re-entering passwords each time. It stores private keys in memory, allowing multiple sessions to connect using those keys directly from the agent, thus improving efficiency and security when managing SSH connections.

How To

@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: