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
CC?=gcc | |
PROVE?=prove | |
test: build_test | |
$(PROVE) -e '/bin/sh -c' ./test | |
build_test: test.o | |
$(CC) $(LDFLAGS) -o test $^ | |
%.o: %.c |
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
# shell | |
set-option -g default-shell "$HOME/homebrew/bin/zsh" | |
# prefix key | |
set-option -g prefix C-z | |
unbind-key C-b | |
bind-key z send-prefix | |
bind-key C-z last-window | |
# scroll モードは vi バインド |
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
diff --git a/server.c b/server.c | |
index 902acfa..c0e8b50 100644 | |
--- a/server.c | |
+++ b/server.c | |
@@ -37,6 +37,8 @@ | |
#include "tmux.h" | |
+void* _vprocmgr_detach_from_console(unsigned int flags); | |
+ |
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
#import <Foundation/Foundation.h> | |
@interface Foo : NSObject; | |
-(void)call:(NSString*)sel; | |
@end | |
@implementation Foo | |
-(void)call:(NSString*)sel { | |
NSLog(@"call: %@", sel); |
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
use strict; | |
use warnings; | |
use Test::More; | |
use Test::LeakTrace; | |
use UV; | |
no_leaks_ok { | |
my $t = UV::timer_init(); |
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
$ cpanm https://github.com/typester/Path-AttrRouter/tarball/master | |
--> Working on https://github.com/typester/Path-AttrRouter/tarball/master | |
Fetching https://github.com/typester/Path-AttrRouter/tarball/master ... OK | |
Configuring typester-Path-AttrRouter-f75c3fb ... OK | |
Building and testing Path-AttrRouter-0.02 ... OK | |
Successfully installed Path-AttrRouter-0.02 | |
1 distribution installed |
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
diff --git a/src/platform_darwin_proctitle.cc b/src/platform_darwin_proctitle.cc | |
index e6a1ddd..c14dc8e 100644 | |
--- a/src/platform_darwin_proctitle.cc | |
+++ b/src/platform_darwin_proctitle.cc | |
@@ -31,7 +31,10 @@ | |
// http://src.chromium.org/viewvc/chrome/trunk/src/base/mac_util.mm | |
#include <CoreFoundation/CoreFoundation.h> | |
+#if defined(__APPLE__) && defined(__arm__) | |
+#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
diff --git a/src/unix/darwin.c b/src/unix/darwin.c | |
index 675e0ad..be2683a 100644 | |
--- a/src/unix/darwin.c | |
+++ b/src/unix/darwin.c | |
@@ -25,7 +25,12 @@ | |
#include <stdint.h> | |
#include <errno.h> | |
+#include <TargetConditionals.h> | |
+ |
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
[% 0|+ 2|- 0]: stdio_over_pipes | |
`stdio_over_pipes` failed: exit code 6 | |
Output from process `stdio_over_pipes`: | |
exit_cb | |
close_cb | |
close_cb | |
close_cb | |
Assertion failed in test/test-stdio-over-pipes.c on line 148: on_read_cb_called > 1 | |
============================================================= | |
[% 0|+ 5|- 1]: tcp_ref2 |
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
package S3; | |
use Any::Moose; | |
use Furl::HTTP; | |
use Digest::HMAC_SHA1 'hmac_sha1'; | |
use MIME::Base64; | |
use HTTP::Date 'time2str'; | |
use Carp; | |
has [qw/bucket aws_access_key_id aws_secret_access_key/] => ( |