Skip to content

Instantly share code, notes, and snippets.

View comuttun's full-sized avatar

KOMATSU Seiji comuttun

  • Magmag, Inc.
  • Yokohama, Japan
View GitHub Profile
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@giuniu
giuniu / Tuples.java
Created March 7, 2012 06:24
tupleっぽいものをJavaで実装する
import java.lang.reflect.Field;
import java.util.Date;
public final class Tuples {
public static void main(String[] args) {
Tuple3<Integer, String, Date> tpl = Tuples.get(1, "a", new Date());
System.out.println(tpl._1);
System.out.println(tpl);
}
@bfg
bfg / apache-2.2-mod_remoteip.c
Created June 23, 2011 09:32
Working backport (doesn't crash when using Allow/Deny ACLs) of Apache 2.3 module mod_remoteip to Apache 2.2.x
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@yoshikaw
yoshikaw / gist:862031
Created March 9, 2011 11:07
CygwinのscreenでコピーバッファをWindowsクリップボードに流し込むっ!
# changes the filename used for reading and writing with the paste buffer.
bufferfile 'screen/screen-exchange'
# copy the screen pastbuffer to the Cygwin pastebord
bindkey -m ' ' eval 'stuff \040' 'writebuf' 'exec sh -c "/usr/bin/putclip < screen/screen-exchange"'
bindkey -m Y eval 'stuff Y' 'writebuf' 'exec sh -c "/usr/bin/putclip < screen/screen-exchange"'
bindkey -m W eval 'stuff W' 'writebuf' 'exec sh -c "/usr/bin/putclip < screen/screen-exchange"'