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
# !/bin/bash | |
# Step 1. Install pyenv | |
git clone https://github.com/pyenv/pyenv.git ~/.pyenv | |
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc | |
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc | |
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc | |
source ~/.bashrc |
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
/* | |
* Bulk download of Coursera videos with wget. | |
* | |
* Copyright (c) 2014 Anton Ivanov anton.al.ivanov@gmail.com | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
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 & |
NewerOlder