service: httpAllThroughProxy
provider:
name: aws
runtime: nodejs6.10
stage: dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: httpProxy | |
provider: | |
name: aws | |
runtime: nodejs6.10 | |
stage: dev | |
region: ap-northeast-1 | |
resources: |
非対応 RTSP のストリームを再生するには HTTP に変換するプロキシが必要
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~$LButton:: | |
While GetKeyState("LButton", "P"){ | |
Click | |
Sleep 1 | |
} | |
return | |
f12:: | |
Suspend, Toggle | |
return |
$ youtube-dl --write-sub --sub-lang ja 'https://www.youtube.com/watch?v=NasyGUeNMTs'
字幕がないときは --write-sub
の代わりに、自動生成字幕用の --write-auto-sub
を使う
--sub-format FORMAT
でフォーマットを変更できるらしいが、vtt
以外のサポートはされていないものと思ったほうがいい
これ見る
なにこれ: sequelize deprecated String based operators are now deprecated. Please use Symbol based operators for better security, read more at http://docs.sequelizejs.com/manual/tutorial/querying.html#operators
Sequelize クラスの引数の4つ目に { operatorsAliases: Op }
を追加する。
import Sequelize from "sequelize";
web上の画像を右クリックでs3にアップロードする拡張機能を作りたかった。 chrome拡張機能でコンテキストメニューを追加できる。 画像を選択するとurlが取れる。 canvas使ってurlからバイナリ取ろうとしてセキュリティーエラー出て詰み。
urlからバイナリ取る方法 Get image data in JavaScript? - Stack Overflow
combined形式ログ
192.168.0.1 - - [17/Apr/2014:11:22:33 +0900] "GET /index.html HTTP/1.1" 200 43206 "https://www.google.co.jp/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36"
cat access-log | perl -ne 'print join("\t", /^(.*?) - - \[(.*?)\] "(.*? .*?) (.*?)" (.*?) (.*?) "(.*?)" "(.*?)"/), "\n"' > parsed.log
NewerOlder