Skip to content

Instantly share code, notes, and snippets.

View woowee's full-sized avatar

woowee woowee

  • tokyo
View GitHub Profile
@woowee
woowee / temp.plist
Created January 11, 2013 18:27
recording of the radiko. an example of the ascii format plist.
{
Label = example.radiko.tbs1.baka;
ProgramArguments = (
"/Users/example/radilko/radiko.sh",
"TBS",
120,
"-t",
"深夜の馬鹿力",
"-a",
"伊集院光",
@woowee
woowee / radiko.sh
Last active December 10, 2015 20:58
recording of the radiko.
#!/bin/bash
export LANG="ja_JP.UTF-8" LC_ALL="ja_JP.UTF-8"
datetime=`date '+%Y%m%d_%H%M'`
date=`date '+%Y年%m月%d日'`
year=`date '+%Y'`
radikodir=${HOME}/radiko/ # work ディレクトリ
cachedir=${radikodir}cache/ # アレがあれなトコ
mp3dir=${radikodir}_1recorded/ # レコーディングデータの出力場所
@woowee
woowee / xvid.rb
Last active December 10, 2015 04:58
xvid.org been down? [on 27th, Dec 212] i tried to install ffmpeg using homebrew though ...
require 'formula'
class Xvid < Formula
url 'https://fossies.org/unix/privat/xvidcore-1.3.2.tar.gz'
homepage 'https://fossies.org'
sha1 '56e065d331545ade04c63c91153b9624b51d6e1b'
def install
cd 'build/generic' do
system "./configure", "--disable-assembly", "--prefix=#{prefix}"
@woowee
woowee / fontforge
Created March 25, 2012 02:46
I cannot install 'fontforge', error?
==> Downloading http://downloads.sourceforge.net/project/fontforge/fontforge-source/fontforge_full-20110222.tar.bz2
Already downloaded: /Library/Caches/Homebrew/fontforge-20110222.tar.bz2
/usr/bin/tar xf /Library/Caches/Homebrew/fontforge-20110222.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/fontforge/20110222 --enable-double --without-freetype-bytecode
./configure --prefix=/usr/local/Cellar/fontforge/20110222 --enable-double --without-freetype-bytecode
checking for gcc... /usr/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
@woowee
woowee / fontforge_err
Created March 25, 2012 02:54
fontforge error?
==> Downloading http://downloads.sourceforge.net/project/fontforge/fontforge-source/fontforge_full-20110222.tar.bz2
Already downloaded: /Library/Caches/Homebrew/fontforge-20110222.tar.bz2
/usr/bin/tar xf /Library/Caches/Homebrew/fontforge-20110222.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/fontforge/20110222 --enable-double --without-freetype-bytecode
./configure --prefix=/usr/local/Cellar/fontforge/20110222 --enable-double --without-freetype-bytecode
checking for gcc... /usr/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGKSpYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKcHCBMXGyImVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T
Q29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZVYkY2xhc3NPECgwLjAyNzQ1MTAw
NjcgMC4yMTE3NjQ3MjMxIDAuMjU4ODIzNDg0MiAxTxAoMC4wMzkzODA3NDc4MiAwLjE2
@woowee
woowee / com.googlecode.iterm2.plist
Created October 31, 2014 23:15
com.googlecode.iterm2.plist (Transparency=.6,Window Type=2,Blur Radius=2)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AdjustWindowForFontSizeChange</key>
<true/>
<key>AllowClipboardAccess</key>
<false/>
<key>AnimateDimming</key>
<false/>
@woowee
woowee / japaneseim_yen.sh
Created October 26, 2014 10:57
JapaneseIM
defaults write com.apple.inputmethod.Kotoeri 'JIMPrefCharacterForYenKey' -int 1; killall JapaneseIM
#!/bin/bash -u
set -e
# arg check
modeis=0
msg_err="usage: $0 [--silent|\s]"
if [ $# -eq 1 ]; then
if [ $1 = "--silent" -o $1 = "-s" ]; then
modeis=1
@woowee
woowee / vichrome.vim
Last active August 29, 2015 14:01
Key Mapping / Alias Setting on Vichrome. **Append only**
#
# mymapping
#
# for us keyboard
nmap ; :GoCommandMode
# google
nmap o s
nmap O S
# pinboard
nmap p :Open javascript:q%3Dlocation.href%3Bif(document.getSelection)%7Bd%3Ddocument.getSelection()%3B%7Delse%7Bd%3D%27%27%3B%7D%3Bp%3Ddocument.title%3Bvoid(open(%27https://pinboard.in/add%3Fshowtags%3Dyes%26url%3D%27%2BencodeURIComponent(q)%2B%27%26description%3D%27%2BencodeURIComponent(d)%2B%27%26title%3D%27%2BencodeURIComponent(p),%27Pinboard%27,%27toolbar%3Dno,scrollbars%3Dyes,width%3D750,height%3D700%27))%3B