- トイレットペーパーホルダーが二つあるトイレでは、紙が少ないほうを先に使いましょう
This file contains 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
begin | |
lsusb = `lsusb` | |
if lsusb.split("\n").select{|l| l.include? "2047:ffe7"}.count == 0 | |
raise "Boogie Board Rip not currently connected" | |
end | |
begin | |
dmesg = `dmesg` | |
bbdev = dmesg.split("\n").select{|l| l.match "2047:FFE7.*hidraw[0-9]"}.pop.match("(hidraw[0-9]+)").to_s | |
raise RuntimeError if bbdev.empty? |
This file contains 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
# 除外するディレクトリ:.svn, vendors, data, tmp, tests | |
# ファイル一覧を表示 | |
find ./ -type d \( -name '.svn' -o -name 'vendors' -o -name 'data' -o -name 'tmp' -o -name 'tests' \) -prune -o -type f -print | |
# ファイル名(*.php)で絞り込み | |
find ./ -type d \( -name '.svn' -o -name 'vendors' -o -name 'data' -o -name 'tmp' -o -name 'tests' \) -prune -o -type f -name '*.php' -print | |
# 複数のディレクトリをまたいだファイルの一括検索 | |
find ./ -type d \( -name '.svn' -o -name 'vendors' -o -name 'data' -o -name 'tmp' -o -name 'tests' \) -prune -o -type f -name '*.php' -print | xargs grep 'test_string' |
更新: | 2024-05-20 |
---|---|
作者: | @voluntas |
バージョン: | 2024.1 |
URL: | https://voluntas.github.io/ |
毎回ググるのが面倒になったので。触る度に更新予定
とにもかくにもterminalが必要なので、その準備。以下の記事を参考に作ってみる
まずはMSYS2を落としてくる