Skip to content

Instantly share code, notes, and snippets.

View DasLampe's full-sized avatar
🍻

André Flemming DasLampe

🍻
View GitHub Profile
@DasLampe
DasLampe / mysqlbackup.sh
Last active December 19, 2015 00:09 — forked from Ditti4/mysqlbackup.sh
#!/bin/bash
# This file is licensed under the DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004
# See http://www.wtfpl.net/txt/copying/
password=''
mail=''
date=$(date +%m_%d_%Y%H_%M_%S)
if [ ! -d /backup/sql -o ! -w /backup/sql ]; then
@DasLampe
DasLampe / doorman.sh
Created November 22, 2012 13:26 — forked from franciscodavid/doorman.sh
Port Knocking, client and server configuration files
#!/bin/bash
#
# Port Knocking server configuration. It closes all ports but the webserver one.
# When the correct sequence of ports is detected (1000. 2000. 3000. 4000), the
# SSH port is opened for 5 seconds to allow connections.
#
# Erase all the rules
iptables -F