Skip to content

Instantly share code, notes, and snippets.

View cin-eren's full-sized avatar

Luc Giang cin-eren

View GitHub Profile
@jwhb
jwhb / docker-volume-size.sh
Created February 3, 2024 11:15
Sort Docker volumes by size
#!/bin/sh
docker system df -v --format json | jq -r '.Volumes[] | [.Size,.Name] | @tsv' | sort -h
@jabbany
jabbany / main.md
Last active February 25, 2025 00:45
Setting up podman + nvidia on F37 - F40 (Self notes)

Follow the following instructions:

  1. Install the C compiler through sudo dnf group install "C Development Tools and Libraries"
  2. Install the kernel headers sudo dnf install kernel-devel
  3. Download the latest drivers (replace with URL from nvidia website)
    wget https://us.download.nvidia.com/XFree86/Linux-x86_64/550.54.14/NVIDIA-Linux-x86_64-550.54.14.run
    chmod a+x NVIDIA-Linux-x86_64-550.54.14.run
    sudo ./NVIDIA-Linux-x86_64-550.54.14.run
    
brew tap homebrew/cask-fonts
brew install --cask font-cascadia-code
brew install --cask font-cascadia-code-pl
brew install --cask font-cascadia-mono
brew install --cask font-cascadia-mono-pl
@ruanbekker
ruanbekker / promtail_docker_logs.md
Last active May 5, 2025 22:54
Docker Container Logging using Promtail
@dcasati
dcasati / export-kubeconfig-from-aks
Created February 6, 2018 15:30
Export KUBECONFIG from AKS
az aks get-credentials --resource-group k8s-demo-ss --name k8s-demo-cluster-ss --file kubeconfig-ss
@ungoldman
ungoldman / curl_post_json.md
Last active April 28, 2025 09:21
post a JSON file with curl

How do you POST a JSON file with curl??

You can post a json file with curl like so:

curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION

so for example: