Skip to content

Instantly share code, notes, and snippets.

@JohnnieLi
JohnnieLi / iterm2.md
Created May 27, 2022 19:12 — forked from squarism/iterm2.md
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@JohnnieLi
JohnnieLi / CAN.topo.json
Created August 24, 2018 03:49
CAN provinces topojson - small size version
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
================= Angular 6 VS Less
1. https://github.com/NG-ZORRO/ng-zorro-antd/issues/1363
2. https://github.com/angular/angular-cli/issues/10430
===========global is not defined===========
1.https://github.com/aws-amplify/amplify-js/issues/678
add this to index.html
<!-- https://github.com/aws/aws-amplify/issues/678 fix: -->
<script>
1. list images
```
docker images
```
2. remove image
```
docker rmi <imageID>
```
--old
http://anandmanisankar.com/posts/container-docker-PaaS-microservices/
http://anandmanisankar.com/posts/docker-container-nginx-node-redis-example/
--
https://auth0.com/blog/load-balancing-nodejs-applications-with-nginx-and-docker/
Addition:
Analyzing bundle size with the Angular CLI and Webpack
-sourcemaps
Dev-run:
1. ng serve --verbose --proxy-config proxy.conf.json --sourcemaps=false
ng serve --sourcemaps=false : close chunk assest will save more compile time
ng serve --aot: compile AoT, takes more compile time, saving page init loading time
In order to update the angular-cli package installed globally in your system, you need to run:
npm uninstall -g angular-cli
npm cache verify
npm install -g @angular/cli@latest
Depending on your system, you may need to prefix the above commands with sudo.
Also, most likely you want to also update your local project version, because inside your project directory it will be selected with higher priority than the global one:
rm -rf node_modules