This commit is contained in:
Axorax 2025-01-12 19:41:34 +06:00
parent d3dad39670
commit 80b172f62a
2 changed files with 22 additions and 1 deletions

View File

@ -597,6 +597,7 @@
- [Lantern](https://getlantern.org/) - Free internet freedom tool that bypasses network restrictions. 🪟 🍎 🐧
- [OpenVPN](https://openvpn.net/community-downloads/) - VPN solution for secure internet connections. 🪟 🟢
- [SoftEther VPN](https://www.softether.org/) - VPN software with multiple protocol support. 🪟 🟢
- [Sing-box](https://github.com/SagerNet/sing-box) - Powerful Universal proxy platform. 🪟 🍎 🐧 🟢
## Utility
@ -614,7 +615,7 @@
- [Rocket](https://matthewpalmer.net/rocket/) - Type emojis using colon (:) anywhere. 🍎
- [Keylock](https://github.com/Axorax/keylock) - Lock your keyboard. 🪟 🟢
- [Winpower](https://github.com/Axorax/winpower) - Improved power settings for Windows. 🪟 🟢
- [Locale Emulator](https://github.com/xupefei/Locale-Emulator) - System Region and Language Simulator. 🪟 🟢
- [Locale Emulator](https://github.com/xupefei/Locale-Emulator) - System region and language simulator. 🪟 🟢
### Clipboard Management

View File

@ -1,4 +1,5 @@
const fs = require('fs');
const { execSync } = require('child_process');
function create(fileName, emoji) {
const startTime = Date.now();
@ -65,6 +66,17 @@ function countLinks() {
console.log(`Total links in README.md: \x1b[32m${linkCount}\x1b[0m`);
}
function fastGit(message = "update") {
try {
execSync('git add -A', { stdio: 'inherit' });
execSync(`git commit -m "${message}"`, { stdio: 'inherit' });
execSync('git push', { stdio: 'inherit' });
console.log('Changes have been committed and pushed.');
} catch (error) {
console.error('Error running git commands:', error);
}
}
const args = process.argv.slice(2);
if (args.includes('--categorize')) {
@ -73,9 +85,17 @@ if (args.includes('--categorize')) {
format();
} else if (args.includes('--links')) {
countLinks();
} else if (args.includes('--fastgit')) {
const commitMessage = args.slice(1).join(' ');
if (commitMessage) {
fastGit(commitMessage);
} else {
console.log('Please provide a commit message after --fastgit');
}
} else {
console.log("Usage:");
console.log(" node index.js --categorize Run the categorize function");
console.log(" node index.js --format Format the README.md file");
console.log(" node index.js --links Count and display total links in README.md");
console.log(" node index.js --fastgit <msg> Run git commands with the specified commit message");
}