https://github.com/OpenVPN/easy-rsa/tree/master/doc
Init:
wget https://github.com/OpenVPN/easy-rsa/releases/download/3.0.1/EasyRSA-3.0.1.tgz
tar xzvf EasyRSA-3.0.1.tgz
cd EasyRSA-3*
vim vars # var.example
./easyrsa init-pki
| { | |
| "kind": "Template", | |
| "apiVersion": "v1", | |
| "metadata": { | |
| "name": "a-quickstart-keyvalue-application", | |
| "creationTimestamp": null, | |
| "annotations": { | |
| "description": "This is an example of a Ruby and MySQL application on OpenShift 3", | |
| "iconClass": "icon-ruby", | |
| "tags": "instant-app,ruby,mysql" |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| #!/usr/bin/python | |
| DOCUMENTATION = ''' | |
| --- | |
| module: copy_remotely | |
| short_description: Copies a file from the remote server to the remote server. | |
| description: | |
| - Copies a file but, unlike the M(file) module, the copy is performed on the | |
| remote server. | |
| The copy is only performed if the source and destination files are different | |
| (different MD5 sums) or if the destination file does not exist. |
https://github.com/OpenVPN/easy-rsa/tree/master/doc
Init:
wget https://github.com/OpenVPN/easy-rsa/releases/download/3.0.1/EasyRSA-3.0.1.tgz
tar xzvf EasyRSA-3.0.1.tgz
cd EasyRSA-3*
vim vars # var.example
./easyrsa init-pki
| # Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source. | |
| # Will include all hosts the playbook is run on. | |
| # Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html | |
| - name: "Build hosts file" | |
| lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present | |
| when: hostvars[item].ansible_default_ipv4.address is defined | |
| with_items: groups['all'] |
| for i in setup/*; do echo $if; jq '[.ansible_facts.ansible_hostname,.ansible_facts.ansible_devices.sda.size , .ansible_facts.ansible_all_ipv4_addresses[0]]' -c $i;done >list | |
| and then, note the | @csv | |
| for i in setup/*; do echo $if; jq '[.ansible_facts.ansible_hostname,.ansible_facts.ansible_devices.sda.size , .ansible_facts.ansible_all_ipv4_addresses[0]] | @csv' -r $i;done | |
| "qa-pgdb01","120.00 GB","10.100.13.70" | |
| for i in setup/*; do jq '[ .ansible_facts.ansible_hostname, .ansible_facts.ansible_all_ipv4_addresses[0] ] | join(", ")' -j $i;echo;done | |
| qa-pgdb01, 10.100.13.70 |
| HANDY ONE-LINERS FOR SED (Unix stream editor) Oct. 29, 1997 | |
| compiled by Eric Pement <epement@jpusa.chi.il.us> version 4.3 | |
| Latest version of this file is always at <http://www.wollery.demon.co.uk> | |
| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # triple space a file | |
| sed 'G;G' |
| #!/bin/bash | |
| inp="No"; | |
| echo "Are you SURE you want to delete file(s) in $(pwd)? (No/yes)" | |
| read inp | |
| if [ "$inp" == "yes" ];then | |
| echo "Removing..." | |
| rm $@ | |
| else | |
| exit 1 |
| #--- | |
| # iPIN - iPhone PNG Images Normalizer v1.0 | |
| # Copyright (C) 2007 | |
| # | |
| # Author: | |
| # Axel E. Brzostowski | |
| # http://www.axelbrz.com.ar/ | |
| # axelbrz@gmail.com | |
| # | |
| # References: |