commit f1cc2ea546257f76316d962d84aab7c6169fd92f Author: louiscklaw Date: Fri Jan 31 19:13:58 2025 +0800 update, diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..071ad20f --- /dev/null +++ b/.gitignore @@ -0,0 +1,62 @@ +**/*.zip +**/*.tar.gz +**/*.log +**/*.7z +**/*.mp4 +**/*Zone* +**/.next +**/node_modules/ + + + +# Node.js +node_modules/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Logs +logs/ +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# OS generated files +.DS_Store +Thumbs.db + +# Dependency directories +node_modules/ + +# Editors +.idea/ +.vscode/ +*.sublime-workspace +*.sublime-project + +# Build artifacts +dist/ +build/ +out/ + +# Environment variables +.env +.env.local +.env.*.local + +# Temporary files +*.tmp +*.swp + +# Coverage +coverage/ +*.lcov + +# Package files +*.tgz + +# Miscellaneous +*.swo +*.swp diff --git a/PRICE.md b/PRICE.md new file mode 100644 index 00000000..7c1fceb8 --- /dev/null +++ b/PRICE.md @@ -0,0 +1,13 @@ +# PRICE + +i.e. +price per credit: HKD5700 + +if a course takes 3 credit => 5700 * 3 = 17100 + +if a course work equals 50% of total mark +then i mark 10% of 17100 ~= 1700 + +on customer point of view, +they are saving 17100 and time by 1700 + diff --git a/README.md b/README.md new file mode 100644 index 00000000..fa93982b --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# carousell-comission-playlist +carousell-comission-playlist diff --git a/avatar.jpg b/avatar.jpg new file mode 100644 index 00000000..50a1ff13 Binary files /dev/null and b/avatar.jpg differ diff --git a/clear_node_modules.js b/clear_node_modules.js new file mode 100644 index 00000000..44402772 --- /dev/null +++ b/clear_node_modules.js @@ -0,0 +1,42 @@ +const fs = require("fs"); +const path = require("path"); + +function removeNodeModules(dir) { + const entries = fs.readdirSync(dir, { withFileTypes: true }); + + for (const entry of entries) { + if ( + [ + "_poc", + "_archive", + // + ].includes(entry.name) + ) { + } else { + const fullPath = path.join(dir, entry.name); + + if (entry.isDirectory()) { + if (["node_modules", ".next"].includes(entry.name)) { + fs.rmSync(fullPath, { recursive: true }); + } else { + removeNodeModules(fullPath); + } + + if ( + [ + ".apk", + ".log", + ".tmp", + ".Zone.Identifier", + // + ].some((ext) => entry.name.endsWith(ext)) + ) { + fs.unlinkSync(fullPath); + } + } + } + } +} + +removeNodeModules("."); +console.log("directories have been removed."); diff --git a/deploy.bat b/deploy.bat new file mode 100644 index 00000000..2dfa6260 --- /dev/null +++ b/deploy.bat @@ -0,0 +1,6 @@ +git pull +git add _docs +git add deloy.bat +git add .vscode +git commit -m"update github pages," +git push diff --git a/gitUpdate.bat b/gitUpdate.bat new file mode 100644 index 00000000..6d7165fd --- /dev/null +++ b/gitUpdate.bat @@ -0,0 +1,8 @@ +git status . + +echo "press enter to continue" +@pause + +git add . +git commit -m"update master config," +start git push diff --git a/gitUpdate.sh b/gitUpdate.sh new file mode 100755 index 00000000..001a07e2 --- /dev/null +++ b/gitUpdate.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -ex + +git add . + +git commit -m 'update,' + +git push + +echo "done" diff --git a/notes.md b/notes.md new file mode 100644 index 00000000..28cef57b --- /dev/null +++ b/notes.md @@ -0,0 +1,5 @@ +# NOTES + +### Remote landing directory: + +/home/logic/\_workspace/fedora-server/src/nodejs-airdrop.staging/backend/tmp