Skip to content

Instantly share code, notes, and snippets.

View levysantanna's full-sized avatar
😎

Levy Sant'Anna levysantanna

😎
  • Red Hat
  • Brazil
View GitHub Profile
@levysantanna
levysantanna / parse_tag.py
Created December 18, 2018 19:22 — forked from ashcrow/parse_tag.py
Quick and dirty parsing of tags
#!/usr/bin/env python
import json
import sys
def main():
for tag in json.loads(sys.stdin.read())['RepoTags']:
# Do your commands here
print(tag)
@levysantanna
levysantanna / Steam-on-fedora.md
Last active December 8, 2018 14:36 — forked from mattbell87/Steam-on-fedora.md
How to install Steam on Fedora
@levysantanna
levysantanna / virt-install-centos
Created November 15, 2018 22:27 — forked from giovtorres/virt-install-centos
Install CentOS cloud images on KVM using cloud-init
#!/bin/bash
## **Updates to this file are now at https://github.com/giovtorres/kvm-install-vm.**
## **This updated version has more options and less hardcoded variables.**
# Take one argument from the commandline: VM name
if ! [ $# -eq 1 ]; then
echo "Usage: $0 <node-name>"
exit 1
fi
@levysantanna
levysantanna / ca_validation.md
Created May 30, 2018 13:21 — forked from genaromadrid/ca_validation.md
Validate a Certificate against a Certificate Authority using OpenSSL

Certificate CA Validation

The easy way

To validate a certificate agains a certificate authority you just have to run

openssl verify -trusted ca_root.pem -untrusted intermediate_ca.pem certificate.pem

You'll see a 'OK' message at the end of the output

#!/bin/bash
# Hosted Zone ID e.g. BJBK35SKMM9OE
ZONEID="enter zone id here"
# The CNAME you want to update e.g. hello.example.com
RECORDSET="enter cname here"
# More advanced options below
# The Time-To-Live of this recordset