Skip to content

Instantly share code, notes, and snippets.

View kazken3's full-sized avatar
🍙

Kentaro Kazuhama kazken3

🍙
View GitHub Profile
@kazutan
kazutan / vagrant_on_win81.md
Last active February 4, 2016 04:56
vagrantをwin8.1で使うためのメモ

vagrantをWin8.1で使うためのメモ

毎回ググるのが面倒になったので。触る度に更新予定

必要なアプリケーションのダウンロード

とにもかくにもterminalが必要なので、その準備。以下の記事を参考に作ってみる

まずはMSYS2を落としてくる

@jhass
jhass / 1-Yubikey_session_lock.md
Last active June 12, 2024 09:16
Lock (Gnome) session when removing Yubico U2F key

Setup

  1. Copy 99-u2f_lock_screen.rules to /etc/udev/rules.d.
  2. Copy gnome_lock_all_sessions to /usr/local/bin.
  3. Mark gnome_lock_all_sessions as executable: chmod +x /usr/local/bin/gnome_lock_all_sessions
  4. Reload udev: udevadm control -R
@voluntas
voluntas / webrtc.rst
Last active June 27, 2024 02:25
WebRTC コトハジメ
@katzchang
katzchang / rule.md
Last active September 15, 2016 07:36
新社会人が守るべきだがほとんど誰も教えてくれない社会のルール

新社会人が守るべきだがほとんど誰も教えてくれない社会のルール

  • トイレットペーパーホルダーが二つあるトイレでは、紙が少ないほうを先に使いましょう
@kiyotune
kiyotune / find_much_conditions.sh
Created October 3, 2012 08:38
複数のディレクトリを除外してfindしてあれこれする
# 除外するディレクトリ:.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'
@marxjohnson
marxjohnson / BBR.rb
Created January 7, 2012 14:22
A script to detect and report Boogie Board Rip events on linux via USB
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?