Skip to content

Instantly share code, notes, and snippets.

Avatar
Kifflom!

Hans Mayer pfandie

Kifflom!
  • Germany
View GitHub Profile
@pfandie
pfandie / docker_mac.md
Created Sep 22, 2020
get into docker vm on mac
View docker_mac.md

screen $(cat ~/Library/Containers/com.docker.docker/Data/vms/0/tty) or ocker run -it --rm --privileged --pid=host justincormack/nsenter1

@pfandie
pfandie / .gitconfig
Created Aug 25, 2020
gitconfig containing some helpful git commands (like pretty log output)
View .gitconfig
[user]
name = My git Username
email = my_email_address@example.com
[mergetool]
keepBackup = true
[branch]
autosetuprebase = remote
autosetupmerge = true
[advice]
pushNonFastForward = false
@pfandie
pfandie / config
Created Aug 25, 2020
.ssh/config file
View config
ForwardAgent yes
AddKeysToAgent yes
IdentityFile ~/.ssh/MY_PRIVATE_KEY
ForwardX11 yes
ForwardX11Trusted yes
TCPKeepAlive yes
ServerAliveInterval 60
ServerAliveCountMax 2
############## EXTERNAL EXAMPLE (AWS) ##############
@pfandie
pfandie / encrypt_decrypt.txt
Last active Aug 24, 2020
Encrypt and decrypt with kms key with AWS cli (with different profiles)
View encrypt_decrypt.txt
# How to encrypt/decrypt your text secret with AWS KMS in AWS cli
## NOTE: the encrypted string is only a dummy for documentation ;)
KMS_KEY="alias/aws_kms_key"
SECRET_STRING="super_safe_string"
PROFILE="my-aws-profile-to-use"
CIPHERTEXT_BLOB="1235jFCFui9IzEWhXSrkM5IQl6sQsveW3jlyQ/eEVvX0m6XFk8L25mFhMZX7UQeKm0mFFQM93I123456789HSaEd1WnrAL7Qirs7iQ1n2nEUkFn8tcoVZVMgxJq2Qpw2gn6qfv1th0BefRMKJU4uWSHdWYKfz8I63ezlErQF9uIMWVQkxtmhrSKjVfwbCFMP4IGl7SfsNwrH7G+XYaaVY+lBWmEfuCHHTD68GAvK5IGwkGUDEnzd36MkZz9+Eg9HDOdR9kZ2LgJkMeB9vYfDRKfZz+f9qsuwmdFAbVPd/i7v/sc82rH3BzbgGoXpKLvULCAqc1f6ZoMTtjGdpaaPOo3vRBGLvJJxHDHd18IuV+suwE9LUkO3wE1U68VhlGK81aj+snZ1zyBuUn2s7QCUDSSl2xtYXhne9oTtZlLoRwT7h7bCRsdUn7L8pEg6CwnPxIwrhMsTRcvkNNZrP6zXgpO+IbwqTyEO88eeKYulgZfJoDKSdBRe52oV0a3do0w9PXDw1/8eu1nS4IKxyrLzlYMvRVo5HxFT8cg1zIjQfu1vwgKUwB43GtS81DS0n/1234567891bQC8SNNYN1EGFojVRZfF7whkeoXToWqFrBQXRUZJR4ZXssH5/eSaHeEaq6uwPPm/1234567898/CO1jG3DMnzoT2OZgskzaeRaE="
# if not set in config use manual region
#REGION="eu-central-1"