Skip to content

Instantly share code, notes, and snippets.

View jacmkno's full-sized avatar

jacmkno

View GitHub Profile
@jacmkno
jacmkno / .env.example
Last active March 5, 2021 14:24
Docker
APP_NAME=Sourect
APP_ENV=local
APP_KEY=base64:AmZFtXskJNRgoVVlfeu5IzgCOW2L9soPAaQ8JeH3Jvg=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=sourect_mysql
.t-share a:last-child { margin-bottom: 0; }
.t-share a { width: 26px; height: 26px; display: block; margin-bottom: 10px; background: black; }
.t-share .t-fb { background:url(http://clientes.zolad.com/oviedo/facebook.png) }
.t-share .t-ma { background:url(http://clientes.zolad.com/oviedo/mail.png) }
.t-share .t-pi { background:url(http://clientes.zolad.com/oviedo/pinterest.png) }
.t-share { position: absolute; background: rgba(255,255,255,0.5) url(http://clientes.zolad.com/oviedo/oo.png) center 10px no-repeat; z-index: 999; top: 50%; right: 50%; padding: 10px; padding-top: 52px; }
.sqs-lightbox-padder .t-share{ opacity:0; -webkit-transition:all 0.5s; transition:all 0.5s; -moz-transition:all 0.5s; }
.sqs-lightbox-padder:hover .t-share{ opacity:1; }
@jacmkno
jacmkno / healthcheck.sh
Last active October 3, 2022 18:22
This script runs health checks in a set of hosts and updates their status on an nginx server. It also sends email notifications with the linux mail command. All other dependencies come natively with linux. It is a great alternative to the comercial nginx health_heck feature.
#!/bin/bash
# By @jacmkno - Activisual S.A.S. - http://activisual.net
# Script summary
# This script runs health cehcks in a set of hosts and updates their status on an nginx server
HOSTS=(201.208.65.152 46.56.115.234 42.79.216.211)
HOSTS_COUNT=3 # Number of hosts in the array
MAIL_SUBJECT='ACTIVISUAL - Health check status change'
MAIL_TO='[email protected]'
NGINX_CONF=/etc/nginx/nginx.conf