Skip to content

Instantly share code, notes, and snippets.

Save water drink beer...

David Castañeda edupr91

Save water drink beer...
  • Xcelirate S.L
  • Barcelona, Spain
  • Twitter @edupr91
View GitHub Profile
edupr91 / Self-Signed SSL with
Created Nov 15, 2022 — forked from KeithYeh/Self-Signed SSL with
Create self-signed SSL certificate with SubjectAltName(SAN)
View Self-Signed SSL with

How to create a self-signed SSL Certificate with SubjectAltName(SAN)

After Chrome 58, self-signed certificate without SAN is not valid anymore.

Step 1: Generate a Private Key

openssl genrsa -des3 -out 2048

Step 2: Generate a CSR (Certificate Signing Request)

edupr91 /
Last active Aug 20, 2021
dummy script to dump aws route53 zones. Also let you pick one single domain to dump.
set -e
# Before using this script check that you have configured your credentials and
# you are logged in to the right aws account.
# try running `aws configure list` to list all your configuration data
# You will also need to install cli53.
# Download the latest and move it to your local bin folder
# mv cli53-linux-amd64 ~/.local/bin/cli53
edupr91 / check_http_alt
Last active Feb 3, 2020
Nagios script that raises an critical after X grace period of time.
View check_http_alt
# Nagios script that raises an critical after X grace period of time.
# curl -x my.super.lan:223 -s --connect-timeout 10
print_usage() {
echo -n '
-u, --url URL to check
-x, --proxy Proxy server
-p, --port Proxy port
edupr91 / check_sentinel
Last active Mar 22, 2017 — forked from chrisboulton/check_sentinel
Awful Nagios plugins to monitor a Redis Sentinel environment
View check_sentinel
#!/usr/bin/env ruby
# Nagios plugin to monitor Redis sentinel
# Checks general connectivity to a Redis sentinel server and will go critical
# for any of the following conditions:
# * Inability to connect to the sentinel server
# * Sentinel reports it isn't monitoring any masters
# * Sentinel has entered TILT mode
edupr91 / gist:e7bbf423efd73d9792b126a585b8457d
Created Jun 2, 2016 — forked from fernandoaleman/gist:5083680
How to update VirtualBox Guest Additions with vagrant
View gist:e7bbf423efd73d9792b126a585b8457d
# Start the old vagrant
$ vagrant init centos-6.3
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
# this machine, please update the guest additions and repackage the
# box.