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 | |
## VM Clone ## | |
VM="$1" # "MeinRechner" | |
System="Debian_64" | |
isoFolder="$2" #"/root/VirtualBox VMs/MeinRechner" | |
strgCtl="sata" | |
VBM="/usr/bin/VBoxManage" | |
$VBM createvm --name $VM --ostype $System --register | |
$VBM storagectl $VM --name $strgCtl --add sata |
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
# history | |
HISTFILE=~/.zsh/histfile | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
setopt appendhistory | |
setopt hist_expire_dups_first hist_ignore_space share_history | |
setopt autocd beep extendedglob nomatch notify | |
autoload -Uz up-line-or-beginning-search |
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
SELECT | |
IF(a <=> NULL, 1, a), | |
IF( a IS NULL, 1, a ), | |
IF( a IS NOT NULL, a, 1 ), | |
IF( ISNULL(a), 1, a ), | |
IF( !ISNULL(a), a, 1 ), | |
IF( !!ISNULL(a), 1, a ), | |
IFNULL( a, 1 ) | |
FROM | |
(SELECT 1 as a) as tmp |
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
# using the instructions from http://golang.org/doc/code.html | |
# either use the first command line argument or read the test directory | |
if [ $# -gt 0 ]; then | |
dir=$1; | |
else | |
read -p "test directory: " dir | |
fi | |
############################### |
NewerOlder