This file contains 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
delete from <table> t1 | |
where t1.<someid> is not null | |
and t1.<pk> > ( | |
select min(t2.<pk>) | |
from <table> t2 | |
where (t1.<someid> = t2.<someid> or (t1.<someid> is null and t2.<someid> is null)) | |
and t1.<fooid> like 'XXX%' | |
having count(*) > 1 | |
); |
This file contains 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
javascript:(function(){alert("hoge".length);})(); |
This file contains 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
VLOOKUP | |
=IF(ISERROR(VLOOKUP(A31,Q$2:Q$99,1,FALSE)),"",VLOOKUP(A31,Q$2:Q$99,1,FALSE)) | |
COUNTIF | |
=IF(NOT(M39="1"),(IF(COUNTIF(M$4:M39,M39)>1,"○","")),"") |
This file contains 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
# 全OS | |
cat /etc/`ls /etc -F | grep "release$\|version$"` | |
# CentOSのみ | |
cat /etc/redhat-release |
This file contains 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
#ブロック情報 | |
fdisk -l | |
#サイズ | |
df -h | |
#スワップ | |
swapon -s | |
#特定ディレクトリ配下のサイズ確認 |
This file contains 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
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<localRepository>E:/home/.m2/repository</localRepository> | |
<interactiveMode/> | |
<usePluginRegistry/> | |
<offline/> | |
<pluginGroups/> | |
<servers/> | |
<mirrors/> |
This file contains 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
# command aliases | |
alias l='ls -l' | |
alias ll='ls -la' | |
alias vim='/usr/local/bin/vim' | |
alias vi='vim' | |
#alias scalac='scalac-2.11' | |
#alias scala='scala-2.11' | |
#alias ruby='ruby2.2' | |
#alias php='php56' | |
alias gia='git add' |
This file contains 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
;; C-mにnewline-and-indexを割り当てる。初期値はnewline | |
(define-key global-map (kbd "C-m") 'newline-and-indent) | |
;; C-hで前を削除 | |
(keyboard-translate ?\C-h ?\C-?) | |
;; ヘルプをC-x ?に変更 | |
(define-key global-map (kbd "C-x ?") 'help-command) | |
;; 折り返しのコマンド | |
(define-key global-map (kbd "C-c l") 'toggle-truncate-lines) |
This file contains 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
package groovytest | |
/** | |
* Mapオブジェクトをファイルにバイトで書き込んだものを | |
* ファイル読み込みして再度使えるかをテストしたプログラム | |
* | |
* 結論:できる | |
*/ | |
// データ格納用 |
This file contains 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
package sandbox; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.awt.Image; | |
import java.awt.Toolkit; | |
import java.awt.datatransfer.Clipboard; | |
import java.awt.datatransfer.ClipboardOwner; | |
import java.awt.datatransfer.DataFlavor; | |
import java.awt.datatransfer.Transferable; |
OlderNewer