Skip to content

Instantly share code, notes, and snippets.

View pyt0xic's full-sized avatar
🏠
Working from home

Nic Wells pyt0xic

🏠
Working from home
View GitHub Profile
@pyt0xic
pyt0xic / main.go
Last active August 3, 2025 13:15
Start Refrag Retakes Server
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"os"
@pyt0xic
pyt0xic / psql-proxy.sh
Last active March 28, 2025 11:40
This script creates a tunnel to a PostgreSQL database using socat from within a kube pod
#!/usr/bin/env bash
# This script creates a tunnel to a PostgreSQL database using socat from within a kube pod.
# Will download socat binary if not found in the system.
# Configuration variables
REMOTE_HOST="$DB_HOSTNAME"
LOCAL_PORT=5432
REMOTE_PORT=5432
SOCAT_PATH="$(command -v socat || echo '/tmp/socat')"
SOCAT_URL="https://github.com/3ndG4me/socat/releases/download/v1.7.3.3/socatx64.bin"
@pyt0xic
pyt0xic / roadmap.md
Created August 21, 2023 06:28
DevOps/SysAdmin Roadmap

DevOps/SysAdmin Roadmap

What I would learn/have learnt for a DevOps/SysAdmin position.

Containers/Orch

  • Docker (LXC and others are uncommon in prod)
  • Docker-compose (used for swarm)
  • Docker swarm
  • Dockerfile syntax
  • Docker networking (especially overlay networks)
  • Kubernetes (k8s primarly, maybe k3s for small deployments but personally I prefer swarm for this)
C# 16 hrs 22 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 50.7%
i3config 2 hrs 18 mins β–ˆβ–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 7.2%
CSS 2 hrs 7 mins β–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 6.6%
Markdown 1 hr 55 mins β–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 6.0%
FoxPro 1 hr 54 mins β–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 5.9%