https://apple.stackexchange.com/questions/94330/how-can-i-convert-a-dmg-to-iso-on-mac-os-x-preferably-for-free
hdiutil makehybrid -iso -joliet -o [filename].iso [filename].dmg
hdiutil makehybrid -iso -joliet -o [filename].iso [filename].dmg
| # pipe text to openssl command | |
| echo -n "<text>" | openssl sha1 | |
| # example using the word 'password' as text | |
| echo -n "password" | openssl sha1 | |
| # (stdin)= 5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8 | |
| # check out https://hashes.org/hashlists.php |
| # check using openssl s_client | |
| openssl s_client -connect <host>:443 -cipher HIGH | |
| # example | |
| openssl s_client -connect google.com:443 -cipher HIGH | |
| # check using nmap ssl-enum-ciphers | |
| nmap -sV --script ssl-enum-ciphers -p 443 <host> | |
| # example |
| # http://phpstarter.net/2008/07/several-htaccess-mod_rewrite-tricks-to-better-web-application/ | |
| # any access to "secure" directory is redirected to HTTPS | |
| RewriteCond %{HTTPS} off | |
| RewriteRule ^secure/.*$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
| # The httpd.conf is designed for user configurations. | |
| # You really should not edit the apache2.conf as it may be updated by future upgrades. | |
| # An additional option is to just put your custom configuration into /etc/apache2/conf.d, | |
| # all files in this directory are included as well. | |
| # This entry denies access to C: drive | |
| <Directory C:/> | |
| Order deny,allow | |
| Deny from all | |
| AllowOverride None |
| RewriteEngine on | |
| RewriteRule ^/download/(.*)$ /download.asp?file=$1 [L] |
| ec2 describe-snapshots --no-paginate |
| # run this command in the root web directory | |
| find . -type d -exec touch {}/index.html \; |
| # https://support.apple.com/en-us/HT201372 | |
| # download macOS Mojave | |
| # https://itunes.apple.com/us/app/macos-mojave/id1398502828?mt=12 | |
| # create blank image and put in /tmp directory | |
| hdiutil create -o /tmp/Mojave.cdr -size 6100m -layout SPUD -fs HFS+J | |
| # mount blank image at install_build | |
| hdiutil attach /tmp/Mojave.cdr.dmg -noverify -mountpoint /Volumes/install_build |
| # Download macOS High Sierra Installer | |
| # https://itunes.apple.com/us/app/macos-high-sierra/id1246284741?ls=1&mt=12 | |
| # create blank image and put in /tmp directory | |
| hdiutil create -o /tmp/HighSierra.cdr -size 5200m -layout SPUD -fs HFS+J | |
| # mount blank image at install_build | |
| hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
| # run the createinstallmedia on the target /Volumes/install_build |