Skip to content

Instantly share code, notes, and snippets.

View suvl's full-sized avatar

João Trigo Soares suvl

View GitHub Profile
@Symbianx
Symbianx / gist:b60a377854e77efde010a4083b70e35e
Created February 17, 2019 16:16
Marcar faturas da ICA como restauranção no portal E-Fatura
jQuery("td:contains('501426230 - Ica Industria e Comercio Alimentar Sa')").closest("tr").find("button[value='C03']").click()
@jlazic
jlazic / haconfig.sh
Created March 9, 2015 20:02
Split monolithic HAProxy configuration
#!/bin/bash
#Requirements: etckeeper, diffcolor
#This script concatenates multiple files of haproxy configuration into
#one file, and than checks if monolithic config contains errors. If everything is
#OK with new config script will write new config to $CURRENTCFG and reload haproxy
#Also, script will commit changes to etckeeper, if you don't use etckeeper you
#should start using it.
#Script assumes following directory structure:
#/etc/haproxy/conf.d/