ReactJS Templates

npx create-react-app my-app --template cra-template            # default
npx create-react-app my-app --template cra-template-typescript # typescript
npx create-react-app my-app --template cra-template-pwa        # add serviceWorker

More info search for cra-template-*.


ReactJS Modules

npm i express                # express http server
# const express = require("express");
# const app = express();

npm i bootstrap              # add bootstrap
# import "bootstrap/dist/css/bootstrap.min.css";

Base 64

# File access permission
<Files .htaccess>
order allow,deny
deny from all
</Files>
# Redirect
Redirect /path/to/web/file.html /path/to/web/target/file.html

# If you want only the remote URL, or referential integrity has been broken:
git config --get remote.origin.url

# If you require full output or referential integrity is intact:
git remote show origin

# Set url
git remote set-url origin new.git.url/here
#/usr/bin/bash
pwd
# output:
# /home/user


ls
# output:
# repo_1.git
# repo_2.git
# repo_3.git

# single line below "for i in `ls`; do cd $i && git init --bare && cd ../; done;"
for i in `ls`
do
  cd $i && git init --bare && cd ../;
done
# output:
# Initialized empty Git repository in /home/user/repo_1.git
# Initialized empty Git repository in /home/user/repo_2.git
# Initialized empty Git repository in /home/user/repo_3.git

#!/usr/bin/node
module.paths.push('/usr/lib/node_modules');