(Create a symlink pytest for py.test)
pytest [options] [file_or_dir] [file_or_dir] ...
Help:
| #!/usr/bin/env python | |
| # an example how to use Faker to create fake data and inject them | |
| # in a mysql database | |
| import time | |
| import os | |
| import mysql.connector | |
| from mysql.connector import Error | |
| from faker import Faker |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| #!/usr/bin/python | |
| from OpenSSL import crypto | |
| import os | |
| import sys | |
| import datetime | |
| import whois | |
| #Variables | |
| TYPE_RSA = crypto.TYPE_RSA | |
| TYPE_DSA = crypto.TYPE_DSA |
| --- | |
| - hosts: localhost | |
| vars: | |
| - dnsname: your.dns.name | |
| - tmppath: "./tmp/" | |
| - crtpath: "{{ tmppath }}{{ dnsname }}.crt" | |
| - pempath: "{{ tmppath }}{{ dnsname }}.pem" | |
| - csrpath: "{{ tmppath }}{{ dnsname }}.csr" | |
| - pfxpath: "{{ tmppath }}{{ dnsname }}.pfx" | |
| - private_key_password: "password" |
| --- | |
| # Playbook generates key, CSR and self-signed SSL certificates for CA and domain of interest | |
| # | |
| # To run (replace with your own values): | |
| # ``` | |
| # ansible-playbook \ | |
| # --extra-vars 'cert_common_name=domain.example.com' \ | |
| # --extra-vars '{"cert_subject_alt_name":["DNS:*.example.com","DNS:*.subdomain.example.com"]}' \ | |
| # generate_ssl_keys_csr_certificates.yml | |
| # ``` |
| [alias] | |
| # Source: http://stackoverflow.com/questions/7066325/how-to-list-show-git-aliases#answer-7067489 | |
| # Found on stackoverflow list all available aliases == | |
| alias = config --get-regexp '^alias.*' | |
| s = status | |
| ss = status --short | |
| ssb = status --short --branch | |
| co = commit |