on El Capitan, after installing the brew...
$ brew update
$ brew tap caskroom/cask
$ brew install Caskroom/cask/java
And Java 8 will be installed at /Library/Java/JavaVirtualMachines/jdk1.8.xxx.jdk/
Check version:
node { | |
// https://registry.hub.docker.com/_/maven/ | |
def maven32 = docker.image('maven:3.2-jdk-7-onbuild'); | |
stage 'Mirror' | |
// First make sure the slave has this image. | |
// (If you could set your registry below to mirror Docker Hub, | |
// this would be unnecessary as maven32.inside would pull the image.) | |
maven32.pull() | |
// We are pushing to a private secure docker registry in this demo. |
on El Capitan, after installing the brew...
$ brew update
$ brew tap caskroom/cask
$ brew install Caskroom/cask/java
And Java 8 will be installed at /Library/Java/JavaVirtualMachines/jdk1.8.xxx.jdk/
Check version:
Install HomeBrew first
brew update
brew tap caskroom/cask
brew install brew-cask
If you get the error "already installed", follow the instructions to unlink it, then install again:
openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem | |
chmod 700 id_rsa.pem |
package de.aeffle.for_each_with_counter; | |
import com.google.common.collect.ImmutableList; | |
import org.junit.Test; | |
import java.util.Iterator; | |
import java.util.List; | |
public class ForEachLoopWithIndex { |
require 'pp' | |
module Helper | |
def capture(&block) | |
begin | |
$stdout = StringIO.new | |
$stderr = StringIO.new | |
yield | |
result = {} | |
result[:stdout] = $stdout.string |
require 'stringio' | |
require 'pp' | |
def capture_all(proc) | |
begin | |
$stdout = StringIO.new | |
$stderr = StringIO.new | |
proc.call |
WARN: | |
df -h | grep "[7,8][0-9]% /" | |
ERROR: | |
df -h | grep "[9,0][0-9]% /" |
hardstatus alwayslastline '[%{b}%d.%m.%Y - %c%{-}] [%{r}%n:%t%{-} | %W] [%{g}%l%{-}] [%{b}%h%{-}] ' | |
defutf8 on |
I hereby claim:
To claim this, I am signing this object: