Loading repository dataβ¦
Loading repository dataβ¦
leminhnguyen / repository
π¦A curated collection of handy code snippets, shell functions, and developer tips
A curated collection of handy code snippets, shell functions, and developer tips
Useful shell functions and one-liners for everyday terminal work.
| # | Snippet | Description |
|---|---|---|
| 1 | fcount | Count the number of files in a folder |
| 2 | Fix CUDA | Fix CUDA force-overwrite/broken install issues |
| 3 | nbl-count | Count non-blank lines in a file |
| 4 | Docker no-sudo | Run Docker without sudo |
| 5 | Fix 2nd screen | Recover second monitor after reinstalling Ubuntu |
| 6 | Fix DISPLAY | Fix MIT-MAGIC-COOKIE-1 / DISPLAY errors |
| 7 | sizeof | Get the size of a folder |
| 8 | Rsync | Sync files from local to remote server |
| 9 | Kill process | Find and kill specific processes by name |
| 10 | downloading.sh | Download multiple files into a folder via CLI |
| 11 | Recover tmux | Recover a lost tmux session |
β‘οΈ View all Bash snippets β
Reusable Python patterns and utilities to speed up development.
| # | Snippet | Description |
|---|---|---|
| 1 | p_tqdm multiprocessing | Parallel processing with a live progress bar |
| 2 | Fast audio duration | Read audio length without decoding the full file |
| 3 | Time decorator | Measure execution time of any function |
| 4 | Fix gdown permission | Download Google Drive files from Colab/Kaggle |
β‘οΈ View all Python snippets β
Step-by-step guides on useful development workflows.
| Topic | Description |
|---|---|
| Use Colab/Kaggle in VS Code | Connect cloud notebooks to your local VS Code via ngrok |
| Linux server with Windows Terminal | Easy SSH profile setup using Windows Terminal |
This project is licensed under the MIT License.
MIT License
Copyright (c) 2026 leminhnguyen
Contributions are welcome! Feel free to: