Skip to content

Instantly share code, notes, and snippets.

@nazgob
nazgob / ctags.setup
Created January 6, 2012 13:44
ctags setup on mac
# you have ctags but it does not work...
$ ctags -R --exclude=.git --exclude=log *
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
#you need to get new ctags, i recommend homebrew but anything will work
$ brew install ctags
#alias ctags if you used homebrew
$ alias ctags="`brew --prefix`/bin/ctags"
# -*- coding: utf-8 -*-
# MacRuby - Dispatch::Source のサンプル
# 変更を監視するファイル
path = File.expand_path "~/test.txt"
gcdque = Dispatch::Queue.new('sample')
gcdsem = Dispatch::Semaphore.new(0)
fmask = Dispatch::Source::VNODE_DELETE | Dispatch::Source::VNODE_WRITE
@matchy256
matchy256 / rec_radiko.sh
Last active October 31, 2023 08:23 — forked from saiten/rec_radiko.sh
簡易Radiko録音スクリプト
#!/bin/bash
LANG=ja_JP.utf8
pid=$$
date=`date '+%Y-%m-%d-%H_%M'`
outdir="."
if [ $# -le 1 ]; then