This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# chkconfig: - 80 20 | |
# description: tomcat | |
# merged scripts on following pages: | |
# http://www.atmarkit.co.jp/ait/articles/0710/11/news121_2.html | |
# http://d.hatena.ne.jp/marmotte/20110910/1315660564 | |
# Source function library. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT concat(User, '@', Host) User, Password FROM mysql.user order by host, user; | |
SELECT * FROM information_schema.schema_privileges order by table_schema, grantee, privilege_type; | |
SELECT * FROM information_schema.table_privileges order by table_schema, grantee, table_name, privilege_type; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set P=%0 | |
ruby -S -x %P:\=/% %* | |
goto end | |
#! ruby | |
# -*- coding: Windows-31J -*- | |
$stdout.set_encoding('UTF-8', 'Windows-31J') | |
$stderr.set_encoding('UTF-8', 'Windows-31J') | |
puts "てすと" | |
__END__ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=INDIRECT("R"&(expr)&"C"&(expr), FALSE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn dependency:sources | |
mvn dependency:resolve -Dclassifier=javadoc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar cf FILE ⇔ cpio -oF FILE | |
tar tf FILE ⇔ cpio -tF FILE | |
tar xf FILE ⇔ cpio -iF FILE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Chef's cookbooks has too many "default.rb". | |
;;; This hook is for detecting each "default.rb". | |
(defun chef-rename-buffer () | |
(let ((fn (buffer-file-name))) | |
(and (stringp fn) | |
(string-match "/cookbooks/\\(.+\\)" fn) | |
(rename-buffer (match-string 1 fn) t)))) | |
(add-hook 'find-file-hook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xmllint --format http://xmlsoft.org/html/libxml-xpathInternals.html | perl -nle '/Function: xmlXPath(\w+)Function</ && print lcfirst $1' | |
boolean | |
ceiling | |
concat | |
contains | |
count | |
false | |
floor | |
id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Required | |
- BuildShip | |
- AnyEditTools | |
- Lombok (run downloaded "lombok.jar" to start installer) | |
Optional | |
- CheckStyle | |
- FindBugs | |
??? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// XPath メモ | |
// 使用例 | |
var xpathResult = document.evaluate("XPath式", document.body, null, 9, null); | |
// var xpathResult = document.evaluate( | |
// xpathExpression, | |
// contextNode, | |
// namespaceResolver, | |
// resultType, |