I hereby claim:
- I am zertrin on github.
- I am zertrin (https://keybase.io/zertrin) on keybase.
- I have a public key whose fingerprint is 4846 4D5D B849 5D47 1E83 48FE 5D2C 0DC0 ACF8 1B81
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| # From http://code.activestate.com/recipes/533117-cleaning-up-when-killed/ | |
| from signal import signal, SIGTERM | |
| from sys import exit | |
| import atexit | |
| def cleanup(): | |
| print "Cleanup" |
| ### | |
| # | |
| # Preseed for a Debian based machine on kvm | |
| # | |
| # Boot this file with: press TAB on the installer | |
| # add the following to the boot parameters: | |
| # | |
| # install keymap=en_US locale=en_US netcfg/get_hostname=testserve \ | |
| # netcfg/get_domain=carfax.eu preseed/url=http://192.168.XXX.XXX:8000/wheezy.preseed | |
| # |
| function datevector = datevect_interval(start_d, end_d, interval_min, incl) | |
| % This function creates a vector of dates (in MATLAB datenum format) | |
| % that covers a time interval beginning at 'startdate' and ending at | |
| % 'end_date' (excluded) in intervals of 'interval_min' minutes | |
| % | |
| % Example: | |
| % datevect_interval([2011 1 1 2 0 0], [2011 6 30 2 0 0], 15) | |
| % creates a vector containing all datenums | |
| % from Jan 1st 2011 02:00 to Jun 30th 01:45 | |
| % every 15 minutes |
I hereby claim:
To claim this, I am signing this object:
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| #!/usr/bin/env bash | |
| DBUSER="mysqlbackup" | |
| DBPASS="password" | |
| DONTBACKUP=( "mysql" "information_schema" "performance_schema" "test" ) | |
| BACKUPROOT="/data/mysqlbackup" | |
| DATEFORMAT=`date +%F` | |
| BACKUPDIR="${BACKUPROOT}/${DATEFORMAT}" |
| #!/bin/sh | |
| # | |
| # A script to retrieve a SSL certificate from a server | |
| # usage: retrieve-cert.sh remote.host.name [port] | |
| # | |
| REMHOST=$1 | |
| REMPORT=${2:-443} | |
| echo |\ | |
| openssl s_client -connect ${REMHOST}:${REMPORT} 2>&1 |\ |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>Me contacter</title> | |
| <link rel="stylesheet" media="all" href="css/main.css"> | |
| </head> | |
| <body> | |
| <div class="center"> | |
| <div class="header block"> |