Changes between Version 1 and Version 2 of GanetiNotes


Ignore:
Timestamp:
05/01/12 09:12:29 (14 years ago)
Author:
mike
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GanetiNotes

    v1 v2  
    55gnt-instance modify --disk-template plain <instancename>
    66}}}
     7
     8=== Create Password using Bash ===
     9{{{
     10# Generate password script/function
     11genpw() {
     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}}}
Trac Appliance - Powered by TurnKey Linux