How To

How To Create a Password Hash with Python passlib

Create a password hash with python passlib A quick and easy way to create a password hash is with python passlib. Install passlib with pip like this:

Then, run the command below. Of course, you will replace the text “myplaintextpassword” with YOUR OWN plain text password, right?

You’ll get back something that looks… Read more How To Create a Password Hash with Python passlib

Ansible: How To Install Ansible (Mac OS X, CentOS/Fedora, Ubuntu)

Install Ansible on Mac OS X:

Install Ansible on CentOS/Fedora:

The EPEL-Release repository may need to be added on certain versions of CentOS, RHEL, and Scientific Linux. Install Ansible on Ubuntu:

Ansible: How to ping a server from the command line without an ansible playbook

Be sure ansible is installed on your local system. In this example I will use an AWS ec2 instance (REHL5) The ansible command line command is:

(note the comma)

CORS; How To Set HTTP Response Header on IIS Windows Server 2012 R2 to Access-Control-Allow-Origin

When attempting to make an AJAX call are you getting the following error? XMLHttpRequest cannot load (then some path to the remote site). No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://yourAjaxCallingSite.com’ is therefore not allowed access. This means the Server hosting the resource is not set up to be CORS compliant. If… Read more CORS; How To Set HTTP Response Header on IIS Windows Server 2012 R2 to Access-Control-Allow-Origin