Skip to content

Instantly share code, notes, and snippets.

View galdiolo's full-sized avatar

Claudio Galdiolo galdiolo

View GitHub Profile
@galdiolo
galdiolo / passwords.class.php
Created January 23, 2019 22:53 — forked from kaliaparijat/passwords.class.php
Drupal Password hash class (Procedural) as a Symfony library class (OOP) :used for a scenario where a Symfony powered website requires access to user credentials that have been signed up with an existing Drupal site
<?php
/**
* @file
* Secure password hashing functions for user authentication.
*
* Based on the Portable PHP password hashing framework.
* @see http://www.openwall.com/phpass/
*
-------------------------------------------------------------------------------------------
REFERENCES FOR LEARNING & USING APPLESCRIPT Modified: 2016/05/25 15:01
-------------------------------------------------------------------------------------------
NOTES
-------------------------------------------------------------------------------------------
AppleScript is a rather peculiar scripting language to learn.
@galdiolo
galdiolo / exportMysqlUsers.php
Last active May 28, 2016 00:01 — forked from janich/exportMysqlUsers.php
Export MySQL users and permissions
<?php
/**
* Export MySQL users and permissions
*
* This script exports raw CREATE USER and GRANT queries of a given database
* to help migrate MySQL users and permissions to a new server.
* Users will keep their passwords across the migration.
*
* Warning: The import queries expects exactly the same database structure!
*
<?php
/**
* @todo: add documentation!
*
* @property string|array $returnUrl
*/
abstract class BaseRESTAction extends CAction
{
const HTML = 'html';