Skip to content

Instantly share code, notes, and snippets.

Yutaka Hoshino conmame

Block or report user

Report or block conmame

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7209578
======================================================================================================================================================================================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================================================================================================================================================================================
View gist:4958907
mysqld_safe --skip-grant-tables
View gist:4759295
sub _parse_response
{
my $this = shift;
my $res = shift;
my $req = shift;
my $full_ch_name = $req->{full_ch_name};
$DEBUG and $this->_debug($req, "_parse_response.");
my $result = {
result => undef,
@conmame
conmame / dea.yml
Created Sep 20, 2012
CloudFoundry Multi Node Install Setting yml
View dea.yml
---
deployment:
name: "dea"
domain: "hoge.com" #使用するドメイン
jobs:
install:
- stager
- dea:
local_route: "192.168.249.44" #自分の環境に合わせる (この設定ファイルが置かれるDEAのIPアドレス)
@conmame
conmame / gist:3422225
Created Aug 22, 2012
Add UserID Partition (MySQL 5.5=<)
View gist:3422225
#!/bin/sh
# userバーティションを拡張
HOST='127.0.0.1'
USER='hoge'
PASS='fuga'
DBNAME='piyo'
TABLENAME='oreo'
NUMPERPARTITION=50000 #インクリメントする値
@conmame
conmame / add_monthly_partition.sh
Created Jun 12, 2012
Add Monthly Partition (MySQL 5.5=<)
View add_monthly_partition.sh
#!/bin/sh
HOST='localhost'
USER='ID'
PASS='PASS'
DBNAME='DBNAME'
TABLENAME='TABLENAME'
PREVIOUSMONTH=`mysql -h $HOST -u $USER -p$PASS -e 'SHOW CREATE TABLE '$DBNAME'.'$TABLENAME'\G' |
tail -n 2 |
@conmame
conmame / gist:2555000
Created Apr 30, 2012
coderwall team ranking
View gist:2555000
# -*- encode:utf-8 -*-
require 'mechanize'
agent = Mechanize.new { |a|
a.user_agent_alias = 'Mac Safari'
a.max_history = 0
}
agent.get('http://coderwall.com/teams/4f61c42bdb6418000a000001') do |page|
View gist:2500991
# -*- coding:utf-8 -*-
class String
def kaibun
self + self[0..-2].reverse
end
end
View open_tco.rb
# -*- encoding: utf-8 -*-
require "net/http"
require "uri"
class OpenTcoUrl
def initialize; end
def open_tco_url tco_url
result = []
You can’t perform that action at this time.