worked for me yesterday (tm)
Also see:
| <?php | |
| /** | |
| * A Script to help work with Moodle's Privacy API. | |
| * @author Michael Hughes <michaelhughes@strath.ac.uk>, University of Strathclyde, | |
| * Creates and SAR for specified user. | |
| * Optionally can | |
| * * unpack the resulting SAR to a specified location | |
| * * add the SAR request to the cron queue (instead of processing it immediately). | |
| */ | |
| define('CLI_SCRIPT', true); |
| #!/usr/bin/env python3 | |
| # Author: edoz90 | |
| import sys | |
| try: | |
| # http://click.pocoo.org/5/why/ | |
| import click | |
| import dbus | |
| from colored import fg, stylize | |
| except: | |
| print("Need to install click, dbus-python and colored") |
worked for me yesterday (tm)
Also see:
| #!/bin/bash | |
| # remove exited containers: | |
| docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
| # remove unused images: | |
| docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi | |
| # remove unused volumes: | |
| find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf <( |
| Char Unicode | |
| ------------------------------ | |
| Ä, ä \u00c4, \u00e4 | |
| Ö, ö \u00d6, \u00f6 | |
| Ü, ü \u00dc, \u00fc | |
| ß \u00df |
The [RFC for a new simple to use password hashing API][rfc] has just been accepted for PHP 5.5. As the RFC itself is rather technical and most of the sample codes are something you should not use, I want to give a very quick overview of the new API:
Everybody knows that you should be hashing their passwords using bcrypt, but still a surprising number of developers uses insecure md5 or sha1 hashes (just look at the recent password leaks). One of the reasons for this is that the crypt() API is ridiculously hard to use and very prone to programming mistakes.