[others] miscellaneous
ES6 swapping array causing error
解法:在 swap 前放一個逗號
RSS feed
RSS 是一個線上的網址,網址裡有 XML 格式的 text 資料,透過 RSS reader 訂閱該網址之後,就可以在該 RSS 作者發布新文章時,收到通知。
在 Mac Terminal 中設定 alias
To set an alias in the Mac Terminal using Zsh, you can follow these steps:
- Open the Terminal app on your Mac.
- Type
nano ~/.zshrc
to open the Zsh configuration file in the Nano text editor. If you prefer a different text editor, you can use that instead of Nano. Scroll to the bottom of the file or to any empty line and add the alias you want to create. For example, to create an alias for the ls command to show file details in long format, you can add the following line:
alias ll='ls -alh'
- Save the changes by pressing Control + X, then Y, and then Enter.
- Reload the Zsh configuration file by typing
source ~/.zshrc
or by opening a new terminal window. - Now you can use the alias ll instead of typing ls -alh every time you want to see file details in long format. You can create as many aliases as you like by following the same steps and replacing ll and ls -alh with your desired alias and command, respectively.
透過 putty 和 SSH 遠端操控 windows or mac
https://www.switchingtomac.com/tutorials/how-to-remote-connect-to-mac-from-windows-with-ssh/
How to Access Website Hosted on Your Home Computer from Anywhere
https://dev.to/mo3taz1705/how-to-access-website-hosted-on-your-home-computer-from-anywhere-52no