Note
Highlights information that users should take into account, even when skimming.
Tip
Optional information to help a user be more successful.
Important
Crucial information necessary for users to succeed.
[!WARNING]
# install uv | |
# see https://github.com/astral-sh/uv | |
pip install uv | |
# verify uv works | |
uv --version | |
# navigate to your project | |
cs ~/my-project |
Note
Highlights information that users should take into account, even when skimming.
Tip
Optional information to help a user be more successful.
Important
Crucial information necessary for users to succeed.
[!WARNING]
function git-prune-branches() { | |
echo "switching to master or main branch.." | |
git branch | grep 'main\|master' | xargs -n 1 git checkout | |
echo "fetching with -p option..."; | |
git fetch -p; | |
echo "running pruning of local branches" | |
git branch -vv | grep ': gone]'| grep -v "\*" | awk '{ print $1; }' | xargs -r git branch -d ; | |
} |
# when requirements.txt is updated | |
pip install -r requirements.txt |
# when a bootable SD card is created, the non-used space is converted to hidden partition | |
# step 0 | |
# connect SD card and open terminal | |
# step 1 | |
diskutil list | |
# step 2 find your sd card (e.g. /dev/disk4) | |
# step 3 erase the disk |
let a = document.createElement("a"); | |
a.href = window.URL.createObjectURL(new Blob([document.querySelectorAll("video:first-child source[type='video/mp4'")[0].src], {type: "video/mp4"})); | |
a.download = document.querySelectorAll('.main-wrap header h1')[0].textContent;; | |
a.click(); |
// find the first video tag, select the src attr in the source tag which matches "video/mp4" | |
const s = document.querySelectorAll("video:first-child source[type='video/mp4'"); | |
window.location = s[0].src; |
Once the project dir is created and initialized, install nodemon
for development only
npm install nodemon --save-dev
# Don't track files in this directory | |
* | |
# Don't track subdirs even | |
*/ | |
# Except this file | |
!.gitignore |
npm set init.author.name "STM" | |
npm set init.author.email "[email protected]" | |
npm set init.author.url "https://mataic.com" | |
npm set init.license "MIT" | |
npm set init.version "1.0.0" |