Skip to content

Instantly share code, notes, and snippets.

View ergoz's full-sized avatar
😈
let's rock

Sergey Morozov ergoz

😈
let's rock
View GitHub Profile
@ergoz
ergoz / ingress-kube-apiserver.yaml
Created September 11, 2025 23:39 — forked from abdennour/ingress-kube-apiserver.yaml
expose kube-apiserver thru ingress
kind: Ingress
metadata:
name: kubeapi
namespace: default
annotations:
nginx.ingress.kubernetes.io/secure-backends: "true"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
spec:
rules:
- host: "api.devops.example.com"
@ergoz
ergoz / HKPS Pool Setup
Created September 3, 2025 23:22 — forked from MatthewVance/HKPS Pool Setup
Better GnuPG config ( ~/.gnupg/gpg.conf). Optionally set default key at the bottom of the file. Requires hkps.pool.sks-keyservers.net pool to be setup.
# Verify TLS at https://sks-keyservers.net/verify_tls.php
mkdir -p ~/Downloads/gpg/hkps
cd ~/Downloads/gpg/hkps
curl -L https://sks-keyservers.net/sks-keyservers.netCA.pem -O
curl -L https://sks-keyservers.net/sks-keyservers.netCA.pem.asc -O
#import key for HKPS signature
gpg --recv-key 0x0B7F8B60E3EDFAE3
@ergoz
ergoz / gpg-key-migration.md
Created September 3, 2025 17:14 — forked from angela-d/gpg-key-migration.md
Move GPG Keys from One Machine to Another

Migrate GPG Keys from One Workstation to Another

Replace [your key] with your key ID

To obtain your key ID

gpg --list-secret-keys --keyid-format LONG

Which returns something like

@ergoz
ergoz / Service KMS
Last active August 15, 2025 10:53 — forked from judero01col/Service KMS
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
@ergoz
ergoz / gist:2c72b6094e24894bfc4b6242aa926c7e
Created July 15, 2025 19:15 — forked from iamwildtuna/gist:7772b7c84a11bf6e1385f23096a73a15
VPN IP Addresses (IP адреса ChatGPT, Copilot, Meta, Facebook, Instagram, YouTube, Medium, X ex. Twitter, Discord)
Meta (Instagram, Facebook)
// Узлы
157.240.253.174, 157.240.253.172, 157.240.253.167, 157.240.253.63, 157.240.253.32
157.240.252.174, 157.240.252.172, 157.240.252.167, 157.240.252.63, 157.240.252.38
57.144.112.34, 57.144.110.1, 157.240.205.174, 87.245.223.97
// Подсети
213.102.128.0/24
204.15.20.0/22
199.201.0.0/16
@ergoz
ergoz / kubectl-jq-select-not-null.sh
Created June 26, 2025 17:56 — forked from zulhfreelancer/kubectl-jq-select-not-null.sh
kubectl/jq - How to select/filter not `null` objects?
# List all deleted pods
kubectl get pods -o json | jq -r '.items[] | select(.metadata.deletionTimestamp != null)'
@ergoz
ergoz / os.sh
Created June 23, 2025 13:48 — forked from gmolveau/os.sh
Bash/shell script detect/check OS and distribution (+WSL Windows Subsystem for Linux)
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
local DISTRIB=$(awk -F= '/^NAME/{print $2}' /etc/os-release)
if [[ ${DISTRIB} = "Ubuntu"* ]]; then
if uname -a | grep -q '^Linux.*Microsoft'; then
# ubuntu via WSL Windows Subsystem for Linux
else
# native ubuntu
fi
elif [[ ${DISTRIB} = "Debian"* ]]; then
# debian
@ergoz
ergoz / touchid_sudo.sh
Created June 18, 2025 15:24 — forked from RichardBronosky/touchid_sudo.sh
Use TouchID for sudo on modern MacBook Pro machines
#!/bin/bash
# curl -sL https://gist.githubusercontent.com/RichardBronosky/31660eb4b0f0ba5e673b9bc3c9148a70/raw/touchid_sudo.sh | bash
# This script is ready to copy-paste in whole, or just the line above (without the leading #)
# Use TouchID for sudo on modern MacBook Pro machines
# This script adds a single line to the top of the PAM configuration for sudo
# See: https://apple.stackexchange.com/q/259093/41827 for more info.
touchid_sudo(){
@ergoz
ergoz / Creating an AUR Package.md
Created June 11, 2025 15:28 — forked from keilmillerjr/Creating an AUR Package.md
How to create and manage an AUR package. #AUR #ARCH #makepkg #PKGBUILD
@ergoz
ergoz / compose.yml
Created June 9, 2025 00:06 — forked from benuski/compose.yml
changedetection.io and browserless v2 docker compose
version: '3.2'
services:
changedetection:
image: ghcr.io/dgtlmoon/changedetection.io:latest
container_name: changedetection
hostname: changedetection
volumes:
- changedetection-data:/datastore
environment: