This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```sh | |
# https://dustinpfister.github.io/2020/10/02/linux-redirection/ | |
npm i . &>> output/npmi.log | |
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stackoverflow.com/a/17703016/1597360 | |
# 1. Find out the process ID (PID) which is occupying the port number (e.g., 5955) you would like to free | |
sudo lsof -i :5955 | |
# 2. Kill the process which is currently using the port using its PID | |
sudo kill -9 {PID} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://hints.macworld.com/article.php?story=20010508182132282 | |
ls | wc -l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in {1..100}; do cp -rvfp file.json copy$i.json ;done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -m <oldname> <newname> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stackoverflow.com/a/11980780/1597360 | |
find . -name '*js' -exec git add {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from this so answer: https://stackoverflow.com/a/5061651/1597360 | |
find . -name "*.ts" -exec rm -rf {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from here: http://osxdaily.com/2017/03/09/get-size-directory-command-line/ | |
# see the size of the current directory contents | |
du -sh * | |
# use the wildcard with other directory paths | |
du -sh ~/Desktop/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
killall -9 node | |
## or | |
# ps aux | grep node | |
## then | |
# kill -9 [pid] | |
# https://tecadmin.net/kill-process-on-specific-port/ | |
sudo kill -9 $(sudo lsof -t -i:3000) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* https://www.quora.com/What-are-the-most-interesting-HTML-JS-DOM-CSS-hacks-that-most-web-developers-dont-know-about/answer/Gajus-Kuizinas */ | |
/* https://dev.to/gajus/my-favorite-css-hack-32g3?utm_campaign=Alligator.io&utm_medium=email&utm_source=Revue%20newsletter */ | |
* { background-color: rgba(255,0,0,.2); } | |
* * { background-color: rgba(0,255,0,.2); } | |
* * * { background-color: rgba(0,0,255,.2); } | |
* * * * { background-color: rgba(255,0,255,.2); } | |
* * * * * { background-color: rgba(0,255,255,.2); } | |
* * * * * * { background-color: rgba(255,255,0,.2); } | |
* * * * * * * { background-color: rgba(255,0,0,.2); } |
NewerOlder