Developers Notes

My Journey as Software Architect

terminal

Recommended Terminal Application Replacement

1.exa A modern version of ‘ls’. https://the.exa.website/ Github Repo: https://github.com/ogham/exa Exa have a similar options like ls , my usual way to use exa is exa -lah 2.bat A cat(1) clone with wings. Github Repo: https://github.com/sh…

Generate Public Key using Private Key

Sometimes, you need to provide public key on some services, you can use this command to generate the public key $ ssh-keygen -y -f ~/pathToPrivateKey/private.pem > ~/.ssh/public.pub Enter passphrase:

PHP in macOS & Linux Server

If you have MAMP installed, and you want to use it for cli, you can add this to your bash profile export PATH=/usr/local/bin:$PATHexport PATH=/Applications/MAMP/bin/php/php5.5.10/bin:$PATH Make sure the order is correct. Put export PATH=/u…

Let's Encrypt on Ubuntu 16.X / 18.X Cheat Sheet

If you want to integrate Let's Encrypt to make your website running on https & using nginx. This is simple sample config for reverse proxy expressjs apps i use server { client_max_body_size 56M; server_name example.com; location / { proxy_…

Unable to access 'git/attributes'

If you have this issue, usually, the first time you create EC2 / VPS, then git pull from repo. you can use this command cd ~/ sudo chown -R username /Users/username

Reset React Native Packager

In case you need to clean cache of the packager, Ref: https://gist.github.com/jarretmoses/c2e4786fd342b3444f3bc6beff32098d#file-react-native-clear-cache RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ &…

Cold Boot Reset Android Emulator using Terminal

if you having some issue with emulator, and you cannot reset the Emulator using UI, you can run this command to reset the emulator emulator @avd_name -no-snapshot-load