Skip to content

Instantly share code, notes, and snippets.

View aminmiri's full-sized avatar
🚀

Amin Miri aminmiri

🚀
View GitHub Profile
@aminmiri
aminmiri / Securing_Git_with_SSH_and_FIDO_security_keys.txt
Last active August 27, 2024 21:57
Protect SSH access to your repositories using a security key
# CHNAGE PATH ACCORDING TO YOUR WORKING ENVIRONMENT
# Generate the SSH Key
ssh-keygen -t ed25519-sk -O resident -C "yubico_key_0" -f ~/.ssh/yubico_key_0
vi ~/.ssh/config
Host github.com
HostName github.com
User git
@jossef
jossef / force-delete-k8s-namespace.py
Created August 13, 2020 12:50
force delete k8s namespace
#!/usr/bin/env python3
import atexit
import json
import requests
import subprocess
import sys
namespace = sys.argv[1]
proxy_process = subprocess.Popen(['kubectl', 'proxy'])
atexit.register(proxy_process.kill)