Secure Vibe Coding Starts Here. Wherever code is built, we keep it secure. Learn more →

Intro UNIX コマンドを SQL で抽出できるツール qq を作った。 というエントリを読んで、そういえば似たようなものを作ってたなと思い出した。 自分の dotfiles の中にある、便利コマンド集の中にある selects についてである。 このコマンドは SQL という検索を記述的に表現する共通言語をファイル検索に応用し、Ruby の動的言語として表現力を使って実装したものといえる。 その実装方法と実行例などについて記す。 selects 結論からいうとこういうコマンドだ。 $ selects mtime, size, basename from './entries/**/*' where extname '==' '.md' and size '>' 1000 order by mtime 2016-07-06 22:45:44 +0900 18437 web-font-
■ メール通知の代わりにPushbulletを使う 使っているサーバのちょっしたステータスが変わったのを知りたかったり、毎朝念のため数値を監視してるサービスなんかがあって、cronでメールを飛ばすようにしていたのだけど、見てすぐ捨てるものばかりなのでPushbulletで代替してしまうことにした。どうせ確認するのはスマホだし。 PushbulletのAPIはシンプルだけど、もっと楽するためにgemを探すといくつか見つかるが、pushbullet gemは作りがいまいち。個人的にはruby-pushbullet gemがいい感じだったのでこれを使うことに。といってもこんな程度(pushmeコマンド): require 'pushbullet' Pushbullet.api_token = 'MY_API_TOKEN' Pushbullet::Contact.me.push_note(ARGV
このドメインを購入する。 gkbr.me 2018 Copyright. All Rights Reserved. The Sponsored Listings displayed above are served automatically by a third party. Neither the service provider nor the domain owner maintain any relationship with the advertisers. In case of trademark issues please contact the domain owner directly (contact information can be found in whois). Privacy Policy
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く