Skip to content

Instantly share code, notes, and snippets.

View st63jun's full-sized avatar

Jun SAITO st63jun

View GitHub Profile
@st63jun
st63jun / switch-ruby
Last active August 29, 2015 14:01
switch-ruby
#!/bin/bash
#
# switch-ruby - Simple Ruby switcher
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Jun SAITO <jun.saito@u-cast.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
@st63jun
st63jun / jmeter-dns-test.xml
Created February 2, 2015 12:34
DNS負荷テストシナリオ
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="2.7" jmeter="2.12 r1636949">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="テスト計画" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="ユーザー定義変数" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@st63jun
st63jun / twittering-mode.rb
Created August 22, 2011 01:09
Homebrew formula: twittering-mode.el
require 'formula'
class TwitteringMode <Formula
url 'http://downloads.sourceforge.net/project/twmode/twittering-mode-2.0.0/twittering-mode-2.0.0.tar.gz'
md5 '19d10ab1058364a0e8386abf2eda9a53'
homepage 'http://twmode.sourceforge.net/'
head 'https://github.com/hayamiz/twittering-mode.git'
def install
mkdir_p "#{HOMEBREW_PREFIX}/share/emacs/site-lisp/twittering-mode"
@st63jun
st63jun / twittering-mode.rb
Created August 22, 2011 12:09
Homebrew formula: twittering-mode.el
require 'formula'
class TwitteringMode <Formula
url 'http://downloads.sourceforge.net/project/twmode/twittering-mode-2.0.0/twittering-mode-2.0.0.tar.gz'
md5 '19d10ab1058364a0e8386abf2eda9a53'
homepage 'http://twmode.sourceforge.net/'
head 'https://github.com/hayamiz/twittering-mode.git'
def install
mkdir_p "#{HOMEBREW_PREFIX}/share/emacs/site-lisp/twittering-mode"
@st63jun
st63jun / nyan-mode.rb
Created August 23, 2011 05:15
Homebrew formula: nyan-mode.el
require 'formula'
class NyanMode < Formula
head 'https://github.com/TeMPOraL/nyan-mode.git'
homepage 'http://nyan-mode.buildsomethingamazing.com/'
def install
mkdir_p "#{prefix}"
cp "nyan-mode.el", "#{prefix}"
cp_r "img/", "#{prefix}"
@st63jun
st63jun / ddskk.rb
Created September 19, 2011 14:15
Homebrew formula: build ddskk with /usr/local/bin/emacs
require 'formula'
class Ddskk <Formula
url 'http://openlab.ring.gr.jp/skk/maintrunk/ddskk-14.3.tar.gz'
homepage 'http://openlab.ring.gr.jp/skk/index-j.html'
md5 'af8aab148acc9c3861b9f0faba6fe9c8'
depends_on 'apel'
def install
@st63jun
st63jun / pychecker.rb
Created September 30, 2011 09:56
Homebrew formula: pychecker
require 'formula'
class Pychecker < Formula
url 'http://downloads.sourceforge.net/project/pychecker/pychecker/0.8.19/pychecker-0.8.19.tar.gz'
homepage 'http://pychecker.sourceforge.net/'
md5 'c37182863dfb09209d6ba4f38fce9d2b'
def install
system "python", "setup.py", "install",
"--prefix=#{prefix}",
@st63jun
st63jun / navi2ch.rb
Created October 2, 2011 16:12
Homebrew formula: Navi2ch
require 'formula'
class Navi2ch <Formula
url 'http://downloads.sourceforge.net/project/navi2ch/navi2ch/navi2ch-1.8.4/navi2ch-1.8.4.tar.gz'
head 'git://navi2ch.git.sourceforge.net/gitroot/navi2ch/navi2ch'
homepage 'http://navi2ch.sourceforge.net/'
md5 'af72b1c72ea9e10aafb0744b17ffe79a'
def install
system "./configure",
@st63jun
st63jun / mvn_build_bad.bat
Created October 10, 2011 16:09
[BAD CASE] Execute Maven with Windows batch file
REM -- Bad case!
mvn clean
REM -- Batch file will exit here, and folowing code will not executed
mvn package
@st63jun
st63jun / mvn_build.bat
Created October 10, 2011 15:58
Execute Maven with Windows batch file
REM -- Good case!
REM -- Execute Maven with new process using 'call' statement
call mvn clean
call mvn package