Skip to content

Instantly share code, notes, and snippets.

View pnhoang's full-sized avatar

Hoang Pham pnhoang

View GitHub Profile
@pnhoang
pnhoang / howto-download-youtube-videos.md
Last active June 2, 2025 05:38
How to download ALL videos of ANY YouTube Channel
@pnhoang
pnhoang / how-to-build-cli-with-node-js-using-oclif.md
Created October 10, 2019 22:58
How to build a CLI in Node.js using Oclif Framework

Single command vs Multiple command CLI

curl -h
curl http://google.com

heroku -h
heroku logs -a app-name
heroku 
@pnhoang
pnhoang / debug-vuejs.md
Last active July 7, 2023 09:21
Debug Vue.js application from VSCode

This document shows you how to debug Vue.js application from VS Code. https://v2.vuejs.org/v2/cookbook/debugging-in-vscode.html

The only problem that I get is that when I launched the debugger, it always opens the http://localhost:8080. And that's not what I want.

Instead, I want the debugger to start and step into the breakpoints when I open a link with Router directly for the first time.

An example: http://localhost:8080/#/IT/it/

In this case, what I did is: in VS Code, open the Command Palette: Cmd + Shift + P. Type in: Debugger: Open Link

@pnhoang
pnhoang / clean-up-scripts.sh
Last active December 6, 2023 15:21
Clean up Macbook
# The following scripts can be run from within your `~/dev` or `~/develop` or whatever folder you have for storing your source code as a developer.
# Since, node_modules, .next or cdk.out are folders that can be re-created by running their respective install commands.
# Using these 3 commands, I saved around 15GB of disk space.
```
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
find . -name ".next" -type d -prune -exec rm -rf '{}' +
find . -name "cdk.out" -type d -prune -exec rm -rf '{}' +
```