Skip to content

Instantly share code, notes, and snippets.

@Nerevarishe
Nerevarishe / delete_git_submodule.md
Created August 2, 2020 15:46 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
Chain INPUT (policy DROP 1979 packets, 107K bytes)
pkts bytes target prot opt in out source destination
623M 37G ufw-before-logging-input all -- * * 0.0.0.0/0 0.0.0.0/0
623M 37G ufw-before-input all -- * * 0.0.0.0/0 0.0.0.0/0
147K 9637K ufw-after-input all -- * * 0.0.0.0/0 0.0.0.0/0
129K 7191K ufw-after-logging-input all -- * * 0.0.0.0/0 0.0.0.0/0
129K 7191K ufw-reject-input all -- * * 0.0.0.0/0 0.0.0.0/0
129K 7191K ufw-track-input all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 864 packets, 62762 bytes)
connections {
roadwarrior {
version=2
proposals=aes128-sha1-modp1024,aes128-sha1-modp1536,aes128-sha1-modp2048,aes128-sha256-ecp256,aes128-sha256-modp1024,aes128-sha256-modp1536,aes128-sha256-modp2048,aes256-aes128-sha256-sha1-modp2048-modp4096-modp1024,aes256-sha1-modp1024,aes256-sha256-modp1024,aes256-sha256-modp1536,aes256-sha256-modp2048,aes256-sha256-modp4096,aes256-sha384-ecp384,aes256-sha384-modp1024,aes256-sha384-modp1536,aes256-sha384-modp2048,aes256-sha384-modp4096,aes256gcm16-aes256gcm12-aes128gcm16-aes128gcm12-sha256-sha1-modp2048-modp4096-modp1024
local_addrs=0.0.0.0/0,::/0
remote_addrs=0.0.0.0/0,::/0
dpd_delay=60s
send_cert=always
pools=dhcp
@Nerevarishe
Nerevarishe / 00README.md
Created August 10, 2019 15:27 — forked from karlvr/00README.md
Roadwarrior configuration for macOS 10.12, iOS 10 and Windows 10 using strongSwan and user certificates

strongSwan setup for Road Warriors on macOS 10.12, iOS 10 and Windows 10

This setup is for remote users to connect into an office/home LAN using a VPN (ipsec). This is based on (but not the same as) the strongSwan documentation and this guide: https://raymii.org/s/tutorials/IPSEC_vpn_with_Ubuntu_16.04.html

I used strongSwan 5.5.1.

apt-get install -y strongswan strongswan-pki