Skip to content

Instantly share code, notes, and snippets.

@qastmoran
qastmoran / qtest_install2.sh
Last active December 23, 2016 15:07
qtest_install2.sh
#!/bin/sh
function set_var {
set -e
#set -x
hostip=$(ip addr | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' | head -1)
sel_host=''
log=' 2>&1 |tee -a qest_install.log'
}
function add_color {
@qastmoran
qastmoran / save-all-images.sh
Created October 26, 2016 08:04 — forked from lalyos/save-all-images.sh
script to save all docker image, and load them back
reload() {
source ${BASH_SOURCE[0]}
}
alias r=reload
get-image-field() {
local imageId=$1
local field=$2
: ${imageId:? reuired}