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 / 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.
@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 / check_http_alt
Last active February 3, 2020 14:50
Nagios script that raises an critical after X grace period of time.
#!/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 / dump-route53.sh
Last active August 20, 2021 10:02
dummy script to dump aws route53 zones. Also let you pick one single domain to dump.
#!/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 / 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)