By resources
sessions
list-sessions ls -- List sessions managed by server
new-session new -- Create a new session
#!/bin/sh | |
NUM1="62121" | |
NUM2="64000" | |
PERCENT=$(bc -l <<< "scale=4; $NUM1 / $NUM2") | |
echo $(bc -l <<< "scale=2; $PERCENT * 100") | |
PY=$(python -c "print '%.2f' % ((float($NUM1)/float($NUM2))*100)") | |
echo $PY |
#!/usr/bin/env groovy | |
import org.apache.camel.impl.DefaultCamelContext | |
import org.apache.camel.builder.* | |
@Grab(group='org.apache.camel', module='camel-groovy', version='2.11.0') | |
@Grab(group='org.apache.camel', module='camel-mail', version='2.11.0') | |
@Grab(group='org.apache.camel', module='camel-core', version='2.11.0') | |
@Grab(group='org.slf4j', module='slf4j-log4j12', version='1.7.5') |
@echo off | |
IF [%1]==[] ( | |
echo Usage: %0 [jdk_version] | |
echo. | |
echo ** Available JDKs: ** | |
dir "%programfiles(x86)%\Java" /b | |
echo. | |
) ELSE ( | |
IF EXIST "%programfiles(x86)%\Java\%1" ( |
#!/bin/groovy | |
import groovy.io.FileType | |
def optimize(inGif, outDir) { | |
def cmd = "gifsicle --colors 256 -O3 ${inGif.path} -o ${outDir.path}\\${inGif.name}" | |
//println cmd | |
def proc = cmd.execute() | |
proc.text.eachLine {println it} | |
def exitValue = proc.exitValue() |
import java.util.List; | |
import java.util.concurrent.*; | |
// SOURCE: http://stackoverflow.com/q/2758612 | |
public class TimeoutThreadPoolExecutor extends ThreadPoolExecutor { | |
private final long timeout; | |
private final TimeUnit timeoutUnit; | |
private final ScheduledExecutorService timeoutExecutor = Executors.newSingleThreadScheduledExecutor(); |
Burndown chart | |
VersionOne | |
Jira | |
Velocity Chart | |
Scrum | |
Ideal Day | |
Meaningful backlogs | |
Prioritize epic | |
Agile | |
Tells the story |
#!/bin/bash | |
convertToKb() { | |
data="$1" | |
unit="${data//[0-9]/}" | |
value="${data//[!0-9]}" | |
converted="ERROR" | |
case $unit in | |
k | K) | |
converted="$value" | |
;; |
#!/bin/bash | |
TMP_DIR="$(mktemp -d -t subshells.XXXXXXXXXX)" | |
function cleanup { | |
rm -rf "${TMP_DIR}" | |
} | |
trap cleanup EXIT | |
PIDS=() | |
for i in 1 2 3; do |