從 GitLab 11.6.3 升級到 13.7.4
memo 一下, 免得升級 production 的時候GG
memo 一下, 免得升級 production 的時候GG
跟同事C一起弄Twilio 網頁端視訊聊天室,先前都很正常,最近卻開始出現了奇妙的狀況。深究原因是因為async的 api request, 加上 Twilio 會在最後一個聊天室成員離開後就將其關閉造成。
gitlab 理論上只能有一個對外網址,在 /etc/gitlab/gitlab.rb 內 (相關設定請參考 https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab ) 而做完修改之後執行 gitlab-ctl reconfiguration 則會產生 nginx 的 config file, 放在 /var/opt/gitlab/nginx/conf/gitlab-http.conf 所以如果需要同時 expose http 和 https 的話,只要在 gitlab-http.conf 裏頭修改就可以,例如這樣 server { listen *:80; listen *:443 ssl; ssl_certificate /var/www/ssl/xxx.chained.crt; ssl_certificate_key /var/www/ssl/xxx.key; ssl_protocols TLSv1.2; ## 以下省略 } 修改之後記得重新啟動 gitlab nginx ($ gitlab-ctl restart nginx) 就可以了
Source from colleague, who found https://sunset1995.github.io/HorizonNet/ for 360 image horizontal correction.
phpmyadmin version 4.6.6deb5ubuntu0.5,其他版本不確定有沒有
最近遇到的問題,只能說中國網路神奇事情多多
Unity 可以將專案 deploy 到 web 環境中執行,但此時送 http api request 的時候,就會有 CORS 需要處理。
許多用 php 開發的軟體(比方說 wordpress)通常會用 mail() 來呼叫系統預設的 mail service 寄信,但 ubuntu 預設是沒有安裝,所以得自己來。
在之前一篇原本已經打算用 AWS Media Converter,畢竟價錢算是合理,但後來想到還有閒置的便宜 cloud instance (在 google cloud, 1vCPU, 1.7G ram, 50G HDD),不如來試試看在上面跑 ffmpeg performance。 在 ubuntu 18.04lts 上安裝 ffmpeg 其實還蠻容易的,apt-get install 就可以解決,而且 dependent libraries一個不漏。 用 aws media converter將 3xMB 的 1080p 檔案(bit rate約 110000kbps)切段之後大約剩下28MB,有稍微被壓縮過,花費大概 20秒時間。 。 如果要差不多的壓縮率,用 ffmpeg 指定 quality level 16 (參數 crf,參考https://superuser.com/questions/525928/ffmpeg-keeping-quality-during-conversion)。最終費時約 50 秒,比AWS是明顯地慢但不至於太誇張。 $ ffmpeg -i 1080.mp4 -map 0 -codec:v […]
雖然最後算算價格跟考慮使用情境應該不會採用這樣的 solution,但還是來記錄一下。