Skip to content

Instantly share code, notes, and snippets.

@JackieBinya
JackieBinya / homebrew.md
Created April 11, 2025 01:02
Useful Homebrew commands
  1. brew upgrade -g -v-- run every week to update the casks or other packages installed with brew.
@JackieBinya
JackieBinya / Postgres SQL setup in an M1 Mac
Last active November 18, 2023 13:12
Postgres SQL setup in an M1 Mac
Resources used:
- [How to install Postgres on a Mac M1 with Homebrew in 5 minutes](https://sqlpad.io/tutorial/postgres-mac-installation/)
- [How to Install Postgres on Mac Using Homebrew](https://www.databasestar.com/install-postgres-mac-homebrew/#)
- [PostgresSQL](https://sourabhbajaj.com/mac-setup/PostgreSQL/)
@JackieBinya
JackieBinya / delete_git_submodule.md
Created September 5, 2022 04:58 — 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
@JackieBinya
JackieBinya / delete_git_submodule.md
Created September 5, 2022 04:58 — 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
@JackieBinya
JackieBinya / git_submodules.md
Created September 5, 2022 03:47 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.
@JackieBinya
JackieBinya / gist:3d31299d3f50cb6e2a1fde3dc7580c21
Last active June 25, 2019 05:42
Image upload in node.js using multer and cloudinary..
References
https://medium.com/@dharmykoya38/image-upload-in-nodejs-using-multer-and-cloudinary-version-2-17924c22fce7
https://medium.com/@joeokpus/uploading-images-to-cloudinary-using-multer-and-expressjs-f0b9a4e14c54