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
import scala.concurrent.forkjoin.ForkJoinPool | |
import scala.concurrent.forkjoin.RecursiveTask | |
object Main { | |
def main(args: Array[String]) { | |
val pool = new ForkJoinPool() | |
println(s"${Thread.currentThread.getId}: unsorted=" + args.mkString(", ")) | |
val sorted = pool.invoke(new QuickSortingTask(args)) | |
println(s"${Thread.currentThread.getId}: sorted=" + sorted.mkString(", ")) | |
} |
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
downloadService.post('hudson.tools.JDKInstaller',{ | |
"data": [ | |
{ | |
"name": "JDK 8", | |
"releases": [ { | |
"files": [ | |
{ | |
"filepath": "http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-i586.tar.gz", | |
"name": "jdk-8u5-linux-i586.tar.gz", | |
"title": "Linux x86" |
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
*.pyc | |
*.c | |
*.so | |
/falcon |
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
has_broken_mac_readline() { | |
# MacOSX 10.4 has a broken readline. | |
# https://github.com/yyuu/pyenv/issues/23 | |
local retval=1 | |
local conftest="$BUILD_PATH/has_broken_mac_readline.c" | |
if [ "$(uname -s)" = "Darwin" ]; then | |
cat <<EOF > "$conftest" | |
#ifdef __cplusplus | |
extern "C" | |
#endif |
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
Running from: /usr/share/jenkins/jenkins.war | |
Jun 12, 2013 6:26:15 PM winstone.Logger logInternal | |
INFO: Beginning extraction from war file | |
Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME") | |
Jun 12, 2013 6:26:16 PM winstone.Logger logInternal | |
INFO: HTTP Listener started: port=8081 | |
Jun 12, 2013 6:26:16 PM winstone.Logger logInternal | |
INFO: Winstone Servlet Engine v0.9.10 running: controlPort=disabled | |
Jun 12, 2013 6:26:16 PM jenkins.InitReactorRunner$1 onAttained | |
INFO: Started initialization |
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
diff -r -u waflib.orig/Tools/python.py waflib/Tools/python.py | |
--- waflib.orig/Tools/python.py 2013-05-13 14:23:09.000000000 +0900 | |
+++ waflib/Tools/python.py 2013-05-13 14:22:51.000000000 +0900 | |
@@ -96,7 +96,7 @@ | |
continue | |
if s=='None': | |
return_values.append(None) | |
- elif s[0]=="'"and s[-1]=="'": | |
+ elif ( s[0]=="'"and s[-1]=="'" ) or ( s[0]=='"'and s[-1]=='"' ): | |
return_values.append(s[1:-1]) |
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/bash -e | |
export RBENV_ROOT="${RBENV_ROOT:-$HOME/.rbenv}" | |
export PATH="${RBENV_ROOT}/bin:${PATH}" | |
eval "$(rbenv init -)" | |
exec "bash" "$@" | |
# vim:set ft=sh : |
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 apt-get install ssl-cert | |
sudo make-ssl-cert generate-default-snakeoil | |
sudo usermod --append --groups ssl-cert yyuu | |
ls -l /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/ssl/private/ssl-cert-snakeoil.key |
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
setopt prompt_subst | |
autoload -Uz add-zsh-hook | |
autoload -Uz vcs_info | |
## display scm info in the prompt | |
if vcs_info 1>/dev/null 2>&1; then | |
zstyle ':vcs_info:*' formats '%b' | |
precmd_vcs_info() { | |
LANG=C vcs_info | |
} |
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 | |
abspath() { | |
( cd $(dirname $1) && echo "$(pwd)/$(basename $1)" ) | |
} | |
for _jar in "$@"; do | |
jar=$(abspath $_jar) | |
tmpdir=$(mktemp -d) | |
cd "${tmpdir}" && { |