Skip to content

Instantly share code, notes, and snippets.

View woowee's full-sized avatar

woowee woowee

  • tokyo
View GitHub Profile
@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
@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 / 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 / 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 / example.radiko.tbs1.baka.plist
Last active December 10, 2015 23:58
recording of the radiko. an example of the xml format plist.
<?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>Label</key>
<string>koo.radiko.tbs1.baka</string>
<key>ProgramArguments</key>
<array>
<string>/Users/koo/radiko/radiko.sh</string>
<string>TBS</string>
@woowee
woowee / CapsLock2Ctrl.reg
Created January 18, 2013 01:05
windows settings ; - [ctrl] を [caps lock] に. - CapsLock2Ctrl.reg で保存し,ダブルクリック!
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
@woowee
woowee / AutoHotkey.ahk
Last active December 11, 2015 06:48
windows settings ; - ime の on/of は [無変換] + [space] に. - authotley を使用. - C:\Users\{YourAccount}\Documents に配置.
#z::Run www.autohotkey.com
; ------------------------------ ime on/of : [無変換] + [space]
vk1Dsc07B & Space::Send, {vkF3sc029}
; ⇒以下は,試行錯誤の結果,使わないことに.
; vk1Dsc07B & Space::Send, {vkF4sc029}
; !Space::Send, {vkF3sc029} ; alt + space
; !Space::Send, {vkF4sc029} ; alt + space
; #Space::Send, {vkF4sc029} ; windows key + space
@woowee
woowee / mid3v2.py
Last active December 11, 2015 22:38
just idea/memo. no checking...
#!/usr/bin/env python
# Pretend to be /usr/bin/id3v2 from id3lib, sort of.
# Copyright 2005 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
import os
import sys
#!/usr/bin/env bash
# ~/.osx — http://mths.be/osx
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &