send HTTP POST to the other URL with Basic Authorization by php cURL
主要重點在 1) 產生 postdata array 2) 檢查 response http status code 3) curl_options
主要重點在 1) 產生 postdata array 2) 檢查 response http status code 3) curl_options
目前看來有兩個方式,都可以 work
主要參考https://www.sitepoint.com/how-to-use-ssltls-with-node-js/ 依照順序是 先產生一個 RSA 2048 bit 的 key 產生一個 certification signing request 如果測試用可以加上第三步驟,把加密移除掉 最後做 self-sign,如果沒有用第三步驟地話要把 server.key 換為 server.enc.key $ openssl genrsa -des3 -out server.enc.key 2048 $ openssl req -new -key server.enc.key -out server.csr $ openssl rsa -in server.enc.key -out server.key $ openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt 然後就可以拿去 node.js 用了 […]
在一般狀況下其實不需要自訂404 page也不會怎麼樣,但是如果用 phalcon dev tools 做 CRUD 頁面出來,有些狀況可能是不需要 create 資料的,比方說對 log 只需要看,沒有道理從頁面上手動 create
人總是會有手殘眼糊腦弱的時候,總要有補救辦法。
最常用到的狀況大概就是在新開的 branch 上做了很久,但是自以為是在 master 上,時間久了要 merge 卻是個眼花撩亂,只好直接拿這 branch 蓋掉 master。
因為在 centos 7 上面要做 swapfile, 結果用 fallocate 出來的不能用,所以順便查一下
預設 node.js 的 log file 會一直 append 上去,所以結果就是越來越多直到爆炸為止
主要參考這篇跟這篇 有些實用的命令另列於下 $ sudo apache2ctl configtest