Skip to content

Instantly share code, notes, and snippets.

View skillaug's full-sized avatar
💭
Improving Alchemist Restful API (nvmcommunity/alchemist-restful-api)

Luu Thanh Sang skillaug

💭
Improving Alchemist Restful API (nvmcommunity/alchemist-restful-api)
View GitHub Profile
@skillaug
skillaug / kcdo
Created February 17, 2022 09:20 — forked from mnadel/kcdo
Exec Across (Some, All) Pods in Kubernetes
#!/usr/bin/env bash
PROGNAME=$(basename $0)
function usage {
echo "usage: $PROGNAME [-n NAMESPACE] [-m MAX-PODS] -s SERVICE -- COMMAND"
echo " -s SERVICE K8s service, i.e. a pod selector (required)"
echo " COMMAND Command to execute on the pods"
echo " -n NAMESPACE K8s namespace (optional)"
echo " -m MAX-PODS Max number of pods to run on (optional; default=all)"
@skillaug
skillaug / docker-cleanup-unused-resources.md
Last active December 12, 2020 10:26 — forked from bastman/docker-cleanup-resources.md
Docker Stack - cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes [https://github.com/chadoe/docker-cleanup-volumes]

$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm

delete networks

@skillaug
skillaug / xampp-php-xdebug.md
Last active December 12, 2020 10:39 — forked from odan/xampp_php7_xdebug.md
PHP Stack - Installing Xdebug for XAMPP

Installing Xdebug for XAMPP with PHP 7.x

Requirements

Setup