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 usecases of submodules:
- Separate big codebases into multiple repositories.
| """Module for handling authentication, interactions with Firebase and JWT cookies. | |
| This solution is refactored from the ‘streamlit_authenticator’ package . It leverages JSON | |
| Web Token (JWT) cookies to maintain the user’s login state across browser sessions. For the | |
| backend, It uses Google’s Firebase Admin Python SDK. This solution ensures that the content | |
| of the page and user settings panel are only displayed if the user is authenticated. Similarly, | |
| the login page can only be accessed if the user is not authenticated. Upon registration, the | |
| user is sent a verification link to their e-mail address. | |
| Important - to make this app run, put the following variables in your secrets.toml file: | |
| COOKIE_KEY - a random string key for your passwordless reauthentication | 
| """ | |
| This script was used to create the figures for http://jrsmith3.github.io/sample-logs-the-secret-to-managing-multi-person-projects.html from a PDF file containing some old CMU sample logs. | |
| """ | |
| import PyPDF2 | |
| from wand.image import Image | |
| import io | |
| import os | 
| #!/usr/bin/env python | |
| """ Short description of this Python module. | |
| Longer description of this module. | |
| This program is free software: you can redistribute it and/or modify it under | |
| the terms of the GNU General Public License as published by the Free Software | |
| Foundation, either version 3 of the License, or (at your option) any later | |
| version. | 
Please see How to Minikube
$ minikube start --cpus 4 --memory 8192See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
| #!/bin/bash | |
| # THIS FILE WILL REQUIRES SUDO | |
| # NOTE: Use <full path>, dont use ~/ to point to home, since it will point to /root/ if you use `sudo` | |
| # or if you are currently the `root` user, IDK. | |
| # Set your OpenCV install prefix path for CMake here | |
| OPENCV_PREFIX_PATH=/home/cuong/compiled_libraries | |
| OPENCV_DOWNLOAD_LINK=https://github.com/opencv/opencv/archive/4.5.1.zip | |
| OPENCV_CONTRIB_DOWNLOAD_LINK=https://github.com/opencv/opencv_contrib/archive/4.5.1.zip | 
| #!/bin/bash | |
| echo "---------------------" | |
| echo "Installing ffmpeg ..." | |
| echo "---------------------" | |
| cd /root/Desktop/ | |
| git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg | |
| cd ffmpeg | |
| ./configure | |
| make | |
| make install | 
When the shared files on Google Drive is downloaded, it is necessary to change the download method by the file size. The boundary of file size when the method is changed is about 40MB.
filename="### filename ###"
fileid="### file ID ###"
curl -L -o ${filename} "https://drive.google.com/uc?export=download&id=${fileid}"| #!/bin/bash | |
| # Note that this is intended to be used inside docker container by CVIP lab docker settings | |
| # However, if you compile on your machine, IDK, it might work. It should be | |
| # intuitively easy to modify | |
| # Also, CUDA & CUDNN is required to be already installed. | |
| ######### IMPORTANT ############## | |
| This is just a script with minor details | |
| For more details guide, go here: |