This file contains hidden or 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
# Test an SSL connection | |
openssl s_client -connect <IP>:<PORT> | |
# Test if SSLv3 is supported | |
# Expected result if TLSv1.0 is not supported: ssl handshake failure | |
openssl s_client -connect <IP>:<PORT> -ssl3 | |
# Test if TLSv1.0 is supported | |
# Expected result if TLSv1.0 is not supported: ssl handshake failure |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Usage: ./verify_ciphers.sh IP:PORT | |
# Credits: http://superuser.com/a/224263/204745 | |
# OpenSSL requires the port number. | |
SERVER=$1 | |
DELAY=1 | |
ciphers=$(openssl ciphers 'ALL:eNULL' | sed -e 's/:/ /g') | |
echo Obtaining cipher list from $(openssl version). |
This file contains hidden or 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
## Important Documentation | |
Documentation: https://docs.ansible.com/ansible/latest/index.html | |
Modules: https://docs.ansible.com/ansible/latest/modules/modules_by_category.html | |
Community: https://docs.ansible.com/ansible/latest/community/index.html | |
## Other resources | |
Ansible for the Windows Admin: https://www.youtube.com/watch?v=ZI20Y10OKd0 |
This file contains hidden or 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
#!/bin/bash | |
set -e | |
UPDATES_URL="http://updates.jenkins-ci.org/download/plugins/" | |
if [ $# -lt 2 ]; then | |
echo "USAGE: $0 plugin-list-file destination-directory" | |
exit 1 | |
fi |
This file contains hidden or 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
### On RHEL5 servers ### | |
1. Check the login failure count | |
pam_tally --user username | |
2. Reset the login failures | |
pam_tally --user username --reset | |
3. Retry logging in. | |
### On RHEL6 and RHEL7 servers ### | |
1. Check the login failure count | |
pam_tally2 --user username |
This file contains hidden or 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
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
NewerOlder