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/python | |
| # Date: 21/01/2018 | |
| # Author: Mohan Balasundaram | |
| # File path: filter_plugins/validate_zone.py | |
| # Purpose: script to validate ip address and issue the corresponding zone name | |
| # the ip belongs to and if the ip doesnt match the range, it will give the default "NA" | |
| import ipaddress | |
| class FilterModule(object): |
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/sh | |
| # Install brew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # Apple hides old versions of stuff at https://developer.apple.com/download/more/ | |
| # Install the latest XCode (8.0). | |
| # We used to install the XCode Command Line Tools 7.3 here, but that would just upset the most recent versions of brew. | |
| # So we're going to install all our brew dependencies first, and then downgrade the tools. You can switch back after | |
| # you have installed caffe. | |
| # Install CUDA toolkit 8.0 release candidate | |
| # Register and download from https://developer.nvidia.com/cuda-release-candidate-download |
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
| #connect to ssl site | |
| openssl s_client -connect ip:port | |
| #vhost connect | |
| openssl s_client -servername mysite.co.uk -connect mysite.co.uk:443 | |
| #Reading CSR | |
| openssl req -noout -text -in uat-mobi.scotrail.co.uk.csr | |
| #Reading certificates |