This file contains hidden or 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
# Email SQLite Backup Hack | |
# 2015 | |
# Lewis Cowles | |
# Nasty Python 2.7 Compatible E-Mail Backup (Once done) | |
import imaplib, email, sqlite3 | |
from email.utils import * | |
from datetime import datetime | |
# Setup DB |
This file contains hidden or 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 | |
require '../vendor/autoload.php'; | |
$graph1 = new EasyRdf_Graph(); | |
$graph1->addResource('http://example.org/1', 'dc:title', 'Hello, world!'); | |
$graph1->addResource('http://example.org/2', 'dc:description', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'); | |
$graph2 = new EasyRdf_Graph(); | |
$graph2->addResource('http://example.org/1', 'dc:description', 'Some boring description'); | |
$graph2->addResource('http://example.org/2', 'dc:title', 'Hello, second world!'); |