Skip to content

Instantly share code, notes, and snippets.

View moonwitch's full-sized avatar

Kelly Crabbé moonwitch

View GitHub Profile
@moonwitch
moonwitch / base64
Created May 6, 2024 15:44 — forked from iAnatoly/base64
One-liners encoding and decoding Base64 in powershell
[System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("SecretMessage"))
[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("U2VjcmV0TWVzc2FnZQ=="))
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Kelly Crabbé",
"label": "DevOps Engineer",
"image": "",
"email": "kelly.crabbe@gmail.com",
"phone": "+32 479 69 55 60",
"url": "http://kellyc.dev",
"summary": "Experienced all-round IT specialist with over 10 years of experience in IT Support. Excellent reputation for resolving problems and improving customer satisfaction. Current focus is automation through puppet, rundeck and Powershell. Strong teamplayer; especially in multi-cultural environments.",

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