Skip to content

Instantly share code, notes, and snippets.

https://stackoverflow.com/questions/2517190/how-do-i-force-git-to-use-lf-instead-of-crlf-under-windows#comment2513978_2517190
git config --global core.autocrlf false
git config --global core.eol lf
https://github.com/rancher/k3s/issues/24
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 1 -i cni0 -s 10.42.0.0/16 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter FORWARD 1 -s 10.42.0.0/15 -j ACCEPT
firewall-cmd --reload
https://github.com/coredns/coredns/issues/2693
update-alternatives --set iptables /usr/sbin/iptables-legacy
@gfever
gfever / usefull
Last active April 29, 2020 11:20
https://www.tecmint.com/install-upgrade-kernel-version-in-centos-7/
https://ma.ttias.be/centos-7-networkmanager-keeps-overwriting-etcresolv-conf/
https://forums.docker.com/t/some-way-to-clean-up-identify-contents-of-var-lib-docker-overlay/30604/26
docker system prune --all --volumes --force
fs.inotify.max_user_watches = 1048576
https://serverfault.com/questions/984066/too-many-open-files-centos7-already-tried-setting-higher-limits
docker run docker/compose:1.24.0 version
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$PWD:$PWD" \
-w="$PWD" \
docker/compose:1.24.0 up
echo alias docker-compose="'"'docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \