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
brew bundle dump --file=~/Documents/Dev/dotfiles/Brewfile --force |
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
tcpdump -X -i eth1 port 8090 |
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
Object obj = null; | |
String s = obj.toString(); // groovy does not throw NPE | |
String result = "false"; | |
if (s.equals("null")) { | |
result = "true"; | |
} | |
return result; // "true" |
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
sudo service vboxadd-service stop |
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
// after is >, not >= | |
private static void testAfter() { | |
Date a = new Date(); | |
//Date b = new Date(a.getTime()); // after: false | |
Date b = new Date(a.getTime() + 1); // after: true | |
System.out.println("a: " + a.getTime()); | |
System.out.println("b: " + b.getTime()); | |
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
/** | |
* @module hoge-ui | |
* @requires jQuery | |
*/ | |
(function() { | |
"use strict"; | |
var enableConsoleLog = true; | |
// TODO |
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
/** | |
* @module hoge-utils | |
*/ | |
// namespace | |
this.hoge = this.hoge || {}; | |
(function() { | |
"use strict"; |
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
docker pull ubuntu:latest | |
docker run -it ubuntu:latest /bin/bash |
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
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm | |
rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm | |
yum install tmux |
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
# see https://confluence.atlassian.com/display/CONFKB/How+to+Edit+Bundled+or+System+Plugins | |
cd /tmp | |
mkdir working-confluence | |
cd working-confluence | |
unzip /tmp/confluence-5.6.6.jar | |
edit some files... | |
jar cvf /tmp/confluence-5.6.6-new.jar . |
NewerOlder