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
#!/bin/bash | |
# Adopted from https://josephscott.org/archives/2011/10/timing-details-with-curl/ | |
# | |
url=${1:?usage "[nohup] curl-times.sh <url> [ <sleep=1> ]"} | |
sleep=${2:-1} | |
format=" time_namelookup: %{time_namelookup} time_connect: %{time_connect}, time_appconnect: %{time_appconnect}, time_pretransfer: %{time_pretransfer}, time_redirect: %{time_redirect}, time_starttransfer: %{time_starttransfer}, time_total: %{time_total}\n" | |
while true; do | |
echo -n $(date +%FT%T%z) | |
curl -w "${format}" -o /dev/null -s "$url" |
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
#!/bin/bash | |
SONAR_IMAGE=tpires/sonar #sonar:kirre | |
SONAR_MYSQL_IMAGE=tpires/sonar-mysql | |
# Start Sonar MySQL | |
if docker inspect smysql >/dev/null; then | |
if docker inspect --format="{{ .State.Running }}" smysql >/dev/null; then | |
echo "Sonar MySQL already running" | |
else | |
docker start smysql | |
fi |
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
#!/bin/bash | |
set -e # Fail fast | |
# Clean up last run artifacts | |
rm -rf private-repository temporary-repository mirror-repository public-repository | |
## Create empty repository representing the private repository | |
mkdir private-repository |
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
#!/bin/sh | |
WORK=${$1:-proj} | |
require() { | |
command -v $1 >/dev/null 2>&1 || { echo >&2 "I require $1 but it's not installed. Installing."; sudo $2; } | |
} | |
# Determine OS platform | |
UNAME=$(uname | tr "[:upper:]" "[:lower:]") |
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
#!/bin/sh | |
PARTIAL=false | |
NUKE_CUSTOMIZATIONS=true | |
while getopts uc opt | |
do | |
case "$opt" in | |
u) PARTIAL=true | |
;; |
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
on run {input, parameters} | |
(* Run Synergy in screen *) | |
tell application "Terminal" | |
set currentTab to do script ("screen -R;") | |
delay 2 | |
do script ("/Applications/Synergy.app/Contents/MacOS/Synergy") in currentTab | |
end tell | |
return input |
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
-nosplash | |
--launcher.defaultAction | |
openFile | |
-vm | |
C:/JDK7/jre/bin/server/jvm.dll #Windows | |
#/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java #OS X | |
-vmargs | |
-Xincgc | |
-Xss1m | |
-Duser.name=FirstName LastName |
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
function svndiff { | |
svn diff "$@" | colordiff | less -rFX | |
} |
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
<y:metatiedot xmlns:y="http://xml.nls.fi/ktjkir/yhteinen/2012/01/01"><y:tiedostonLuontiaika>2013-01-10T14:43:10.990+02:00</y:tiedostonLuontiaika><y:tiedostonLuonninAloitusaika>2013-01-10T14:36:04.233+02:00</y:tiedostonLuonninAloitusaika><y:tiedostonLuonninKestoMillisekunteina>426757</y:tiedostonLuonninKestoMillisekunteina><y:kohteidenLukumaara>611</y:kohteidenLukumaara><y:kyselyparametrit><y:Kyselyparametri nimi="metatiedotMukana">true</y:Kyselyparametri><y:Kyselyparametri nimi="perustiedotMukana">true</y:Kyselyparametri><y:Kyselyparametri nimi="osoitetiedotMukana">true</y:Kyselyparametri><y:Kyselyparametri nimi="kunta">21</y:Kyselyparametri><y:Kyselyparametri nimi="luovuttajanTunnuksetMukana">false</y:Kyselyparametri><y:Kyselyparametri nimi="annetutKunnat">true</y:Kyselyparametri><y:Kyselyparametri nimi="olotila">1</y:Kyselyparametri><y:Kyselyparametri nimi="kohdelaji">KI</y:Kyselyparametri><y:Kyselyparametri nimi="kohdelaji">MA</y:Kyselyparametri><y:Kyselyparametri nimi="henkilotunnuksetMukana">true</y:Kyse |
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
#!/bin/bash | |
# Lataa ja tallenna metadata-osa testcases urleista | |
testcases=("01-lhtiedot-kunta_kunta=1_olotila=1|http://ceto.solita.fi:7080/kios-tp/tp/eraajo/lainhuutotiedot/kunta/xml?kunta=1&olotila=1" | |
"02-lhtiedot-kunta_kunta=5_olotila=1|http://ceto.solita.fi:7080/kios-tp/tp/eraajo/lainhuutotiedot/kunta/xml?kunta=5&olotila=1") | |
BASEDIR=$(cd "$(dirname "$0")"; pwd) | |
SUBPROJECT_HOME=$(cd "$BASEDIR/.."; pwd) | |
set -eu |