Skip to content

Instantly share code, notes, and snippets.

View centerax's full-sized avatar
✈️

Pablo S. Benitez centerax

✈️
View GitHub Profile
#!/bin/sh
# http://www.alfredklomp.com/programming/shrinkpdf
# Licensed under the 3-clause BSD license:
#
# Copyright (c) 2014-2019, Alfred Klomp
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
---- /var/www/magento2/dev/tests/unit> php /var/www/magento2/./vendor/phpunit/phpunit/phpunit
PHPUnit 4.1.0 by Sebastian Bergmann.
Configuration read from /var/www/magento2/dev/tests/unit/phpunit.xml.dist
........................................................... 59 / 21839 ( 0%)
........................................................... 118 / 21839 ( 0%)
........................................................... 177 / 21839 ( 0%)
@centerax
centerax / keybase.md
Last active February 1, 2017 12:43
keybase.md

Keybase proof

I hereby claim:

  • I am centerax on github.
  • I am pablobenitez (https://keybase.io/pablobenitez) on keybase.
  • I have a public key ASDh42P370WXdmjfJCqibYEeyoBM6sctOzOL4Jenw942bgo

To claim this, I am signing this object:

#!/usr/bin/php
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See https://github.com/magento/magento2/blob/develop/COPYING.txt for license details.
*/
/**
* validate_m2_package.php - a script that checks a given M2 zip package to ensure
* it is structured correctly and has all the required files.
<?php
$data = array(
array('warehouse'=>"wh_en",'sku'=>'ace000','sign'=>'+','stock'=>1),
array('warehouse'=>"1",'sku'=>'ace000','sign'=>'+','stock'=>1),
);
$jsonData = json_encode($data);

Keybase proof

I hereby claim:

  • I am centerax on github.
  • I am pablobenitez (https://keybase.io/pablobenitez) on keybase.
  • I have a public key whose fingerprint is 5EC2 3ED6 B194 066C 589B 7B4D 7941 1453 3D33 EF06

To claim this, I am signing this object:

# -*- mode: ruby -*-
# vi: set ft=ruby :
# Config Github Settings
github_username = "fideloper"
github_repo = "Vaprobash"
github_branch = "1.0.0"
github_url = "https://raw.githubusercontent.com/#{github_username}/#{github_repo}/#{github_branch}"
# Server Configuration
@centerax
centerax / create_user.php
Created June 26, 2014 14:50
Create New Magento admin User programmatically
<?php
// Create New admin User programmatically.
require_once('./app/Mage.php');
umask(0);
Mage::app();
try {
$user = Mage::getModel('admin/user')
->setData(array(
@centerax
centerax / url.txt
Created June 23, 2014 15:54
Alexa Top million Download URL
http://s3.amazonaws.com/alexa-static/top-1m.csv.zip
@centerax
centerax / test-ccs.txt
Created June 15, 2014 16:52
Sage Payment Solutions TEST credit card numbers
Visa
4111111111111111
MasterCard
5499740000000057
Discover
6011000993026909
Amex