This file contains hidden or 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
| . 40755 0/0 | |
| ./Library 40755 0/0 | |
| ./Library/Developer 40755 0/80 | |
| ./Library/Developer/Acknowledgments.rtf 100644 0/80 127494 1447811756 | |
| ./System 40755 0/0 | |
| ./System/Library 40755 0/0 | |
| ./System/Library/PrivateFrameworks 40755 0/0 | |
| ./System/Library/PrivateFrameworks/LLDB.framework 40755 0/0 | |
| ./System/Library/PrivateFrameworks/LLDB.framework/LLDB 120755 0/0 21 4055197963 Versions/Current/LLDB | |
| ./System/Library/PrivateFrameworks/LLDB.framework/Resources 120755 0/0 26 3302263027 Versions/Current/Resources |
This file contains hidden or 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
| require 'formula' | |
| class Freetype2 <Formula | |
| url 'http://download.savannah.gnu.org/releases/freetype/freetype-2.4.8.tar.bz2' | |
| homepage 'http://freetype.sourceforge.net/index2.html' | |
| md5 'dbf2caca1d3afd410a29217a9809d397' | |
| version '2.4.8' | |
| head 'git://git.sv.gnu.org/freetype/freetype2.git' |
This file contains hidden or 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
| f440@abhoth[17]:~$ irb-ruby-1.8.7-p352 | |
| no such file to load -- interactive_editor | |
| ruby-1.8.7-p352 :001 > require 'date' | |
| => true | |
| ruby-1.8.7-p352 :002 > require 'yaml' | |
| => true | |
| ruby-1.8.7-p352 :003 > d = DateTime.parse("2011-12-21T03:30:01+00:00") | |
| => #<DateTime: 212191198201/86400,0,2299161> | |
| ruby-1.8.7-p352 :004 > y = YAML.dump(d) | |
| => "--- 2011-12-21T03:30:01+00:00\n" |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| #-*- coding: utf-8 -*- | |
| CHOICE = ["rock", "paper", "scissors"] | |
| def main(argv) | |
| unless argv.length == 2 | |
| abort "#{$0} [Left choice] [Right choice]" | |
| end | |
| (left, right) = argv |
This file contains hidden or 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
| Linux rev18 2.6.18-238.19.1.el5xen #1 SMP Fri Jul 15 08:16:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux | |
| Intel(R) Xeon(R) CPU L5630 @ 2.13GHz | |
| processor : 0 | |
| vendor_id : GenuineIntel | |
| cpu family : 6 | |
| model : 44 | |
| model name : Intel(R) Xeon(R) CPU L5630 @ 2.13GHz | |
| stepping : 2 | |
| cpu MHz : 2133.482 |
This file contains hidden or 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
| if [ "$TERM" = "screen" ]; then | |
| chpwd () { echo -n "_`dirs | head -c 80`\\" } | |
| preexec() { | |
| # see [zsh-workers:13180] | |
| # http://www.zsh.org/mla/workers/2000/msg03993.html | |
| emulate -L zsh | |
| local -a cmd; cmd=(${(z)2}) | |
| case $cmd[1] in | |
| fg) | |
| if (( $#cmd == 1 )); then |
This file contains hidden or 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 | |
| set -x | |
| rm -rf sample sample_copy | |
| hg clone https://bitbucket.org/f440/sample remote | |
| hg clone remote local | |
| cd local |
This file contains hidden or 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 | |
| # ブランチでコミットをいくつかしたけどブランチ名かえたくなった | |
| # http://labs.timedia.co.jp/2011/04/rename-and-delete-localbranch-in-mercurial.html | |
| set -x | |
| hg clone https://bitbucket.org/f440/sample | |
| cd sample |
This file contains hidden or 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
| diff -r 2c2961c1252f src/main/java/org/apache/maven/plugin/BuildNumberMojo.java | |
| --- a/src/main/java/org/apache/maven/plugin/BuildNumberMojo.java Sun Oct 31 15:19:32 2010 +0100 | |
| +++ b/src/main/java/org/apache/maven/plugin/BuildNumberMojo.java Fri Mar 11 03:22:29 2011 +0900 | |
| @@ -20,19 +20,24 @@ | |
| private MavenProject mavenProject; | |
| public void execute() throws MojoExecutionException { | |
| - String buildNumber = "unavailable"; | |
| String[] hgLogCommand = new String[] { | |
| - "hg", "log", "-l", "1", "--template", "{node}" }; |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| #-*- coding: utf-8 -*- | |
| # | |
| # unify dupulicated gem files. | |
| # | |
| # This work is in the public domain. | |
| # | |
| require 'digest/md5' |