2020/01/06 にっき

SQL Client

bdash入れてみた

% yay -S bdash

github.com

タブ消化

私はつよくなさそう

speakerdeck.com

200、、、、

engineer-lab.findy-code.io

ruby-signature

Symbol をやる

docs.google.com

まあぼちぼち今週あたりで終わらせたい

ruby-jp

漫画を紹介するチャンネルと行動規範の相性が悪そうに思う

Scrapboxの通知をfeedからIncomming Webhookに変えたのでいい感じの通知になったと思う。

openresolve

開発環境で特定のドメイン127.0.0.1に向けたいんだけどそれ以外の名前解決には普通のDNSを使いたい

ということでArchLinuxのWikiを読むと、あ、はい...macOSのDNSは便利なんだなあ

It is possible to use specific DNS resolvers when querying specific domain names. This is particularly useful when connecting to a VPN, so that queries to the VPN network are resolved by the VPN's DNS, while queries to the internet will still be resolved by your standard DNS resolver. It can also be used on local networks. To implement it, you need to use a local resolver because glibc does not support it. https://wiki.archlinux.org/index.php/Domain_name_resolution

でNSSよく知らなかったので調べていた。 NSSはName Server Switchの略。

% cat /etc/nsswitch.conf
# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.

passwd: files mymachines systemd
group: files mymachines systemd
shadow: files

publickey: files

hosts: files mymachines myhostname resolve [!UNAVAIL=return] dns
networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files

mymachinesman nss-mymachines すると説明が読める。systemd-machined に登録されてるマシンを名前解決してくれるっぽい。べんり... この中の resolveman nss-resolve すると systemd-resolved 経由で解決すると書いてる。

       To activate the NSS module, add "resolve" to the line starting with "hosts:" in /etc/nsswitch.conf. Specifically, it is
       recommended to place "resolve" early in /etc/nsswitch.conf's "hosts:" line (but after the "files" or "mymachines" entries),
       right before the "dns" entry if it exists, followed by "[!UNAVAIL=return]", to ensure DNS queries are always routed via
       systemd-resolved(8) if it is running, but are routed to nss-dns if this service is not available.

なるほどなあ(脇道)

名前解決したいのは .test ドメインだけなのでそのための設定方法を man resolved.conf して調べる

       /etc/systemd/resolved.conf

       /etc/systemd/resolved.conf.d/*.conf

       /run/systemd/resolved.conf.d/*.conf

       /usr/lib/systemd/resolved.conf.d/*.conf

この辺におけばいいっぽい

で、なんか man resolv.conf してもでないなあと思って調べたら man-pages パッケージ入れないとマニュアル見れないっぽい。

# pacman -S man-pages した。

なんかでもやっぱり特定ドメインだけ通信ふりわけるみたいなのはdnsmasqなり入れないとだめだな。 雑にhostsに書き出すことで対処する(だめです)

るりま

昨年、るりまでSEO頑張ってるけどなかなか上に表示されないので協力をお願いしたいみたいなメール1を送ったところ対応してもらえた。感謝。

本サイトは今後閉鎖する予定です。 Rubyリファレンスについては、るりまプロジェクトによる「るりまサーチ」のご利用をおすすめします。 https://ref.xaio.jp/ruby

RuboCop

これを見ていて

github.com

こうかなと思ったので書いた

github.com

RuboCopなんもわからん


  1. 実際はもっと無作法な文体

いいなと思ったらKyashでお金を下さい
20191128011151
GitHubスポンサーも受け付けています
https://github.com/sponsors/hanachin/