超雑にまとめました。修正してください。
登場人物
- アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。
- 後輩: 頼んでばっかしで役に立たない。
- サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。
- プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
worker_processes 1; | |
error_log logs/error.log; | |
daemon off; | |
events { | |
worker_connections 1024; | |
} |
var checkUrl = "取得したいURL"; | |
function getTitle(url,callback){ | |
var xhr=new XMLHttpRequest() | |
xhr.onload = function() { | |
var title=this.responseXML.title||"no title" | |
callback(url,title) | |
} | |
xhr.open("GET", url ,true); | |
xhr.responseType="document"; |
https://ja.wikipedia.org/wiki/JavaScript_Object_Notation
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit
#!/bin/bash | |
PECO_CMD="peco" | |
KUBECTL_CMD="kubectl" | |
if ! hash "${PECO_CMD}" 2> /dev/null; then | |
>&2 echo "error: ${PECO_CMD} is not installed" | |
>&2 echo "see https://github.com/peco/peco" | |
exit 1 | |
fi |