Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| <?php | |
| echo "################################# NOTICE ##################################\n"; | |
| echo "# This script will clone and setup > 20 sites and make take over an hour. #\n"; | |
| echo "# If a site already exists any local changes will be overwritten. #\n"; | |
| echo "###########################################################################\n"; | |
| echo "Are you sure you want to continue? (yes/no) : "; | |
| $stdin = fopen ( "php://stdin","r" ); | |
| $line = fgets( $stdin ); |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>Solarized (dark)</string> | |
| <key>settings</key> | |
| <array> | |
| <dict> | |
| <key>settings</key> |
| function generatePassword($length=9, $strength=0) { | |
| $vowels = 'aeuy'; | |
| $consonants = 'bdghjmnpqrstvz'; | |
| if ($strength >= 1) { | |
| $consonants .= 'BDGHJLMNPQRSTVWXZ'; | |
| } | |
| if ($strength >= 2) { | |
| $vowels .= "AEUY"; | |
| } | |
| if ($strength >= 4) { |