diff --git a/.gitattributes b/.gitattributes index 15c484d..a252d3d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1 @@ *.md linguist-detectable - -*.mp4 filter=lfs diff=lfs merge=lfs -text -*.png filter=lfs diff=lfs merge=lfs -text -*.jpg filter=lfs diff=lfs merge=lfs -text -*.jpeg filter=lfs diff=lfs merge=lfs -text diff --git a/assets/profile/mauss.jpg b/assets/profile/mauss.jpg index 773e113..95da666 100644 Binary files a/assets/profile/mauss.jpg and b/assets/profile/mauss.jpg differ diff --git a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/admin-advokat.png b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/admin-advokat.png index a5449d3..38b00b6 100644 Binary files a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/admin-advokat.png and b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/admin-advokat.png differ diff --git a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/admin-kasus.png b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/admin-kasus.png index 43e53a6..d14be42 100644 Binary files a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/admin-kasus.png and b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/admin-kasus.png differ diff --git a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/admin-login.png b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/admin-login.png index d7a865a..a3cea58 100644 Binary files a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/admin-login.png and b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/admin-login.png differ diff --git a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/spa-lighthouse.png b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/spa-lighthouse.png index 524f9b2..908d9ac 100644 Binary files a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/spa-lighthouse.png and b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/spa-lighthouse.png differ diff --git a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/spa-performance.png b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/spa-performance.png index 2be0c2c..6d6d11d 100644 Binary files a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/spa-performance.png and b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/spa-performance.png differ diff --git a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/spa-structure.png b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/spa-structure.png index a00a989..ebc50ea 100644 Binary files a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/spa-structure.png and b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/spa-structure.png differ diff --git a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/ssr-lighthouse.png b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/ssr-lighthouse.png index 1882451..f613208 100644 Binary files a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/ssr-lighthouse.png and b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/ssr-lighthouse.png differ diff --git a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/ssr-performance.png b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/ssr-performance.png index 738b606..b64e1ee 100644 Binary files a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/ssr-performance.png and b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/ssr-performance.png differ diff --git a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/ssr-structure.png b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/ssr-structure.png index 2982382..d5bb6e3 100644 Binary files a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/ssr-structure.png and b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/ssr-structure.png differ diff --git a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/thumbnail.png b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/thumbnail.png index 1b7e69c..43237a5 100644 Binary files a/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/thumbnail.png and b/sites/dev.mauss/posts/admin-dashboard-with-svelte-and-firebase/thumbnail.png differ diff --git a/sites/dev.mauss/posts/complete-flutter-development-automation/thumbnail.png b/sites/dev.mauss/posts/complete-flutter-development-automation/thumbnail.png index 1d88b4a..825df05 100644 Binary files a/sites/dev.mauss/posts/complete-flutter-development-automation/thumbnail.png and b/sites/dev.mauss/posts/complete-flutter-development-automation/thumbnail.png differ diff --git a/sites/dev.mauss/posts/django-quick-setup-guide-with-gitlab-and-heroku/thumbnail.jpg b/sites/dev.mauss/posts/django-quick-setup-guide-with-gitlab-and-heroku/thumbnail.jpg index 45d50bd..cc065ae 100644 Binary files a/sites/dev.mauss/posts/django-quick-setup-guide-with-gitlab-and-heroku/thumbnail.jpg and b/sites/dev.mauss/posts/django-quick-setup-guide-with-gitlab-and-heroku/thumbnail.jpg differ diff --git a/sites/dev.mauss/posts/fix-double-nat/cisco-port-forward.jpg b/sites/dev.mauss/posts/fix-double-nat/cisco-port-forward.jpg index 8970f2d..4668ba2 100644 Binary files a/sites/dev.mauss/posts/fix-double-nat/cisco-port-forward.jpg and b/sites/dev.mauss/posts/fix-double-nat/cisco-port-forward.jpg differ diff --git a/sites/dev.mauss/posts/fix-double-nat/cisco-upnp.jpg b/sites/dev.mauss/posts/fix-double-nat/cisco-upnp.jpg index 74f05a6..05b2f21 100644 Binary files a/sites/dev.mauss/posts/fix-double-nat/cisco-upnp.jpg and b/sites/dev.mauss/posts/fix-double-nat/cisco-upnp.jpg differ diff --git a/sites/dev.mauss/posts/fix-double-nat/fully-accessible.jpg b/sites/dev.mauss/posts/fix-double-nat/fully-accessible.jpg index 940b486..5bd5165 100644 Binary files a/sites/dev.mauss/posts/fix-double-nat/fully-accessible.jpg and b/sites/dev.mauss/posts/fix-double-nat/fully-accessible.jpg differ diff --git a/sites/dev.mauss/posts/fix-double-nat/huawei-port-forward.jpg b/sites/dev.mauss/posts/fix-double-nat/huawei-port-forward.jpg index 409c139..bfdf779 100644 Binary files a/sites/dev.mauss/posts/fix-double-nat/huawei-port-forward.jpg and b/sites/dev.mauss/posts/fix-double-nat/huawei-port-forward.jpg differ diff --git a/sites/dev.mauss/posts/fix-double-nat/huawei-upnp.png b/sites/dev.mauss/posts/fix-double-nat/huawei-upnp.png index f1fcd5b..6bcd4fc 100644 Binary files a/sites/dev.mauss/posts/fix-double-nat/huawei-upnp.png and b/sites/dev.mauss/posts/fix-double-nat/huawei-upnp.png differ diff --git a/sites/dev.mauss/posts/fix-double-nat/plex-retry.png b/sites/dev.mauss/posts/fix-double-nat/plex-retry.png index 3d11f94..392b597 100644 Binary files a/sites/dev.mauss/posts/fix-double-nat/plex-retry.png and b/sites/dev.mauss/posts/fix-double-nat/plex-retry.png differ diff --git a/sites/dev.mauss/posts/fix-double-nat/thumbnail.jpg b/sites/dev.mauss/posts/fix-double-nat/thumbnail.jpg index 854cb99..5f631ab 100644 Binary files a/sites/dev.mauss/posts/fix-double-nat/thumbnail.jpg and b/sites/dev.mauss/posts/fix-double-nat/thumbnail.jpg differ diff --git a/sites/dev.mauss/posts/fix-double-nat/tracert.jpg b/sites/dev.mauss/posts/fix-double-nat/tracert.jpg index 7ea1bc5..16ac152 100644 Binary files a/sites/dev.mauss/posts/fix-double-nat/tracert.jpg and b/sites/dev.mauss/posts/fix-double-nat/tracert.jpg differ diff --git a/sites/dev.mauss/posts/git-lfs-crash-course/+article.md b/sites/dev.mauss/posts/git-lfs-crash-course/+article.md new file mode 100644 index 0000000..49bcef9 --- /dev/null +++ b/sites/dev.mauss/posts/git-lfs-crash-course/+article.md @@ -0,0 +1,64 @@ +--- +date: "2023-11-30T12:00:00+07:00" +title: Git LFS Crash Course +description: A quick introduction to the basics of Git LFS +tags: [tech, git, crash-course] +--- + +[Git LFS](https://git-lfs.com/) is an open source Git extension for versioning large files (e.g. audio, video, and graphics) with Git by replacing these large files with text pointers that are tracked by Git, while storing the file contents on a remote server like GitHub. + +This extension is really useful when working on a project with large files that are updated frequently, such as assets in a game project. It allows us to keep the repository size small while still being able to version the large files, meaning faster cloning and pulling of the repository. We also don't need to worry about cleaning up the repository history to remove the large files after they are no longer needed. + +We do have to keep in mind that Git LFS needs a remote server to store the large files, so we're fully dependent on the server for their availability, storage, and bandwidth. If you rarely or never update the large files, then you can ignore this extension knowing you're not missing out on anything. + +## Installation + +To install Git LFS, we can run the following command... + +```bash +git lfs install +``` + +Then we can track the large files (we're using "mp4" files as an example here) by running... + +```bash +git lfs track "*.mp4" +``` + +This will add or generate a `.gitattributes` file that you'll need to track and commit. Commit the rest of the changes, push it, and you're done! + +## Uninstalling + +To uninstall Git LFS, we can run the following command... + +```bash +git lfs uninstall +``` + +Then go to your `.gitattributes` file and remove the lines that were added by Git LFS (if it's everything, then you can safely delete the file) + +```diff +#$ file: .gitattributes +# examples this file might have +*.md linguist-detectable + +-*.mp4 filter=lfs diff=lfs merge=lfs -text +-*.png filter=lfs diff=lfs merge=lfs -text +-*.jpg filter=lfs diff=lfs merge=lfs -text +-*.jpeg filter=lfs diff=lfs merge=lfs -text +``` + +Re-track and add the files that were previously tracked by Git LFS by running... + +```bash +git add --renormalize . +``` + +commit the changes, push it, and you're done! + +--- + +Reference(s): + +- - Git Large File Storage Website +- - Managing large files in GitHub diff --git a/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/raspi-config-interfacing.jpg b/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/raspi-config-interfacing.jpg index 9b88a8d..fef0836 100644 Binary files a/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/raspi-config-interfacing.jpg and b/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/raspi-config-interfacing.jpg differ diff --git a/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/raspi-config-main.jpg b/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/raspi-config-main.jpg index 7b4226d..bb28770 100644 Binary files a/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/raspi-config-main.jpg and b/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/raspi-config-main.jpg differ diff --git a/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/raspi-config-vnc.jpg b/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/raspi-config-vnc.jpg index 9e8c2ae..b4680b0 100644 Binary files a/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/raspi-config-vnc.jpg and b/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/raspi-config-vnc.jpg differ diff --git a/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/thumbnail.png b/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/thumbnail.png index f92f707..a9aeded 100644 Binary files a/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/thumbnail.png and b/sites/dev.mauss/posts/guide-to-plex-media-server-with-raspberry-pi/thumbnail.png differ diff --git a/sites/dev.mauss/posts/how-to-set-up-sapper-with-cpanel/cpanel-node-setup.png b/sites/dev.mauss/posts/how-to-set-up-sapper-with-cpanel/cpanel-node-setup.png index f0ac471..76cf164 100644 Binary files a/sites/dev.mauss/posts/how-to-set-up-sapper-with-cpanel/cpanel-node-setup.png and b/sites/dev.mauss/posts/how-to-set-up-sapper-with-cpanel/cpanel-node-setup.png differ diff --git a/sites/dev.mauss/posts/how-to-set-up-sapper-with-cpanel/cpanel-software.png b/sites/dev.mauss/posts/how-to-set-up-sapper-with-cpanel/cpanel-software.png index 1c60f8d..7361d42 100644 Binary files a/sites/dev.mauss/posts/how-to-set-up-sapper-with-cpanel/cpanel-software.png and b/sites/dev.mauss/posts/how-to-set-up-sapper-with-cpanel/cpanel-software.png differ diff --git a/sites/dev.mauss/posts/importance-of-proper-git-usage/best-git-commit.png b/sites/dev.mauss/posts/importance-of-proper-git-usage/best-git-commit.png index ed55a92..78db7ba 100644 Binary files a/sites/dev.mauss/posts/importance-of-proper-git-usage/best-git-commit.png and b/sites/dev.mauss/posts/importance-of-proper-git-usage/best-git-commit.png differ diff --git a/sites/dev.mauss/posts/importance-of-proper-git-usage/cluttered-merge-request-commits.png b/sites/dev.mauss/posts/importance-of-proper-git-usage/cluttered-merge-request-commits.png index d980de0..25a2e35 100644 Binary files a/sites/dev.mauss/posts/importance-of-proper-git-usage/cluttered-merge-request-commits.png and b/sites/dev.mauss/posts/importance-of-proper-git-usage/cluttered-merge-request-commits.png differ diff --git a/sites/dev.mauss/posts/importance-of-proper-git-usage/github-git-commit-description.png b/sites/dev.mauss/posts/importance-of-proper-git-usage/github-git-commit-description.png index ce8f2f7..ae19ba5 100644 Binary files a/sites/dev.mauss/posts/importance-of-proper-git-usage/github-git-commit-description.png and b/sites/dev.mauss/posts/importance-of-proper-git-usage/github-git-commit-description.png differ diff --git a/sites/dev.mauss/posts/importance-of-proper-git-usage/github-git-commit-expanded.png b/sites/dev.mauss/posts/importance-of-proper-git-usage/github-git-commit-expanded.png index ee1eae8..85c8049 100644 Binary files a/sites/dev.mauss/posts/importance-of-proper-git-usage/github-git-commit-expanded.png and b/sites/dev.mauss/posts/importance-of-proper-git-usage/github-git-commit-expanded.png differ diff --git a/sites/dev.mauss/posts/importance-of-proper-git-usage/github-git-commit.png b/sites/dev.mauss/posts/importance-of-proper-git-usage/github-git-commit.png index da56dd7..f142138 100644 Binary files a/sites/dev.mauss/posts/importance-of-proper-git-usage/github-git-commit.png and b/sites/dev.mauss/posts/importance-of-proper-git-usage/github-git-commit.png differ diff --git a/sites/dev.mauss/posts/importance-of-proper-git-usage/gitlab-protected-branches.png b/sites/dev.mauss/posts/importance-of-proper-git-usage/gitlab-protected-branches.png index 29b4938..023cf57 100644 Binary files a/sites/dev.mauss/posts/importance-of-proper-git-usage/gitlab-protected-branches.png and b/sites/dev.mauss/posts/importance-of-proper-git-usage/gitlab-protected-branches.png differ diff --git a/sites/dev.mauss/posts/importance-of-proper-git-usage/merge-request-approvals.png b/sites/dev.mauss/posts/importance-of-proper-git-usage/merge-request-approvals.png index 521c0e9..dcaa79e 100644 Binary files a/sites/dev.mauss/posts/importance-of-proper-git-usage/merge-request-approvals.png and b/sites/dev.mauss/posts/importance-of-proper-git-usage/merge-request-approvals.png differ diff --git a/sites/dev.mauss/posts/importance-of-proper-git-usage/merge-request-settings.png b/sites/dev.mauss/posts/importance-of-proper-git-usage/merge-request-settings.png index e99a056..4ed98f7 100644 Binary files a/sites/dev.mauss/posts/importance-of-proper-git-usage/merge-request-settings.png and b/sites/dev.mauss/posts/importance-of-proper-git-usage/merge-request-settings.png differ diff --git a/sites/dev.mauss/posts/importance-of-proper-git-usage/thumbnail.png b/sites/dev.mauss/posts/importance-of-proper-git-usage/thumbnail.png index 7d41410..eed9156 100644 Binary files a/sites/dev.mauss/posts/importance-of-proper-git-usage/thumbnail.png and b/sites/dev.mauss/posts/importance-of-proper-git-usage/thumbnail.png differ diff --git a/sites/dev.mauss/posts/importance-of-proper-git-usage/vscode-git-commit.png b/sites/dev.mauss/posts/importance-of-proper-git-usage/vscode-git-commit.png index 8f25786..c5bd6d2 100644 Binary files a/sites/dev.mauss/posts/importance-of-proper-git-usage/vscode-git-commit.png and b/sites/dev.mauss/posts/importance-of-proper-git-usage/vscode-git-commit.png differ diff --git a/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-aji.png b/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-aji.png index f33f69f..c050da9 100644 Binary files a/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-aji.png and b/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-aji.png differ diff --git a/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-bayu.png b/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-bayu.png index ae57502..1def1c1 100644 Binary files a/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-bayu.png and b/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-bayu.png differ diff --git a/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-nadine.png b/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-nadine.png index a7fd59a..ff59552 100644 Binary files a/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-nadine.png and b/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-nadine.png differ diff --git a/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-syah.png b/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-syah.png index 5872f40..58d54d5 100644 Binary files a/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-syah.png and b/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-syah.png differ diff --git a/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-target.png b/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-target.png index 009d401..6cdc90a 100644 Binary files a/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-target.png and b/sites/dev.mauss/posts/persona-from-a-hacker-perspective/persona-target.png differ diff --git a/sites/dev.mauss/posts/persona-from-a-hacker-perspective/thumbnail.png b/sites/dev.mauss/posts/persona-from-a-hacker-perspective/thumbnail.png index aeea127..619366f 100644 Binary files a/sites/dev.mauss/posts/persona-from-a-hacker-perspective/thumbnail.png and b/sites/dev.mauss/posts/persona-from-a-hacker-perspective/thumbnail.png differ diff --git a/sites/dev.mauss/posts/raspberry-pi-real-time-monitoring/thumbnail.jpg b/sites/dev.mauss/posts/raspberry-pi-real-time-monitoring/thumbnail.jpg index 1e6ee43..7bd51c6 100644 Binary files a/sites/dev.mauss/posts/raspberry-pi-real-time-monitoring/thumbnail.jpg and b/sites/dev.mauss/posts/raspberry-pi-real-time-monitoring/thumbnail.jpg differ diff --git a/sites/dev.mauss/posts/tdd-a-double-edged-sword/thumbnail.png b/sites/dev.mauss/posts/tdd-a-double-edged-sword/thumbnail.png index b7c6e36..935a340 100644 Binary files a/sites/dev.mauss/posts/tdd-a-double-edged-sword/thumbnail.png and b/sites/dev.mauss/posts/tdd-a-double-edged-sword/thumbnail.png differ diff --git a/sites/dev.mauss/reviews/anime/k-on/yui-wants-to-do-the-vocals.mp4 b/sites/dev.mauss/reviews/anime/k-on/yui-wants-to-do-the-vocals.mp4 index cb9a786..f1b5d6f 100644 Binary files a/sites/dev.mauss/reviews/anime/k-on/yui-wants-to-do-the-vocals.mp4 and b/sites/dev.mauss/reviews/anime/k-on/yui-wants-to-do-the-vocals.mp4 differ diff --git a/sites/dev.mauss/reviews/anime/watashi-ni-tenshi-ga-maiorita/french-toast-breakfast.mp4 b/sites/dev.mauss/reviews/anime/watashi-ni-tenshi-ga-maiorita/french-toast-breakfast.mp4 index 502e7a8..8428d19 100644 Binary files a/sites/dev.mauss/reviews/anime/watashi-ni-tenshi-ga-maiorita/french-toast-breakfast.mp4 and b/sites/dev.mauss/reviews/anime/watashi-ni-tenshi-ga-maiorita/french-toast-breakfast.mp4 differ