Skip to content

Instantly share code, notes, and snippets.

@mvmthecreator
mvmthecreator / crontab.py
Created February 8, 2017 17:10
crontab example
import argparse
import os ,sys
import logging
from crontab import CronTab
"""
Task Scheduler
==========
This module manages periodic tasks using cron.
"""
class CronManager:
@mvmthecreator
mvmthecreator / example.html
Created February 8, 2017 20:11 — forked from doobeh/example.html
Simple example of using a RadioField in Flask-WTForms to generate a form.
<form method="post">
{{ form.hidden_tag() }}
{{ form.example }}
<input type="submit">
</form>
@mvmthecreator
mvmthecreator / dorks.py
Created February 18, 2017 17:42
Search Bing and Google for Dorks
"""
***** Auto-finder by dorks tool with Google API & Bing API *****
@author: z0rtecx
@release date: dec-2014
@version: 1.0.12122014
@poc: good dork for find web pages whit SQLi vulnerability in ID parameter, e.g. "inurl:details.php?id="
@description: This tool is for save time for you. It is gathering dorks of a txt file, and search potential web pages with SQLi vulnerability. ONLY FOR MySQL errors.
@features:
@mvmthecreator
mvmthecreator / normalise.py
Created April 5, 2018 01:17 — forked from j4mie/normalise.py
Normalise (normalize) unicode data in Python to remove umlauts, accents etc.
# -*- coding: utf-8 -*-
import unicodedata
""" Normalise (normalize) unicode data in Python to remove umlauts, accents etc. """
data = u'naïve café'
normal = unicodedata.normalize('NFKD', data).encode('ASCII', 'ignore')
print normal
#!/usr/bin/python
# Petrus Alexandre Pavoni Gomes
# [email protected]
#
# 25/09/2010
#
# UFW-Notify v0.2:
# Show a notification popup (libnotify) when UFW Firewall blocks a connection.
# It reads last line from firwall log with "tail" command, parse it and show
# This creates a docker container with lemp stack and creates
# --net = name of your host
# -v your webroot folder:docker container folder with z option
docker run -it -p "8080:80" -p "3306:3306" -e MYSQL_PASS="MySecretPassword" -v /home/user_home_folder/web:/app:z --name=webserver --net=hostname tutum/lamp