Skip to content

Instantly share code, notes, and snippets.

View fballiano's full-sized avatar

Fabrizio Balliano fballiano

View GitHub Profile
@fballiano
fballiano / subscribeEmails.php
Created June 20, 2014 10:22
Import newsletter subscribers (without sending any emails) into Magento
<?php
$store_id = 5;
$csv_filepath = "newsletter.csv";
$email_csv_column_index = 2;
$csv_delimiter = ',';
$csv_enclosure = '"';
$magento_path = __DIR__;
require "{$magento_path}/app/Mage.php";

Keybase proof

I hereby claim:

  • I am fballiano on github.
  • I am fballiano (https://keybase.io/fballiano) on keybase.
  • I have a public key ASAIirs8qXvWrjUkyDF67MoeC38l2Fsv7J5b9AHTVmiS6go

To claim this, I am signing this object:

@fballiano
fballiano / build.sh
Last active April 25, 2021 10:37
Ubuntu Mini Remix
#!/bin/bash
# user: ubuntu pass: just hit ENTER
apt-get install vim ubuntu-defaults-builder live-build uck syslinux-utils coreutils
# open /usr/share/livecd-rootfs/live-build/auto/config and add PROJECT=base where there are all the variables
ubuntu-defaults-template ubuntu-defaults-umr
ubuntu-defaults-image --package ubuntu-defaults-umr_0.1_all.deb
mv binary.hybrid.iso ubuntu-mini-remix-15.10-amd64.iso
md5sum ubuntu-mini-remix-15.10-amd64.iso>ubuntu-mini-remix-15.10-amd64.iso.md5
mv ubuntu-mini-remix-15.10-amd64.iso* 15.10/
@fballiano
fballiano / gist:9b9040355ec05c5e8a0c9377c15c8c13
Created September 25, 2021 09:36
Rector PHP8 Magento1/OpenMage
<?php
declare(strict_types=1);
use Rector\Core\Configuration\Option;
use Rector\Php74\Rector\Property\TypedPropertyRector;
use Rector\Set\ValueObject\SetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Rector\Core\ValueObject\PhpVersion;