Advanced Search
Search Results
30 total results found
專題作品簡介 (學生期 Side-Project)
下載Youtube影片
如何下載Youtube影片 使用線上工具 點我看資料豐富的教學 使用本機軟體 yt-dlp 如何使用yt-dlp Step 1. 取得Python和pip 點我看資料豐富的教學 Step 2. 安裝yt-dlp # -U means install the LATEST version. # Old version yt-dlp may NOT work. pip install -U yt-dlp Step3. 使用yt-dlp # Download video. yt-dlp ...
前額腦損傷
Youtube 前額腦損傷 片段
安裝Python 3.10
簡介 在舊版Ubuntu安裝Python 3.10以及對應的pip版本。 安裝Python 藉由apt安裝,安裝後須注意python執行時的執行檔版本。 sudo apt update sudo apt install -y software-properties-common sudo add-apt-repository ppa:deadsnakes/ppa sudo apt install -y python3.10 python3.10-distutils which python3.10 安裝pip ...
新增ipykernel
pip install ipykernel ipython kernel install --name DISPLAY_NAME --user
Jupyter lab install LSP
pip install jupyterlab-lsp pip install python-language-server[python]
引入pytorch時出現tqdm錯誤
簡介 引入pytorch時出現tqdm錯誤,則須另外安裝套件ipywidgets。 # tqdm error is issued # by running the following code in python. # > import torch # Fix by install ipywidgets. pip install ipywidgets
Netplan
Ethernet (Dynamic IP) network: version: 2 ethernets: eth0: dhcp4: true optional: true Ethernet (Static IP) network: version: 2 ethernets: eth0: dhcp4: no addresses: [xxx.xxx.x...
iptables as firewall
Setup iptables as a firewall. Drop packages from INPUT chain by default. However, we have to allow response packages and requests to local DNS cache. iptables -P INPUT DROP iptables -I INPUT 1 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -I ...
Never use snap firefox
#!/bin/bash if [[ $(id -u) == 0 ]] then snap remove firefox add-apt-repository ppa:mozillateam/ppa cat > /etc/apt/preferences.d/mozilla-firefox << EOF Package: * Pin: release o=LP-PPA-mozillateam Pin-Priority: 1001 Package: firefox* Pin: release ...
Disable Ubuntu Server sleep
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
The public key is not available
Error occurred. The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 498C45EBE94E7B37 Solution Add the key from Ubuntu key server. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 498C45EBE94E7B37...
speech-dispatcher makes all audio crackle
Symptom speech-dispatcher package causes audio from speaker crackle (noise and delay) since Ubuntu 18.04 . Test To verify the symptom, run the following script and your speaker must be crackle! spd-say Hello! Solution Run the following script to solve the pro...
Resolve: NVIDIA Ghost Monitor
Resolve: NVIDIA Ghost Monitor
This PC Can’t Run Windows 11 on VirtualBox? Here Are 3 Fixes!
This PC Can’t Run Windows 11 on VirtualBox? Here Are 3 Fixes!
How to Install Windows 11 Without a Microsoft Account
How to Follow the installation wizard and stay in this step. Press Shift + F10 to open Terminal. OOBE\BYPASSNRO After reboot, disconnect the Internet by release IP. ipconfig /release Now, you can skip the login to Microsoft account. Reference ...
Virtualbox
Create NAT Network vboxmanage natnetwork add --netname NAT_NAME --network 192.168.1.0/24 --dhcp on --enable Create VM vboxmanage createvm --name 'VM_NAME' --ostype Ubuntu_64 --register vboxmanage modifyvm $VM_UUID --firmware efi --memory 4096 --vram 256 --cp...
FortiGate
想探索新的東西,所以趁過年買了一個二手的FortiGate。 看來有不少坑要踩啊! 我只用了幾個小時就讓自己被拒於管理頁面之外。 唯一能進管理系統的方法只有Console,其他能進去的方法都不小心被我移除權限了。 我連Reset都不能做,因為沒有實體的Reset按鈕啊!!!! 害我隔天跑了三間實體門市,才終於花400+買到一條RJ45轉USB Type-A的轉接頭。 (P.S. 好多服務人員分不清楚USB網卡跟Console線的分別 😭) 終於得以連進去Console中Reset設備了! Switch 交換器分成三...