En PostgreSQL, supongamos que queremos generar todos los períodos mensuales entre ‘2015-09-12 23:50:00’ y ‘2015-11-22 00:20:00’ con corte al inicio del día 8.
Notas
Consumo pico de memoria general en Linux
Desafortunadamente, Linux no mantiene un registro del consumo pico de memoria general. Sí lo hace para un proceso pero no para la totalidad del sistema. A falta de esto y como mero hack, el siguiente script se puede dejar corriendo durante un tiempo determinado: #!/bin/bash free -m -s 0.05 | while read A _ V _; do … Leer más
Asignacion de variables en Bash
En Bash, ¿qué diferencia hay entre las siguientes tres instrucciones?
VARIABLE=valor instrucciónVARIABLE=valor; instrucciónexport VARIABLE=valor; instrucción
¿Por qué no todas las combinaciones funcionan cuando se invoca Make y por qué no todas las combinaciones funcionan con echo?
Cisco Type 5 password generation with OpenSSL
In light of the discovered weakness in the Type 4 password encryption mechanism, this is a way of generating Type 5 passwords using OpenSSL: openssl passwd -salt `openssl rand -base64 3` -1 PLAINTEXT_PASSWORD After which it can be copied to the target device: username USER secret 5 RESULTING_HASH Source: Cisco Security Response – Cisco IOS … Leer más