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/
*
title = Un exemple de l20n.js
world = le monde
hello = Salut, <em>{ world }</em>!
'use strict';
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
(function () {
'use strict';
function emit(listeners) {
var _this = this;
-------------------------------------------------------------------------------------------
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!
*
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example</title>
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/jquery.slick/1.3.6/slick.css"/>
<style>
.menu {
text-align: center;
}
<?php
/**
* @todo: add documentation!
*
* @property string|array $returnUrl
*/
abstract class BaseRESTAction extends CAction
{
const HTML = 'html';