Skip to content

Instantly share code, notes, and snippets.

View tsuyoshicho's full-sized avatar

Tsuyoshi CHO tsuyoshicho

View GitHub Profile
@tsuyoshicho
tsuyoshicho / eclipse.ini
Created June 7, 2013 14:07
Eclipse Portable + Pleiades http://blue-red.ddo.jp/~ao/wiki/wiki.cgi?page=Eclipse+portable+%A4%F2%BB%C8%A4%A6 のインストール完了 以下設定ファイル
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms40m
>git remote set-head origin master
@tsuyoshicho
tsuyoshicho / gist:7467443
Created November 14, 2013 14:13
LSCOLORSのSolarized、はこれでいいのか? BSD向けでtcshなど用
# light
setenv LSCOLORS gHfHfebebHfefebHbHgHgH
# dark
setenv LSCOLORS gAfAfebebAfefebAbAgAgA
@tsuyoshicho
tsuyoshicho / checksum.c
Last active August 29, 2015 13:57
Geekなページさんから ( http://www.geekpage.jp/programming/linux-network/book/12/12-5.php ) checksumのコードを調整したもの。よく忘れるので...
/*
* 16bit Checksum
* Endianness?
*/
uint16_t
checksum(uint16_t *buf, size_t bufsz)
{
uint_least32_t sum = 0;
while (bufsz > 1) {
sum += *buf;
@tsuyoshicho
tsuyoshicho / 0_reuse_code.js
Created March 23, 2014 07:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tsuyoshicho
tsuyoshicho / file0.bat
Created May 17, 2014 07:52
vagrantをwindowsで使う時のコマンドパス ref: http://qiita.com/tsuyoshi_cho/items/0c397de032faeb3e0beb
PATH=%PATH%;c\tools\Vagrant\embedded\mingw\bin;c\tools\Vagrant\bin
#ビルド
docker build -t "sshd/centos" .
#コンテナを起動
docker run -i -t centos /bin/bash
#コンテナに名前を付けて起動
docker run -i -t --name cent01 centos /bin/bash
#コンテナをバックグランドで起動
FROM debian:wheezy
MAINTAINER My Name <[email protected]>
# mirror
RUN echo "deb http://cdn.debian.net/debian/ wheezy main contrib non-free" > /etc/apt/sources.list.d/mirror.jp.list
RUN echo "deb http://cdn.debian.net/debian/ wheezy-updates main contrib" >> /etc/apt/sources.list.d/mirror.jp.list
RUN /bin/rm /etc/apt/sources.list
RUN export DEBIAN_FRONTEND=noninteractive LANG
RUN apt-get update
@tsuyoshicho
tsuyoshicho / keybase.md
Last active January 9, 2023 03:01
keybase.md

Keybase proof

I hereby claim:

  • I am tsuyoshicho on github.
  • I am tsuyoshicho (https://keybase.io/tsuyoshicho) on keybase.
  • I have a public key ASAjX0bSc6DgIJY7tAO5K9O23HEczyoNs4KgB3yduJGWMgo

To claim this, I am signing this object: