Skip to content

Instantly share code, notes, and snippets.

View edupr91's full-sized avatar
🤙
Save water drink beer...

David Castañeda edupr91

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

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 / check_sentinel
Last active March 22, 2017 13:13 — forked from chrisboulton/check_sentinel
Awful Nagios plugins to monitor a Redis Sentinel environment
#!/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 June 2, 2016 14:34 — forked from fernandoaleman/gist:5083680
How to update VirtualBox Guest Additions with vagrant
# 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.