自己紹介
なまえ: しとりー
Twitte: @ndxbn
やったこと
- 自分の記事『GCE の無料枠のサーバを立るときに、初見でハマりそうなところ』の更新
- GCP の他の無料枠で、使ったことのないものを使ってみた
-
StubbyDB に Pull Request 出した
- awsome-nodejs かなにかの Pull Reuqest で見かけたリポジトリだったので見に行った。
- そしたら、 README がわりとぶっ壊れてた感あったので、直した。
-
ndxbn/anyenv に shellcheck 入れようとして、死んだ
- 前にもやろうと思ったのだけれど、再挑戦してみて、やっぱり時間たりなさそうだったから途中で諦めた。
- 今朝建てた自宅の nginx の設定ファイルの直し
- の途中で時間きた。
自分の記事直し
『GCE の無料枠のサーバを立るときに、初見でハマりそうなところ』
日本語おかしかったりしたところが目についたので、直した。
swapon とかの説明がないので、それを追記しなきゃなぁと思ったのだけれど、手を付けられなかった。
GCP の使ったことのない無料枠のものを使ってみた
『GCE の無料枠のサーバを立るときに、初見でハマりそうなところ』に続く、「GCP 無料」関連の記事のネタ探し。
- Google App Engine
- Google Stackdrive
- Google Cloud Function
Cloud Function とかは単体で使えるものだし、すぐにネタにできそうなものは見つからなかった。
App Engine と Cloud Function と Cloud Datastore あたりを組み合わせた感じのアプリケーションでも作って、記事にしようかな。
StubbyDB に Pull Request だした
README の header (## 見出し2
)のシンタックスが効いていないのを直した。
https://github.com/NaturalIntelligence/StubbyDB/pull/1
なんかの awesome をみてて、辿り着いた。
awesome-nodejs の Pull Request経由かな?
StubbyDB に Pull Request だした(後日談)
結局、「移管した、このリポジトリはメンテされてない」っていう注意書きを見落としてて、 Pull Requeste 自体は Close された。
「メンテしてないんだったら、 Archive しようぜ」って提案したら、「そうするわww」って返事来て、移管前のリポジトリは Archive された。
ndxbn/anyenv に shellcheck 入れようとして、死んだ
anyenv について、その後やったこと
ぴね氏に「大抵の人って単に時間内だけだし、いえばコラボレーターに入れてくれるんじゃね」と言われたので、連絡取ってみた。
- riywo/anyenv(本家の方) が、Pull Request や Closeできる ISSUE まで放置されてて、メンテされてなさそう
- オーナーの人に「メンテしないんならするから、権限よこせ」と言った
- 「具体的に、どの Pull Request をマージすればいいの?」](https://twitter.com/riywo/status/967643652120981506)という返答
- 見るからに「メンテする気がない」「メンテを引き継ぐ気もない」という最悪のパターンだったので、フォーク先でメンテ継続することに
anyenv について、補足
ちなみに、 anyenv.org なるものもあるようだがこちらは全く別の人がやったやつに使われる予定だった(?)ようだ。(案の定放置されている。)
今朝建てた自宅の nginx の設定ファイルの直し
yum install nginx && certbot certonly --nginx
しただけの状態だったので、直した。
before
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
server {
server_name www.ndxbn.tokyo;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/www.ndxbn.tokyo/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/www.ndxbn.tokyo/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
# Settings for a TLS enabled server.
#
# server {
# listen 443 ssl http2 default_server;
# listen [::]:443 ssl http2 default_server;
# server_name _;
# root /usr/share/nginx/html;
#
# ssl_certificate "/etc/pki/nginx/server.crt";
# ssl_certificate_key "/etc/pki/nginx/private/server.key";
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 10m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
#
# # Load configuration files for the default server block.
# include /etc/nginx/default.d/*.conf;
#
# location / {
# }
#
# error_page 404 /404.html;
# location = /40x.html {
# }
#
# error_page 500 502 503 504 /50x.html;
# location = /50x.html {
# }
# }
server {
if ($host = www.ndxbn.tokyo) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80 default_server;
listen [::]:80 default_server;
server_name www.ndxbn.tokyo;
return 404; # managed by Certbot
}}
after
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
server {
server_name www.ndxbn.tokyo;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/www.ndxbn.tokyo/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/www.ndxbn.tokyo/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = www.ndxbn.tokyo) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80 default_server;
listen [::]:80 default_server;
server_name www.ndxbn.tokyo;
return 404; # managed by Certbot
}
}