Skip to content

Instantly share code, notes, and snippets.

View d6rkaiz's full-sized avatar

Isao Sugimoto d6rkaiz

View GitHub Profile
@d6rkaiz
d6rkaiz / hack.sh
Created June 19, 2012 18:06 — forked from DAddYE/hack.sh
OSX For Hackers
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
@d6rkaiz
d6rkaiz / gist:2905316
Created June 10, 2012 12:34
GMO VPS(KVM) UnixBench
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: dev2: GNU/Linux
OS: GNU/Linux -- 3.2.0-24-generic -- #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
CPU 0: Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz (6133.6 bogomips)
x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET
CPU 1: Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz (6133.6 bogomips)
@d6rkaiz
d6rkaiz / gist:2785012
Created May 25, 2012 00:08
syn-match
DEFINING MATCHES *:syn-match*
:sy[ntax] match {group-name} [{options}] [excludenl] {pattern} [{options}]
This defines one match.
{group-name} A syntax group name such as "Comment".
[{options}] See |:syn-arguments| below.
[excludenl] Don't make a pattern with the end-of-line "$"
extend a containing match or region. Must be
; <<>> DiG 9.7.3-P3 <<>> cache.gyazo.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20806
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;cache.gyazo.com. IN A
@d6rkaiz
d6rkaiz / gist:2503865
Created April 26, 2012 22:49
mongodb.log
Fri Apr 27 07:30:24 [FileAllocator] done allocating datafile /var/lib/mongodb/test.ns, size: 16MB, took 0.052 secs
Fri Apr 27 07:30:25 [FileAllocator] done allocating datafile /var/lib/mongodb/test.0, size: 64MB, took 0.218 secs
Fri Apr 27 07:30:25 [FileAllocator] done allocating datafile /var/lib/mongodb/test.1, size: 128MB, took 0.463 secs
Fri Apr 27 07:30:34 [FileAllocator] done allocating datafile /var/lib/mongodb/test.2, size: 256MB, took 1.363 secs
Fri Apr 27 07:30:48 [FileAllocator] done allocating datafile /var/lib/mongodb/test.3, size: 512MB, took 2.292 secs
Fri Apr 27 07:31:19 [FileAllocator] done allocating datafile /var/lib/mongodb/test.4, size: 1024MB, took 7.306 secs
Fri Apr 27 07:32:13 [FileAllocator] done allocating datafile /var/lib/mongodb/test.5, size: 2047MB, took 9.567 secs
Fri Apr 27 07:33:54 [FileAllocator] done allocating datafile /var/lib/mongodb/test.6, size: 2047MB, took 8.501 secs
Fri Apr 27 07:37:26 [FileAllocator] done allocating datafile /var/lib/mongodb/test.7, size: 20
皆さーん。ローソンのPonta会員Anroidアプリを利用する人は、その規約で、他人に誕生日・電話番号を知らせる行為は禁止だそうですよー! しかもさらに、他人の誕生日・電話番号を入手することも禁止だって。相手がPonta会員でなくてもですよ!手段のいかんを問わずですよ!ヒャッハー
from https://twitter.com/#!/HiromitsuTakagi/statuses/188835470514466816
@d6rkaiz
d6rkaiz / gist:2261200
Created March 31, 2012 09:15
グーグル、クラウドの貸し出しサービスを日本で本格展開
 グーグル(東京都港区、有馬誠代表取締役、03・6384・9000)は、米グーグルがインターネット経由で世界展開している
クラウド基盤の貸し出しサービス「アップ・エンジン」を日本で本格展開する。企業や自治体を対象とする法人向け事業の目玉として、
2012年中に国内サポート体制を整備。企業が作成したウェブアプリケーション(応用ソフト)をクラウド基盤で預かり、稼働率な
どをサービス品質契約で保証し、企業が安心して利用できるようにする。
 アップ・エンジンはアプリケーションを稼働させるためのストレージ(外部記憶装置)や中央演算装置(CPU)などのIT資源を
時間単位で提供する。ストレージ容量や月間接続回数が一定水準以下ならば無料で利用できる。
 試しサービスとしては、最大500メガバイトのストレージ容量、月間約500万の接続回数に対応できるCPUと帯域幅を用意し
た。
@d6rkaiz
d6rkaiz / gist:2234121
Created March 29, 2012 06:23
new sakura vps 2GB plan cpu info.
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5645
stepping : 1
cpu MHz : 2400.084
cache size : 4096 KB
physical id : 0
# -*- encoding: utf-8 -*-
require 'fileutils'
require 'date'
require 'yaml'
require 'rexml/document'
include REXML
doc = Document.new File.new(ARGV[0])
FileUtils.mkdir_p "_posts"
#!/bin/bash
export TERM=linux
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
# SSH key
source recipes/ssh_key.sh $(cat attributes/ssh_key)
# Update apt catalog
sudo apt-get update