Skip to content

Instantly share code, notes, and snippets.

@fujimogn
fujimogn / gist:1647157
Created January 20, 2012 12:24
使ってみるよーー
Hello World!
require 'formula'
class TmuxIterm2 < Formula
url 'http://iterm2.googlecode.com/files/tmux-for-iTerm2-20120203.tar.gz'
sha1 'b0c78e3f142cc735f0518951c04eab947ca7c95b'
homepage 'http://code.google.com/p/iterm2/'
depends_on 'libevent'
def install
@fujimogn
fujimogn / gist:2198987
Created March 25, 2012 18:51
microdata breadcrumb helper for twitterbootstrap
# microdata breadcrumb helper for twitterbootstrap
# http://support.google.com/webmasters/bin/answer.py?hl=ja&answer=176035
#
# :example
# array = [
# [{:name => name, :url => url },{:name => name :url => url}],
# [{:name => name, :url => url },{:name => name :url => url}]
# ]
# options = {}
#
@fujimogn
fujimogn / skype
Created October 19, 2012 07:47
MacでSkypeを複数起動。でもskkとかclipboadをshareできないと色々と面倒くさいのでどうしようか(´・ω・`)
#!/bin/sh
### check ostype
if [ ! `uname -s` == "Darwin" ]; then
echo "ERROR: only works with Mac OS X" >&2
exit 1
fi
### check app
app="/Applications/Skype.app/Contents/MacOS/Skype"
@fujimogn
fujimogn / Guardfile
Created December 5, 2012 02:08
livereload for wordless gem
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
# wordless
guard :shell do
# sass & less
watch(%r{^wp-content/themes/(\w+)/theme/assets/(.+)\.(s[ac]ss|less|css)$}){|m|
`rm -rf wp-content/themes/#{m[1]}/tmp/* && wordless clean && wordless compile`
}
@fujimogn
fujimogn / homebrew.mxcl.pdnsd.plist
Created August 20, 2012 06:01
Installing pdnsd from Homebrew

Installing pdnsd from homebrew as root user.

$ brew install pdnsd

$ sudo chown -R nobody /usr/local/var/cache/pdnsd

$ curl -L http://goo.gl/kMlyQ -o pdnsd.conf
$ mv pdnsd.conf /usr/local/etc
$ sudo chown root /usr/local/etc/pdnsd.conf
#!/bin/bash
#---------------------------------------#
# 設定開始 #
#---------------------------------------#
# インタフェース名定義
LAN=eth0
#---------------------------------------#
# frozen_string_literal: true
module UserDecorator
include PersonDecorator
SCHOOL_AGE = [
[ 0, nil, nil, '未就学' ],
[ 1, nil, nil, '未就学' ],
[ 2, nil, nil, '未就学' ],
[ 3, nil, '年少', '未就学' ],
@fujimogn
fujimogn / import.ja.yml
Last active February 12, 2022 19:03
Rails Admin Import (https://github.com/stephskardal/rails_admin_import) の日本語locales
ja:
admin:
actions:
import:
breadcrumb: インポート
bulk_link: インポート
done: インポートしました
link: インポート
menu: インポート
title: インポート
@fujimogn
fujimogn / Gemfile
Last active February 16, 2022 13:36
`bin/dev`したらブラウザで自動でlocalhost:3000開く設定
group :development do
## (略)
gem 'launchy' # 追加
## (略)
end