Azure function

headers: { ‘Content-Type’: ‘application/json’ }, body: { ip: ( req.headers[‘x-forwarded-for’].split(":")[0] //req.headers[‘x-forwarded-for’] //|| //req.connection.remoteAddress || //req.socket.remoteAddress //|| //req.connection.socket.remoteAddress ) }

2017-12-06 · 1 min · 19 words · Me

[轉]IMF GDP

https://www.youtube.com/watch?v=4ExDkvchC6Q 3:06開始 GDP2萬多,但實質購買力是5萬 有錢人存了很多錢 國外被掏空,經濟競爭力沒了,老闆不想產業升級

2017-12-02 · 1 min · 5 words · Me

[轉]第一次在 GCP Storage 放置靜態網頁就上手

https://coder.tw/?p=7626 1. install gcloud 2. gcloud auth login `email` #login auth email, get rights for change 公開 2.1 gcloud auth revoke `email` #remove auth email https://cloud.google.com/sdk/gcloud/reference/auth/login 設定 Bucket 新上傳的檔案預設公開,只能針對 Bucket 設定,不朔及既往 gsutil defacl set public-read gs://s.ntust.me 設定某資料夾(or Bucket)底下所有檔案、目錄為公開 gsutil acl set -r public-read gs://s.ntust.me/iatp

2017-11-27 · 1 min · 44 words · Me

每季報告 第四季:因為明年3月才會公布財報,所以第三季公佈後到明年3月,近半年時間,是沒有任何依據,第3季公佈成績好,自然可以撐到明年3月,公佈成績不好,也是同樣不好到明年3月,除非有特殊情況,否則沒人看第四季的。 外資 在大洗盤,把散戶洗走:外資看好這支股票,為了增加獲利,壓低股價,嚇散戶自願出場,買下低成本股票,增加持有股數,等待最終獲利。 這段期間不可能讓成本上升,就算上升也會想盡辨法壓低,如果壓不下來,外資持有成本也同樣壓不下來,獲利就不能提高。 一般散戶受不了壓力,就直接出場,因為這是長時間,非短期操作。 要補單要在大盤情況也不好大跌跟補單

2017-11-25 · 1 min · 7 words · Me

nginx proxy pass [ best practices ] 2 for sysctl tcp

.https://blogs.dropbox.com/tech/2017/09/optimizing-web-servers-for-high-throughput-and-low-latency/ http://www.queryadmin.com/1654/tuning-linux-kernel-tcp-parameters-sysctl/ https://blogs.dropbox.com/tech/2017/09/optimizing-web-servers-for-high-throughput-and-low-latency/ Don’t USE net.ipv4.tcp_tw_recycle=1 —don’t use it—it was already broken for users behind NAT, but if you upgrade your kernel, it will be broken for everyone. net.ipv4.tcp_timestamps=0 —don’t disable them unless you know all side-effects and you are OK with them. For example, one of non-obvious side effects is that you will loose window scaling and SACK options on syncookies. https://read01.com/zh-tw/KBgmj7.html Don’t USE net.ipv4.tcp_tw_recycle=1 net.ipv4.tcp_tw_reuse=1 /*Only you know, sometime can do*/ ...

2017-11-18 · 4 min · 666 words · Me