Skip to content

Instantly share code, notes, and snippets.

View pixline's full-sized avatar

Paolo T. pixline

View GitHub Profile
#!/bin/bash
DOMAIN="easyforex"
POT="$DOMAIN.pot"
LANGS="en_US ru_RU"
SOURCES="*.php"
# Create template
echo "Creating POT"
rm -f $POT
@pixline
pixline / imapsync.sh
Created June 28, 2013 04:24
IMAP to IMAP batch mailbox migration. Requires imapsync (http://imapsync.lamiral.info/)
#!/usr/bin/php
#
# Usage: ./imapsync.sh accounts.csv
#
# CSV account schema:
# old_username;old_password;new_username;new_password
#
<?php
define('HOST_FROM', 'imap.example.com');
{
"name" : "rarst/install-test",
"description" : "Test project for WordPress stack via Composer",
"authors" : [
{
"name" : "Andrey Savchenko",
"email" : "[email protected]",
"homepage": "http://www.Rarst.net/"
}
],
@pixline
pixline / Gruntfile.js
Created June 27, 2013 01:28
Grunt.js example file
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
@pixline
pixline / blowfish_hex_test.php
Created October 23, 2011 04:00
Decodifica HEX -> Blowfish -> Plain Text
<?php
/**
* Decodifica HEX -> Blowfish -> Plain Text
* @license http://creativecommons.org/publicdomain/zero/1.0/
*/
/**
* pear install Crypt_Blowfish
* @link http://pear.php.net/package/Crypt_Blowfish/
*/