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
| # Setup utf8 by default and vi mode | |
| set-window-option -g utf8 on | |
| set-window-option -g mode-keys vi | |
| set-window-option -g aggressive-resize on | |
| set-option -g default-command zsh | |
| set-option -g default-terminal 'xterm-256color' | |
| # Status line options, mainly coloring | |
| set-window-option -g window-status-current-bg cyan |
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
| # Setup utf8 by default and vi mode | |
| set-window-option -g utf8 on | |
| set-window-option -g mode-keys vi | |
| set-window-option -g aggressive-resize on | |
| set-option -g default-command zsh | |
| set-option -g default-terminal 'xterm-256color' | |
| # Status line options, mainly coloring | |
| set-window-option -g window-status-current-bg cyan |
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
| # Setup utf8 by default and vi mode | |
| set-window-option -g utf8 on | |
| set-window-option -g mode-keys vi | |
| set-window-option -g aggressive-resize on | |
| set-option -g default-command zsh | |
| set-option -g default-terminal 'xterm-256color' | |
| # Status line options, mainly coloring | |
| set-window-option -g window-status-current-bg cyan |
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 perl | |
| use strict; | |
| use POSIX qw(strftime); | |
| my $now = time(); | |
| my $tz = strftime('%z', localtime($now)); | |
| $tz =~ s/(\d{2})(\d{2})/$1:$2/; | |
| print strftime('%Y-%m-%dT%H:%M:%S', localtime($now)) . $tz . "\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
| compiling num2int.c | |
| clang: warning: argument unused during compilation: '-L/Users/mitch/.rubies/ruby-head/include' | |
| num2int.c:82:21: error: expected ')' | |
| sprintf(buf, "%"PRI_LL_PREFIX"d", NUM2LL(num)); | |
| ^ | |
| /usr/include/secure/_stdio.h:49:56: note: expanded from macro 'sprintf' | |
| __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | |
| ^ | |
| num2int.c:82:5: note: to match this '(' |
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
| # Setup utf8 by default and vi mode | |
| set-window-option -g utf8 on | |
| set-window-option -g mode-keys vi | |
| set-window-option -g aggressive-resize on | |
| set-option -g default-command zsh | |
| set-option -g default-terminal 'xterm-256color' | |
| # Status line options, mainly coloring | |
| set-window-option -g window-status-current-bg cyan |
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 perl | |
| use strict; | |
| use POSIX qw(strftime); | |
| my $now = time(); | |
| my $tz = strftime('%z', localtime($now)); | |
| $tz =~ s/(\d{2})(\d{2})/$1:$2/; | |
| print strftime('%Y-%m-%dT%H:%M:%S', localtime($now)) . $tz . "\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
| [BUG: Invalid byte array size] | |
| ruby(_ZN8rubinius3bugEPKc+0x5e) [0x5ac94e] | |
| ruby(_ZN8rubinius9ByteArray13create_pinnedEPNS_5StateEl+0xac) [0x68804c] | |
| ruby(_ZN8rubinius4capi13ensure_pinnedEPNS_23NativeMethodEnvironmentEPNS_6StringEP7RString+0xa0) [0x714d30] | |
| ruby(_ZN8rubinius4capi6Handle10as_rstringEPNS_23NativeMethodEnvironmentEi+0x105) [0x714f55] | |
| ruby(rb_str_ptr_readonly+0x21) [0x715e31] | |
| /home/mitch/.orb/rubies/rbx-head/lib/digest/ext/digest.so(+0x161f) [0x7f981778b61f] | |
| ruby(_ZN8rubinius12NativeMethod23executor_implementationINS_11OneArgumentEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE+0x35c) [0x6b776c] | |
| ruby(_ZN8rubinius4capi27capi_funcall_backend_nativeEPNS_23NativeMethodEnvironmentEPKciPNS_6ObjectEPNS_6SymbolEmPS6_S6_+0xe9) [0x704489] | |
| ruby(rb_funcall+0x15c) [0x70502c] |
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 'openssl' | |
| Digest::SHA1.hexdigest(File.open('/tmp/gt_1g_file').read) |
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
| $ cat /tmp/b.rb | |
| require 'openssl' | |
| file=File.join([ENV['HOME'], 'gt_1g_file']) | |
| puts Digest::SHA1.hexdigest(File.open(file).read) | |
| puts %x/openssl sha1 #{file}/ | |
| $ ruby -v | |
| rubinius 2.0.0rc1 (1.9.3 3388a5db 2012-11-02 JI) [x86_64-unknown-linux-gnu] | |
| $ r /tmp/b.rb | |
| 52c65c9203ce7d9b5d2dff0cf1c28ba8ed1f5d88 | |
| SHA1(/home/mitch/gt_1g_file)= 378eea2c7b51cb90d810c19ddef7b45571f94eef |