Saturday, October 19, 2019

How to Update All Packages in Anaconda

To update all packages in Anaconda to the latest version, execute the following command:
conda update --all

Friday, October 18, 2019

How to Update Node.js and Ionic

Update Node Using a Package Manager

npm install npm@latest -g
sudo npm cache clean -f
sudo npm install -g n
sudo n stable

Update Ionic

sudo npm install -g ionic@latest

Tuesday, July 10, 2018

Start Android Virtual Device (AVD) emulator from the command line

The command-line syntax for starting an Android Virtual Device (AVD) emulator from a command prompt:
~/Library/Android/sdk/tools/emulator -avd avd_name -netdelay none -netspeed full
Please replace "avd_name" with the device name.

Monday, February 6, 2017

How to Recursively Delete Files from a Folder

Let say you want to delete all files of type ".bak" recursively from a folder.

Step 1: List all the files of ".bak" in the folder to check whether you will delete the correct files.
  1. Open up Terminal
  2. In the command line, type:
  3. Drag and drop the folder you wish to delete ".bak" files from.
  4. Press enter.
  5. In the command line, type:
    find . -name '*.bak' -type f
  6. Press enter.

If you are confirmed that you want to delete the listed files, proceed to Step 2.

Step 2: Delete all the "*.bak" files.
  1. In the command line, type:
    find . -name '*.bak' -type f -delete
  2. Press enter.

Please be careful.