跳到主要內容

使用 digital ocean space

官方文檔如下

https://docs.digitalocean.com/products/spaces/reference/s3cmd/

1. 使用s3cmd

centos 安裝s3cmd

$ pip install s3cmd

執行s3cmd

$ s3cmd --help

windows下安裝

下載 s3cmd github https://github.com/s3tools/s3cmd

$ cd s3cmd-master

$ python setup.py install


$ cd /d C:\python36\Scripts

$ python s3cmd --help


初始化

$ s3cmd --configure

依序填入設定

Access Key: DO00Y7GP8K666PJKCCC
Secret Key: +35kvCTiA35/peUl6l8nF1enQQpCCCCCCCCCC
Default Region [US]: sgp1

Use "s3.amazonaws.com" for S3 Endpoint and not modify it to the target Amazon S3.
S3 Endpoint [s3.amazonaws.com]: sgp1.digitaloceanspaces.com

Use "%(bucket)s.s3.amazonaws.com" to the target Amazon S3. "%(bucket)s" and "%(location)s" vars can be used
if the target S3 system supports dns based buckets.
DNS-style bucket+hostname:port template for accessing a bucket [%(bucket)s.s3.amazonaws.com]: %(bucket)s.sgp1.digitaloceanspaces.com

Encryption password is used to protect your files from reading
by unauthorized persons while in transfer to S3
Encryption password: 111111

Path to GPG program:

When using secure HTTPS protocol all communication with Amazon S3
servers is protected from 3rd party eavesdropping. This method is
slower than plain HTTP, and can only be proxied with Python 2.7 or newer
Use HTTPS protocol [Yes]:

On some networks all internet access must go through a HTTP proxy.
Try setting it here if you can't connect to S3 directly
HTTP Proxy server name:

New settings:
  Access Key: DO00Y7GP8K666PJCCC
  Secret Key: +35kvCTiA35/peUl6l8nF1enQQpCCCCCCCC
  Default Region: sgp1
  S3 Endpoint: sgp1.digitaloceanspaces.com
  DNS-style bucket+hostname:port template for accessing a bucket: %(bucket)s.sgp1.digitaloceanspaces.com
  Encryption password: CCCCCC
  Path to GPG program: None
  Use HTTPS protocol: True
  HTTP Proxy server name:
  HTTP Proxy server port: 0

Test access with supplied credentials? [Y/n]
Please wait, attempting to list all buckets...
Success. Your access key and secret key worked fine :-)

Now verifying that encryption works...
Not configured. Never mind.

Save settings? [y/N] Y
Configuration saved to 'C:\Users\joker\AppData\Roaming\s3cmd.ini'


2. 使用 Cyberduck

下載網址: https://cyberduck.io/

安裝啟動後, 點左上角 Open Connection, 填入設定

選擇 Amazon s3, Server: sgp1.digitaloceanspaces.com

Access Key ID: DO00Y7GP8K666PJKZAB9

Secret Access Key: ***********************


Connect 後可以查看到所有 Bucket


單獨使用 test1 bucket, 查看 digital ocean spaces test bucket 的 end point


輸入在 server 欄位, 其他跟上面一樣填入, 關閉設定視窗後雙擊 設定連接 bucket


3. 使用 s3 browser for windows

下載網址 E2E Cloud

左上角 Account -> Manage Account, 彈出視窗點選 Add


連接後可以查看到檔案清單














留言

這個網誌中的熱門文章

comfyUI 運行出錯 FATAL: kernel fmha_cutlassF_f32_aligned_64x64_rf_sm80 is for sm80-sm100, but was built for sm37

在公司的圖形機器上運行 ComfyUI + WAN 時出現下面問題   FATAL: kernel fmha_cutlassF_f32_aligned_64x64_rf_sm80 is for sm80-sm100, but was built for sm37 算圖機使用的 torch 版本如下 torch 2.7.1+cu118 torchaudio 2.7.1+cu118 torchsde 0.2.6 torchvision 0.22.1+cu118 檢查 cuda 版本 GeForce RTX 5090 CUDA Version: 13.0 從官網看 RTX 5090 支持 12.0 版本 CUDA 這是因爲本地的 pytorch 版本太舊 到官網查詢版本 https://pytorch.org/get-started/locally/ $ pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu126 查詢目前版本 $ pip list | findstr torch 使用這個版本后出現下面問題 後面查詢 no kernel image 問題其實還是 pytorch 並不支持 sm_120( Blackwell架構) 查看后發現并沒有支持 sm_120 CUDA architectures : [' sm_37 ', 'sm_50', 'sm_60', 'sm_61', 'sm_70', 'sm_75', 'sm_80', 'sm_86', 'sm_90', 'compute_37'] sm_50, sm_52, sm_53 : Maxwell (GTX 900 系列) sm_60, sm_61, sm_62 : Pascal (GTX 1000, P100) sm_70, sm_72, sm_75 : Volta/Turing (V100, RTX ...
仔細回想最近的作的 stripping level,還是回頭來說說 import dll 這回事吧;因為從事遊戲改版所以很多事情是言不由衷的,某天發現 server 發送給 client 封包是 big5 encode,第一時間覺得為何不用 unicode 呢?但仔細想也許是遊戲剛規劃時 DB 都已經存了 big5 編碼字串可能已經改不動了,想想也是就算了,結果一包到 android 就發生了 GetEncoding error,因為 android 是採用 unicode 編碼的,在網路上找了找終於找到解法,可以參考底下網址的討論串,主要是下載  I18N.dll、I18N.CJK.dll、I18N.West.dll 並丟到 Assets 資料夾下就可以了,當時還不是很了解為什麼只知道把 dll 都丟進去在手機上就可以跑,直到使用 stripping level 後整個又掛了,才認真去 trace, 問題在於勾選 strip asm 包檔後 I18N.CJK 就沒被包到 apk 裡面,而要解決 strip asm(~"~ 沒辦法 strip asm 很吸引我,一定要想辦法克服)採用了 link.xml 的方式,但這樣要怎麼知道弄進哪些 lib 呢?

unity 在 STANDALONE 下的解析度問題集合

目前常規的PC游戲顯示模式有幾種模式如下, 一、視窗模式( FullScreenMode. Windowed) 二、獨占模式( FullScreenMode. ExclusiveFullScreen ) FPS游戲多數使用獨占模式,也是最早的全屏幕模式,性能較好,但使用 Alt+Tab 時切換會出現閃頻 三、無邊框模式 ( FullScreenMode. FullScreenWindow ) 目前游戲多數使用這個模式,開啓後切換不會出現閃屏 問題1、切換解析度時屏幕出現黑屏無訊號 Exclusive Fullscreen 必須使用顯示卡的「原生支援模式」( Display Modes ),Windows 桌面「縮放 / 插值後」能顯示許多非原生模式,但 Unity 的 Exclusive Fullscreen 只能切換到顯示卡真正支援的模式 ,不能靠 OS 自動補正。 如果顯示卡沒有 真正的 1280×800 模式: Windows 桌面會用 GPU scaling → 顯示正常 Unity Exclusive Fullscreen 嘗試切換 → 找不到完全匹配的 mode → 會改用 fallback (通常 1280×720 或 native resolution ) 結果畫面偏移、拉伸或出現 左側黑屏 所以: 你以為進入了 1280×800,但實際上顯卡沒有成功切換到這個 mode。 問題2、兩個屏幕,一個 1080p,一個2k,切換2k解析度時出現錯誤,游戲無法調整到對應的2k解析度 目前沒有處理這個問題。 問題3、無邊框模式切換獨占模式無效 在主要解析度,譬如設備解析度為 1920 X 1080 ,情況下從無邊框模式切換到獨占模式,雖然切換成功,但實際上卻是無邊框模式,這是 windows 全螢幕最佳化處理的結果, unity 無法干涉。 原因是  Windows 10/11 強制 Fullscreen Optimizations (全螢幕最佳化),導致獨占模式被轉成 Borderless Fullscreen Windows 會把要求 Exclusive Fullscreen 的遊戲「包裝成」 ➡ Borderless Fullscreen + 可變刷新率 + 全螢幕優化圖層 這樣能快速切換視窗、疊加 U...