Skip to content

Instantly share code, notes, and snippets.

Deivison Arthur Lemos Serpa deivisonarthur

Block or report user

Report or block deivisonarthur

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:d57537bf5e7258f31b7d90300a862adf
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Zape.me -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-3398813693890634"
data-ad-slot="6755844429"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@deivisonarthur
deivisonarthur / responsive_likebox.html
Created May 3, 2017
Responsive Facebook Like Box
View responsive_likebox.html
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<div id="container" style="width:100%;">
<div class="fb-like-box" data-href="https://www.facebook.com/adobegocreate" data-width="292" data-show-faces="true" data-stream="true" data-header="true"></div>
</div>
View delete_all_customers.sql
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE `customer_address_entity`;
TRUNCATE TABLE `customer_address_entity_datetime`;
TRUNCATE TABLE `customer_address_entity_decimal`;
TRUNCATE TABLE `customer_address_entity_int`;
TRUNCATE TABLE `customer_address_entity_text`;
TRUNCATE TABLE `customer_address_entity_varchar`;
TRUNCATE TABLE `customer_entity`;
TRUNCATE TABLE `customer_entity_datetime`;
@deivisonarthur
deivisonarthur / Portifolio
Created Jan 26, 2016
Portifólio Inovarti e-commerces em Magento - Melhor plataforma de ecommerce B2C, B2B e Marketplace
@deivisonarthur
deivisonarthur / mage-dbdump-sales-users
Created Nov 3, 2015 — forked from seangreen/mage-dbdump-sales-users
Shell Script to Dump / Import Magento Sales and Customers
View mage-dbdump-sales-users
#!/bin/bash
# VARIABLES
CONFIG_FILE="./app/etc/local.xml"
DUMP_FILE="./var/db-sales-users.sql"
TABLES="sales_bestsellers_aggregated_daily sales_bestsellers_aggregated_monthly sales_bestsellers_aggregated_yearly sales_billing_agreement sales_billing_agreement_order sales_flat_creditmemo sales_flat_creditmemo_comment sales_flat_creditmemo_grid sales_flat_creditmemo_item sales_flat_invoice sales_flat_invoice_comment sales_flat_invoice_grid sales_flat_invoice_item sales_flat_order sales_flat_order_address sales_flat_order_grid sales_flat_order_item sales_flat_order_payment sales_flat_order_status_history sales_flat_quote sales_flat_quote_address_item sales_flat_quote_item sales_flat_quote_item_option sales_flat_quote_payment sales_flat_quote_shipping_rate
sales_flat_shipment sales_flat_shipment_comment sales_flat_shipment_grid sales_flat_shipment_item sales_flat_shipment_track sales_invoiced_aggregated sales_invoiced_aggregated_order sales_order_aggregated_created sales_order_aggregated_updated sales_order_statu
View gist:40e40330731457a9ebbe
function getVimeoMP4($vimeo_id) {
$result = file_get_contents( "http://keepvid.com/?url=http%3A%2F%2Fvimeo.com%2F" . $vimeo_id );
preg_match_all('/"(http\:\/\/pdl.vimeocdn.com.+?)"/i', $result, $matches);
return $matches[1][1];
}
@deivisonarthur
deivisonarthur / Mpchadwick_Missing_Acl_Checker.php
Last active Sep 19, 2015 — forked from mpchadwick/Mpchadwick_Missing_Acl_Checker.php
Devido o path de segurança 6285 a questão da permissão mudou no Magento.
View Mpchadwick_Missing_Acl_Checker.php
<?php
require_once 'abstract.php';
/**
* Generate a CSV of modules with admin routes that haven't implemented _isAllowed()
*/
class Mpchadwick_Missing_Acl_Checker extends Mage_Shell_Abstract
{
const MODULES_PATH = 'modules';
@deivisonarthur
deivisonarthur / container.php
Last active Aug 29, 2015
Atualiza o container dos produtos configurados. Esse problema dá quando se importa produtos configurados e não exibe o preço, somente entrando no admin e salvando cada um dos produtos é que é exibido o preço. Isso se dá porque faltou algum campo obrigatório na importação e quando se entra pelo admin ele ja vem selecionado a primeira opção, assim…
View container.php
<?php
/*
Executar via cron com o comando php container.php
*/
require_once('app/Mage.php');
umask(0);
#Mage::app('default');
Mage::app();
@deivisonarthur
deivisonarthur / gist:cd306c1fb5b8ac10d859
Created Apr 9, 2015
Para tratar o erro do mcrypt pelo shell : PHP Fatal error: Call to undefined function mcrypt_module_open() in .../lib/Varien/Crypt/Mcrypt.php on line 63
View gist:cd306c1fb5b8ac10d859
sudo aptitude install mcrypt
sudo aptitude install php5-mcrypt
execute e veja se agora existe na listagem o mcrypt
php -m
fonte: http://askubuntu.com/questions/350942/cannot-get-mcrypt-for-php5
You can’t perform that action at this time.