Skip to content

Instantly share code, notes, and snippets.

View BilalMoreno92's full-sized avatar

Bilal Moreno Ahmed BilalMoreno92

View GitHub Profile
@BilalMoreno92
BilalMoreno92 / stacked_snippets.json
Created January 10, 2023 23:39 — forked from FilledStacks/stacked_snippets.json
Flutter / Stacked snippets for productivity
{
"Freezed model": {
"prefix": "frz",
"body": [
"@freezed",
"class ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/g}} with _$${1} {",
" factory ${1}({",
" @required ${2:String id},",
" }) = _${1};",
"}"
@BilalMoreno92
BilalMoreno92 / ssh-add.md
Created November 7, 2022 07:30 — forked from egoens/ssh-add.md
Use this if ssh key keeps asking for password
@BilalMoreno92
BilalMoreno92 / delete_git_submodule.md
Created November 6, 2022 18:18 — 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