This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# drblpush -i | |
****************************************************** | |
Hint! When a yes/no option is available, the default value is uppercase, Ex. (y/N), the default is "N", when you press "Enter", it will use "N". If you are not sure which one to choose, you can just press "Enter" key. | |
****************************************************** | |
Searching the installed packages for DRBL server...This might take several minutes... | |
Finished searching the installed packages for DRBL server. | |
****************************************************** | |
------------------------------------------------------ | |
The interactive mode let you supply the information of your DRBL environment. | |
------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/opt/local/bin/ruby2.2 | |
require 'thor' | |
require 'systemu' | |
require 'yaml' | |
require 'tmpdir' | |
class DOCX | |
XML_PATH = 'word/document.xml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem install ohai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USAGE: gnuplot -e "set grid; set xtics 10000; plot '<ruby yachin.rb'" | |
def y(x) | |
if x <= 23000 | |
return x - 12000 | |
else | |
x2 = (x - 23000) * 0.5 | |
if x2 > 16000 | |
return 16000 + 11000 | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! ruby | |
# -*- coding: utf-8 -*- | |
# CONFIG | |
IMAP_USER='' | |
IMAP_PASS='' | |
# MAIN | |
require 'net/imap' | |
require 'parsedate' | |
FROMS = %w{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Readme | |
-- Tree.app1.6.2でOPML1.0でエクスポートするAppleScript. | |
-- [注意] GUI Scriptingでゴリ押しなのでTree.appのバージョンが違うと誤作動する可能性がある. | |
-- [注意] 同名の.opmlファイルが存在する場合は上書きされる. | |
-- References | |
-- AppleScript Help - Apple - http://docs.info.apple.com/help/guide.html?path=AppleScript/2.1/jp/ | |
-- AppleScriptの構造を上手に調べる - http://allabout.co.jp/gm/gc/80938/3/ | |
tell application "Tree" | |
activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:location.href='http://okwave.jp/print/qa/q' + location.pathname.match(/\d+/) +'.html' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Example: $ cat example.txt | this_script | |
# This script works only for ruby 1.9.x | |
ruby1.9 -e 'while l=gets;puts "#{$stdin.lineno} #{l}" if l !~ /\A\s*%/&&!l.each_char.select{|c|c.bytesize!=1}.empty?;end' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# == References | |
# | |
# * OSXでMP4動画からAAC音声抽出 | |
# http://d.hatena.ne.jp/ikki_j/20080304/1204629353 | |
# > H.264+AACなMP4動画から再コンパイルなしでAAC音声のみを抽出する方法。 | |
# | |
# * EvalVid - A Video Quality Evaluation Tool-set Pre-compiled binaries (static) | |
# http://www2.tkn.tu-berlin.de/research/evalvid/fw.html#bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ipfw3/dummynet2/Makefile.orig 2012-01-18 02:51:29.000000000 +0900 | |
+++ ipfw3/dummynet2/Makefile 2012-01-18 02:51:42.000000000 +0900 | |
@@ -55,8 +55,8 @@ | |
ipfw-cflags += -D_BSD_SOURCE | |
ipfw-cflags += -DKERNEL_MODULE # build linux kernel module | |
# the two header trees for empty and override files | |
-ipfw-cflags += -I $(M)/include_e | |
-ipfw-cflags += -I $(M)/include | |
+ipfw-cflags += -I$(M)/include_e | |
+ipfw-cflags += -I$(M)/include |