Ubuntu 管理心得

搜尋此網誌

2025年9月16日 星期二

gnome online accounts google black

 cf: https://askubuntu.com/questions/1424005/pop-up-window-goes-blank-when-adding-google-account-in-gnome-control-center

Run the command to access google accound:

WEBKIT_DISABLE_COMPOSITING_MODE=1 MESA_LOADER_DRIVER_OVERRIDE=zink gnome-control-center online-accounts 

2025年9月7日 星期日

Batch bulk delete google calendar

 https://www.youtube.com/watch?v=hJdGBmHDafA

In short:

  1. Select calendar, say NFL2025-26, 設定與共用->匯出日曆, say. kpchiaoo@gmail.com.ical.zip
  2. Unzip kpchiaoo@gmail.com.ical.zip, and get NFL2025-xxxx.ics
  3. Edit NFL2025-xxxx.ics, Replace all
    "STATUS:CONFIRMED"
    to
    "STATUS:CANCELLED"
  4. Save it as NFL2025-xxxx-calcelled.ics
  5. Then import NFL2025-xxxx-calcelled.ics back to google calendar, NFL2025-26
  6. Done 

 

2025年8月1日 星期五

Spyder 輸入中文

ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so ~/anaconda3/plugins/platforminputcontexts/

2025年5月23日 星期五

Split youtube into chapters

yt-dlp -f 234+602 --split-chapters --yes-playlist https://www.youtube.com/watch?v=p6sGUJUwQp0&t=563s

 

 

2025年5月15日 星期四

Graphviz dot kernel

 cf: https://github.com/laixintao/jupyter-dot-kernel

  1. chiao@kpchiao9600k-2204:~$ . .bashrc_anaconda
  2. (base) chiao@kpchiao9600k-2204:~$ pip install dot_kernel
  3. (base) chiao@kpchiao9600k-2204:~$ install-dot-kernel
  4. Done.
  5. In jupyter lab, open with dot kernel: Launcher -> Dot
  6. Edit the dot source in code cell and run.
  7. Shift right click mouse on image (Yes! need to press Shift key!). 
  8. Select "另存圖片" or "在新分頁中開啟圖片" 

Open in LibreOffice Draw:

  1. Export dot as svg, say a.svg by
    dot -Tsvg -o a.svg a.dot
  2. Insert image a.svg in draw
  3. Right click the image, and select 斷開
  4. All objects can be edited now

2025年4月19日 星期六

build libpng12

cf: https://askubuntu.com/questions/1404213/install-libpng12-on-ubuntu-22-04

wget https://ppa.launchpadcontent.net/linuxuprising/libpng12/ubuntu/pool/main/libp/libpng/libpng_1.2.54.orig.tar.xz

tar Jxfv libpng_1.2.54.orig.tar.xz

2025年2月6日 星期四

yt-dlp process

  1.  List formats:
    yt-dlp -F <url>
    ID      EXT   RESOLUTION FPS CH │   FILESIZE    TBR PROTO │ VCODEC           VBR ACODEC      ABR ASR MORE INFO
    ...
    244     webm  854x480     30    │  268.65MiB   891k https │ vp9             891k video only          480p, webm_dash
    136     mp4   1280x720    30    │  695.07MiB  2304k https │ avc1.4d401f    2304k video only          720p, mp4_dash
    247     webm  1280x720    30    │  666.19MiB  2208k https │ vp9            2208k video only          720p, webm_dash
    311     mp4   1280x720    60    │ ~  1.12GiB  3800k m3u8  │ avc1.4D4020    3800k video only
    ...
  2. Download the desired format: e.g. ID:136
    yt-dlp -f 136 <url>
  3. Done
  4. "-------------------------------------------------------------------------------"
    echo "If get the message HTTP:403 Forbidden"
    echo "update yt-dlp by running:"
    echo "sudo yt-dlp -U"
    echo "2025-02-07, Chiao"
    echo "-------------------------------------------------------------------------------"

網誌存檔