kind create cluster --name k8s-playground --config kind-config.yaml
kind delete cluster --name k8s-playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug test", | |
"type": "node", | |
"request": "launch", | |
"runtimeArgs": [ | |
"--inspect-brk", | |
"${workspaceRoot}/node_modules/.bin/jest", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" == "-h" ]; then | |
echo "Usage: `basename $0` npm_package_dir project_dir" | |
echo "Installs a local NPM package to a local project for test purposes" | |
exit 0 | |
fi | |
PACKAGE_DIR=$1 | |
REPO_DIR=$2 | |
PACKAGE_DIR=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
free_port() { | |
kill -9 $(lsof -t -i:$1) | |
} | |
terminate() { | |
pids_to_kill=$(ps aux|grep $1|grep -v grep|grep -v terminate.sh |awk '{print $2}') | |
[[ ! -z $pids_to_kill ]] && kill -9 $pids_to_kill |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
compress_videos() { | |
for f in "$@"; do compress_video $f; done; | |
} | |
compress_video() { | |
fullname=$1 | |
extension="${fullname##*.}" | |
name_without_extension="${fullname%.*}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Cluster | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
# One control plane node and three "workers". | |
# | |
# While these will not add more real compute capacity and | |
# have limited isolation, this can be useful for testing | |
# rolling updates etc. | |
# | |
# The API-server and other control plane components will be | |
# on the control-plane node. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync -ah --progress source_dir/ dest_dir/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm ~/.config/plasma-org.kde.plasma.desktop-appletsrc | |
killall plasmashell | |
plasmashell & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
local-mongo: | |
image: mongo:5.0.6 | |
restart: always | |
ports: | |
- 27017:27017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mogrify -quality 30 *.JPG | |
img2pdf *.JPG --output book.pdf |
NewerOlder