This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download the iPerf Offline Bundle | |
wget http://vibsdepot.v-front.de/depot/bundles/iperf-2.0.5-1-offline_bundle.zip | |
# Copy the file up to your ESXi 6.7 server i.e. /vmfs/volumes/datastore1/ISOImages and install with the --no-sig-check option. | |
esxcli software vib install -d /vmfs/volumes/datastore1/ISOImages/iperf-2.0.5-1-offline_bundle.zip --no-sig-check | |
# It installs into /opt/iperf/bin | |
/opt/iperf/bin/iperf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run this command in the root web directory | |
find . -type d -exec touch {}/index.html \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ec2 describe-snapshots --no-paginate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteRule ^/download/(.*)$ /download.asp?file=$1 [L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
OlderNewer