Skip to content

Instantly share code, notes, and snippets.

View kiransubash's full-sized avatar

Kiran Subash kiransubash

View GitHub Profile
@kiransubash
kiransubash / wsl2-reset.md
Created March 15, 2022 05:02
Reset WSL2 networking on windows 10

Open Powershell or Cmd as Administrator and run the following commands

wsl --shutdown
netsh winsock reset
netsh int ip reset all
netsh winhttp reset proxy
ipconfig /flushdns
@kiransubash
kiransubash / ip6tables
Created May 31, 2023 06:16
Allow ICMP Packets IPTABLES
#
# INBOUND ICMPv6
# Commented types are not needed;
# those types that would be allowed for link-local only are commented as well
# because link-local is allowed all traffic.
#
ip6tables -N ICMP6
ip6tables -A ICMP6 -p icmpv6 --icmpv6-type 1 -j ACCEPT # Destination Unreachable
@kiransubash
kiransubash / letsencrypt.md
Last active April 24, 2024 03:50
Letsencrypt Details

What files does Letsencrypt create

KEY
privkey.pem is the "key" file

Sometimes it is improperly named as cert.key or example.com.key.

CRT
fullchain.pem is your "crt" file.
@kiransubash
kiransubash / docker_volume.md
Last active April 24, 2024 03:48
Copy content from a docker volume to host

Copy content from a docker volume to host

docker run --rm -v <volume>:/src -v $(pwd)/<dir>:/dest alpine sh -c 'cp -R /src/* /dest/'

Replace by the volume name &amp; by a directory on the host (from the current location pwd)