2022年5月20日 星期五

如何在synology nas內下載動畫瘋裡的卡通

1.開啟ssh 登入
2.登入到nas內
3.下載aniGamerPlus.git
git clone https://github.com/miyouzi/aniGamerPlus.git
4.安裝python 套件管理軟體

sudo python3 -m ensurepip
sudp python3 -m pip install --upgrade pip

5.安裝aniGamerPlus 必要python套件

sudo python3 -m pip install -r requirements.txt

6.準備開始下載動畫(避免連線中斷,可以搭配使用screen防止連線中斷)

7.選者要下載的影片
https://ani.gamer.com.tw

8.開始下載

python3 aniGamerPlus.py -s 14882 -r 720 -m all

餐數說明
-s sn數字,就是你要下載觀看影片網址後面的數字
-r 解析度,如果非vip 通常只能下載到720
-m 模式:如果想要一次下載多集,既選擇all

Win10 use ssh-add command to add ssh key encounter error: Could not open a connection to your authentication agent

解法:使用git 裡的shell
cd path-to-Git/bin (for me : cd C:\Program Files\Git\bin)
bash
exec ssh-agent bash
ssh-add MYKEY

2022年5月14日 星期六

從NBA 人才選擇談管理

最近熱火 Jimmy Buter 帶領熱火打敗76人進入東區冠軍賽後再回休息室時,口中唸說,當初選了Tobias Harris 不選我,其實應該所有的管理者都看得出來Jimy Buter 比Tobias Harris 能力還好,但管理者在做決定時,個人能力絕對不是唯一考量,根據Yaron Weitzman 提出的當初交易細節如下

  • 高層擔心Sinmons 跟Jimmy Buter的球權問題
  • 總教練Brett Brown 跟Jimmy Buter不合問題
  • Harris年紀較輕
  • 先補Horford幫中鋒替補,補足球隊的弱點

當然現在以結果論來講,76人高層是完全做了一連串錯誤的決定,當初擔心跟Jimmy Buter 不合的Brown跟Simons都走了,球隊也失去的兢爭力,回歸到選擇提拔對的人對一個公司競爭力的影響力有多大,這是不是就看得出來呢?

2022年5月12日 星期四

Amazon 購物

最近因為amazon有滿60塊美金免運費的活動,所以上網站買了幾次,最近才發現他這滿60塊是指折扣前,而不像國內的購物網,都是要折扣後滿才能使用免運,然後網路找了一下,向下列這種有amazon的折扣網,滿適合拿來搭配你要買的東西,湊60塊免運門檻
https://gonglue.us/deals

2022年5月6日 星期五

台灣:電子圍籬智慧監控系統

台灣的電子圍籬智慧監控系統,主要是透過疾管署,每天會發送遭列管者的手機號碼給台灣的五大電信業者,而業者則會將手機定位固定上傳到電子平台。者要列管者離開系統劃分的基地範圍(包括關機),系統就會自動發送“告警簡訊”給當事者跟第一線的監控單位

2022年5月1日 星期日

Mac Wifi connection Dropping frequently

Recently My laptop MBP 2018 encounter the network issue frequently. The wifi will drop connection randomly. The symptom is lost connection with default gateway. Here is the note that I used to record what I did for troubleshooting.

1.check the wifi status

netwroksetup -getinfo Wi-Fi

netstat -nr -f inet

list all network devices to get wifi device id

networksetup -listhardwareports

The most WiFi device id is en0
networksetup -getairportpower en0

disable airdrop

sudo ifconfig awdl0 down

The Fix:
Disable WiFi
Open Finder
Press
Cmd+Shft+G
to go to the folder
/Library/Preferences/SystemConfiguration/
Delete (or move) the following files:
com.apple.airport.preferences.plist
NetworkInterfaces.plist
preferences.plist
Restart your computer
Re-enable WiFi

How to restore a deleted onenote page

復原不小心誤刪的onenote