Skip to content

Instantly share code, notes, and snippets.

Avatar
🤙
Save water drink beer...

David Castañeda edupr91

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

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 example.com.key 2048

Step 2: Generate a CSR (Certificate Signing Request)

@edupr91
edupr91 / dump-route53.sh
Last active Aug 20, 2021
dummy script to dump aws route53 zones. Also let you pick one single domain to dump.
View dump-route53.sh
#!/bin/bash
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. https://github.com/barnybug/cli53
# Download the latest and move it to your local bin folder https://github.com/barnybug/cli53/releases/latest
# mv cli53-linux-amd64 ~/.local/bin/cli53
@edupr91
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
#!/bin/bash
# Nagios script that raises an critical after X grace period of time.
# curl -x my.super.lan:223 http://foo.bar -s --connect-timeout 10
print_usage() {
echo -n '
Options:
-u, --url URL to check
-x, --proxy Proxy server
-p, --port Proxy port
@edupr91
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
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.