Skip to content

Instantly share code, notes, and snippets.

View hudsonbay's full-sized avatar
🩸

Manuel Menendez Alfonso hudsonbay

🩸
View GitHub Profile
@shiryel
shiryel / kubenv.sh
Last active March 15, 2022 21:39
Get all envs from kubernetes container (curated environment vars as export)
if [[ $# -lt 1 ]]; then
echo "Error: Needs at least the name of the pod"
echo "Example: ./kubenv.sh pod-name output-file.env"
exit 1
fi
pod_name=$1
output=${2:-"$1.env"}
# create the envrc from the pod envs
@joseluisq
joseluisq / inotify_arch_linux.md
Last active April 10, 2022 12:08
Increasing the amount of inotify watchers in Arch Linux

Increasing the amount of inotify watchers in Arch Linux

If you are running ArchLinux, run the following command instead (see here for why):

echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system

Then paste it in your terminal and press on enter to run it.