Difference between revisions of "GSDP:GAM100/API/Code"
From Inside
< GSDP:GAM100 | API
>Justin.chambers |
>Justin.chambers |
||
Line 1: | Line 1: | ||
<html><style type="text/css"> | <html><style type="text/css"> | ||
#bodyContent { background-color: lightgrey; } | #bodyContent { background-color: lightgrey; } | ||
− | #p-logo { background-image: url(https://i1.wp.com/seattle.makerfaire.com/wp-content/uploads/sites/118/gravity_forms/5-922e59cd0a5f4d9dd3f737075c158672/2017/06/DigiPen_Dragon_COMBO_Black.png) | + | #p-logo { background-image: url(https://i1.wp.com/seattle.makerfaire.com/wp-content/uploads/sites/118/gravity_forms/5-922e59cd0a5f4d9dd3f737075c158672/2017/06/DigiPen_Dragon_COMBO_Black.png); }*/ |
− | + | </style></html> | |
− | </style></html> Edit to see an example of an inline style<code> #bodyContent { background-color: lightgrey; }</code> | + | |
+ | Edit to see an example of an inline style<code> #bodyContent { background-color: lightgrey; }</code> | ||
<SyntaxHighlight lang=bash> | <SyntaxHighlight lang=bash> |
Revision as of 11:27, 14 April 2018
Edit to see an example of an inline style #bodyContent { background-color: lightgrey; }
cya_init="spawn sudo su - cyrusadmin; expect -re \"cyradm>\"; send \"connect localhost\n\"; "
cya_exit="expect -re \"localhost>\"; send \"exit\n\"; sleep 0.1; "
function cyradm.Auto { expect -c "$cya_init $cya_auth $cya_null $1 sleep 0.1; $cya_null $cya_exit " ;} # Wrapper
function cyradm.lamB { cyradm.Auto "send \"lam \\\"$1\\\"\n\";" ;} # Bad looking output
function cyradm.lam { out=$( echo $(cyradm.lamB "$1" | cat -v | grep "> lam \| lrs\|not exist" | sed 's%\^M%%g;s%localhost> lam %%' )) ; if [[ "$out" == *"Mailbox does not exist" ]] ; then cyradm.cm "$1" ; cyradm.lam "$1" ; else echo "$out" ; fi ;} # If Mailbox does not exist then create it.
function cyradm.samG { cyradm.Auto "send \"sam \\\"$1\\\" $2 lrs\n\";" | grep "BeQuiet" ;} # Grant Read Only
Hay doing thing:
me@here:~$ execute things