Skip to content

Instantly share code, notes, and snippets.

View skshiro's full-sized avatar

skshiro skshiro

  • SK-Service
  • nakano,tokyo
View GitHub Profile
@skshiro
skshiro / gist:6372003
Created August 28, 2013 22:12
checkbox + text => label + checkbox + text
<html>
<head>
<script type="text/javascript" src="./jquery-1.10.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("input:checkbox").each(function(){
var value = $(this)[0].nextSibling.nodeValue;
$(this)[0].nextSibling.nodeValue = '';
$(this).after("<span>" + value + "</span>");
$(this).next().andSelf().wrapAll("<label></label>");
vim
:e ++enc=sjis
:set fenc=utf-8
@skshiro
skshiro / gist:6170313
Created August 7, 2013 00:53
munin2-beta
http://pocketstudio.jp/log3/2012/02/15/munin2beta_review/
@skshiro
skshiro / gist:6086964
Last active December 20, 2015 06:38
OracleをLinuxへインストールする時の設定方法について。
http://ser1zw.hatenablog.com/entry/20120319/1332086633
http://www.asami.asia/tech/oracle/11g-install.html
http://noro2-diary.at.webry.info/200909/article_17.html
aio
http://blog.torigoya.net/2010/05/06/oracle11g-auto-start/
http://www.server-world.info/query?os=CentOS_6&p=oracle1
@skshiro
skshiro / gist:4159929
Created November 28, 2012 08:43
osxkeychain
http://d.hatena.ne.jp/idesaku/20120128/1327749355
@skshiro
skshiro / gist:3292593
Created August 8, 2012 06:02
tomcat remote debug setting.
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=8888
-Dcom.sun.management.jmxremote
@skshiro
skshiro / gist:3261087
Created August 5, 2012 01:55
mysql root password setting.
start mysqld --skip-grant-tables
mysql -u root mysql
use mysql;
select * from user;
select * from user where user='root';
update user set password=PASSWORD('XXXXXX') where user='root';
@skshiro
skshiro / gist:3261086
Created August 5, 2012 01:55
git http cache with windows7
git config --global credential.helper cache
but ...
git config --global credential.helper winstore
download to GitWindowsExtras.zip
@skshiro
skshiro / gist:3261084
Created August 5, 2012 01:54
dateフォーマットとリダイレクト
#日付のフォーマットとリダイレクト
/home/XXXXXX/bin/poi.sh > `date '+/home/outlet/bin/poi-%Y%m%d-%H%M.log'` 2>&1
stty -a
stty stop undef
#コンソールでCTRL+Sで履歴を戻れない場合
#なお、上記のコマンドを実行しないでCTRL+Sをした場合にはCTRL+Qで回避できるのであわてずに。