Skip to content

Instantly share code, notes, and snippets.

View typester's full-sized avatar
😇

Daisuke Murase typester

😇
View GitHub Profile
CC?=gcc
PROVE?=prove
test: build_test
$(PROVE) -e '/bin/sh -c' ./test
build_test: test.o
$(CC) $(LDFLAGS) -o test $^
%.o: %.c
# 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 バインド
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);
+
#import <Foundation/Foundation.h>
@interface Foo : NSObject;
-(void)call:(NSString*)sel;
@end
@implementation Foo
-(void)call:(NSString*)sel {
NSLog(@"call: %@", sel);
use strict;
use warnings;
use Test::More;
use Test::LeakTrace;
use UV;
no_leaks_ok {
my $t = UV::timer_init();
$ 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
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
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>
+
[% 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
@typester
typester / S3.pm
Created September 26, 2011 12:10
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/] => (