Skip to content

Instantly share code, notes, and snippets.

Víctor R. Rodríguez Domínguez vrdominguez

Block or report user

Report or block vrdominguez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vrdominguez
vrdominguez / checkCertificado.sh
Created Oct 25, 2018
Obtener fecha de caducidad de un certificado remoto
View checkCertificado.sh
#!/bin/bash
###############################################################################
# Calcula los dias que quedan para que un certificado remoto caduque, de modo #
# que podamos controlar si ya deberia de estar renovado #
###############################################################################
if [ $# -eq 0 ]; then
echo "No se ha pasado un dominio"
exit 1
@vrdominguez
vrdominguez / dinaip.service
Last active Apr 1, 2018
dinaip service systemd
View dinaip.service
[Unit]
Description=dinaip - DDNS service by Dinahosting
[Service]
Type=forking
ExecStart=/usr/sbin/dinaip -u USER -p PASSWD
ExecStop=/usr/sbin/dinaip -d
PIDFile=/var/run/dinaip.pid
Restart=on-failure
@vrdominguez
vrdominguez / dinaip
Created Aug 13, 2014
Versión para OpenWRT del script init.d para poner dinaIP como servicio
View dinaip
#!/bin/sh /etc/rc.common
# dinaIP Service for OpenWRT
# Author: Victor Rodriguez
# Date: 2014-08-13
START=70;
STOP=15;
# Comandos personalizados
EXTRA_COMMANDS="status list"
@vrdominguez
vrdominguez / logrotate_dinaip
Created Apr 15, 2014
Logrotate config for dinaIP logs
View logrotate_dinaip
/var/log/dinaip.log {
rotate 7
daily
copytruncate
compress
missingok
notifempty
}
@vrdominguez
vrdominguez / dinaip
Last active Mar 26, 2017
Script para gestionar el demonio de dinaIp como un servicio más del sistema. Más info: http://vrdominguez.es/sustituir-dyndns-con-una-raspberry-y-dinaip/
View dinaip
#!/bin/bash
# Author: Victor Rodriguez, 2014
#
# /etc/init.d/dinaip
#
### BEGIN INIT INFO
# Provides: dinaIP daemon
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
@vrdominguez
vrdominguez / lcd-daemon
Created Feb 12, 2014
lcd-daemon init.d
View lcd-daemon
#! /bin/bash
# Copyright (c) 1996-2012 My Company.
# All rights reserved.
#
# Author: Victor Rodriguez, 2014
#
# /etc/init.d/lcd-daemon
#
### BEGIN INIT INFO
# Provides: lcd-daemon
You can’t perform that action at this time.