This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To run this, name this file hello_world.yml and run the following in the same directory | |
# ansible-playbook hello_world.yml -i 'local,' --connection=local | |
- hosts: | |
- local | |
tasks: | |
- name: Create a directory | |
file: path=hello_world state=directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected]) | |
# The author disclaims copyright to this source code. | |
# Modifed to send heartbeat requests for both TLS v1.1 and v1.2 | |
import sys | |
import struct | |
import socket |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WHERE DATEDIFF( | |
DATE(CONCAT(YEAR(DATE_ADD(NOW(), INTERVAL 7 DAY)),"-",MONTH(DATE(dob)),"-",DAY(DATE(dob)))), | |
DATE(NOW()) | |
) | |
BETWEEN 0 AND 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Standard ezSQL Libs | |
include_once "shared/ez_sql_core.php"; | |
include_once "mysql/ez_sql_mysql.php"; | |
// Initialise singleton | |
$db = new ezSQL_mysql('db_user', 'db_pass', 'db_name'); | |
// Cache expiry |