Skip to content

Instantly share code, notes, and snippets.

View galdiolo's full-sized avatar

Claudio Galdiolo galdiolo

View GitHub Profile
@ccstone
ccstone / References For Learning & Using Applescript.md
Last active June 12, 2024 01:23
References For Learning & Using Applescript

REFERENCES FOR LEARNING & USING APPLESCRIPT Modified: 2018/06/19 18:47


NOTES

AppleScript is a rather peculiar scripting language to learn.

@nathanbrauer
nathanbrauer / non-static.php
Last active May 18, 2022 03:03
Ways to alias a method on a class.
<?php
/**
* Ways to alias a method on a class.
*
* Methods are in order of least preferred (top) to most preferred (bottom). Code style, not performance, is taken into account.
*/
Class Program {
const SECONDS = 1;
const MICROSECONDS = 2;
@janich
janich / exportMysqlUsers.php
Created July 31, 2013 13:02
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!
*
@kaliaparijat
kaliaparijat / passwords.class.php
Created July 30, 2012 20:16
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/
*
@topdown
topdown / CI_phpStorm.php
Created January 29, 2012 05:21
Code Completion for CodeIgniter in phpStorm
<?php die('This file is not really here!');
/**
* ------------- DO NOT UPLOAD THIS FILE TO LIVE SERVER ---------------------
*
* Implements code completion for CodeIgniter in phpStorm
* phpStorm indexes all class constructs, so if this file is in the project it will be loaded.
* -------------------------------------------------------------------
* Drop the following file into a CI project in phpStorm
* You can put it in the project root and phpStorm will load it.