Changes between Version 1 and Version 2 of GanetiNotes
- Timestamp:
- 05/01/12 09:12:29 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GanetiNotes
v1 v2 5 5 gnt-instance modify --disk-template plain <instancename> 6 6 }}} 7 8 === Create Password using Bash === 9 {{{ 10 # Generate password script/function 11 genpw() { 12 local l=${1:-16} 13 local s=${2:-0} 14 local n=${3:-1} 15 [ "$s" == "0" ] && PAT="a-zA-Z0-9" || PAT="a-zA-Z0-9-!@#$%^&*()+{}|:<>?$" 16 cat /dev/urandom | tr -dc "${PAT}" | fold -w ${l} | head -n ${n} 17 } 18 }}}
