Skip to content

Instantly share code, notes, and snippets.

View koko1000ban's full-sized avatar
🏠
Working from home

たびと koko1000ban

🏠
Working from home
View GitHub Profile
@shimizukawa
shimizukawa / Cheffile
Created April 2, 2013 10:41
chefでCentOSにMySQL5.5以降をインストールしたい! -> fork版 mysql cookbookを使えばできる!(このgist) -> remi repository使えば yum install mysql-serverでいけるよ! http://tk0miya.hatenablog.com/entry/2013/04/03/141656 (新情報!!)
cookbook 'mysql',
:git => 'https://github.com/9minutesnooze/mysql.git',
:ref => 'mysql56'
@lloydmeta
lloydmeta / gist:4958987
Created February 15, 2013 07:34
Using OOBGC with Unicorn along with a UnicornKiller that kills workers if they use too much memory
#--- Credit: http://kzk9.net/unicorn-configuration-on-heroku
# config.ru
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
# Unicorn self-process killer
@msykiino
msykiino / Howto-XtraBackup.md
Created October 3, 2012 05:48
Doc - How to use XtraBackup
@msykiino
msykiino / percona.repo.sh
Created October 2, 2012 05:58
Percona repo setup in ScientificLinux
#!/bin/sh
#set -x
arch=`uname -p`
gpgk="/etc/pki/rpm-gpg/RPM-GPG-KEY-percona"
major_ver=`cat /etc/issue \
| awk 'NR==1{print $0}' | sed 's/^.* release //' \
| awk '{print $1}' | sed 's/\.[0-9]*$//'`
@melborne
melborne / README
Created August 7, 2012 11:42
Lack is a minified Rack just for study.
Lack is a minified Rack just for study.
@mori-dev
mori-dev / gist:2905300
Created June 10, 2012 12:31
emacs23.4 にあって emacs24.1 にない関数
appt-delete
appt-make-list
browse-url-default-browser
browse-url-url-at-point
bw-adjust-window
bw-b
bw-balance-sub
bw-dir
bw-eqdir
bw-find-tree-sub
@repeatedly
repeatedly / d_master.md
Last active July 16, 2024 17:07
D言語基礎文法最速マスター

他の言語をある程度知っている人はこれを読めばD言語の基礎をマスターでき,D言語の氷山の一角くらいは知ることができると思います.対象バージョンはdmd 2.059です.

1. 基礎

ソースファイル

ASCIIかUTFしか受け付けません.それ以外の文字コードで書くとコンパイルエラーになります.

main

D言語のmainはCとは違い以下のようなシグネチャです.

@dlutzy
dlutzy / gist:2469037
Created April 23, 2012 05:59
Multi VM Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# David Lutz's Multi VM Vagrantfile
# inspired from Mark Barger's https://gist.github.com/2404910
boxes = [
{ :name => :web, :role => 'web_dev', :ip => '192.168.33.1', :ssh_port => 2201, :http_fwd => 9980, :cpus =>4, :shares => true },
{ :name => :data, :role => 'data_dev', :ip => '192.168.33.2', :ssh_port => 2202, :mysql_fwd => 9936, :cpus =>4 },
{ :name => :railsapp, :role => 'railsapp_dev', :ip => '192.168.33.3', :ssh_port => 2203, :http_fwd => 9990, :cpus =>1}
]
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@repeatedly
repeatedly / downloader.d
Last active October 1, 2015 23:18
D言語でいかにしておっぱい画像をダウンロードするか〜2013
// Written in the D programming language.
/**
* High peformance downloader
*
* Implemented according to <a href="http://yusukebe.com/archives/20120229/072808.html">this implementation</a>.
*
* Example:
* -----
* dmd -L-lcurl -run downloader.d