View PHP cURL CorreosExpress SeguimientoEnvio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Correos Express SeguimientoEnvio | |
//necesitaras el documento "DC_SP_apiRestSeguimientoEnviosFechas_03.pdf" - contacta con integraciones de correso express | |
$id_shipment = {CAMPO numShip DE cex_history}; | |
$url = "https://www.correosexpress.com/wpsc/apiRestSeguimientoEnvios/rest/seguimientoEnvios"; | |
$input_xml = "<?xml version='1.0' encoding='UTF-8'?> | |
<SeguimientoEnviosRequest xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' | |
xsi:noNamespaceSchemaLocation='SeguimientoEnviosRequest.xsd'> |
View password.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{capture name=path}<a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" title="{l s='Authentication'}" rel="nofollow">{l s='Authentication'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Forgot your password'}{/capture} | |
{if isset($change_password)} | |
<h1 class="page-heading">{l s='Create a new password'}</h1> | |
{elseif isset($password_changed)} | |
<h1 class="page-heading">{l s='Password Change'}</h1> | |
{else} | |
<h1 class="page-heading">{l s='Forgot your password?'}</h1> | |
{/if} |
View PasswordController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class PasswordController extends PasswordControllerCore | |
{ | |
public function postProcess() | |
{ | |
if (Tools::isSubmit('email')) { | |
$this->sendForgettenPasswordEmail(); | |
} elseif (($token = Tools::getValue('token')) && ($id_customer = (int)Tools::getValue('id_customer'))) { | |
$this->processForgettenPasswordConfirmation($token, $id_customer); |
View MySQL_Logging_Toggle.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set /p state="Set MySQL Logging state ON or OFF: " | |
c:\xampp\mysql\bin\mysql -u "root" -e "SET GLOBAL general_log = '%state%'; | |
%SystemRoot%\explorer.exe "C:\xampp\mysql\data" |
View prestashop_product_features.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
p.id_product, | |
p.name as name_product, | |
fl.id_feature, | |
fl.`name` as name_feature, | |
fv.value | |
from | |
product_lang p | |
left join feature_product as fp on (p.id_product = fp.id_product) | |
left join feature_lang as fl on (fl.id_feature = fp.id_feature) |
View boxstarter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################### | |
## Boxstarter Dev box install script | |
###################################################### | |
# Instructions: | |
############!!!!!!!! USE INTERNET EXPLORER !!!!!!!!! | |
############!!!!!!!! USE INTERNET EXPLORER !!!!!!!!! | |
############!!!!!!!! USE INTERNET EXPLORER !!!!!!!!! | |
View Ed's Zenburn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\YOUR_SESSION_NAME] | |
"Colour0"="255,255,255" | |
"Colour1"="255,255,255" | |
"Colour2"="51,51,51" | |
"Colour3"="85,85,85" | |
"Colour4"="0,0,0" | |
"Colour5"="0,255,0" | |
"Colour6"="77,77,77" |
View GMail API - Getting past OAuth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Create a composer project in PHP storm, and use their support for loading the needed includes. | |
//https://developers.google.com/api-client-library/php/start/installation | |
//https://www.jetbrains.com/phpstorm/help/composer-project-dialog.html | |
require_once 'autoload.php'; | |
//the google code shown in https://www.youtube.com/watch?v=zSyGkfW9qY4 counts on the session | |
session_start(); |
View zopim_defer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//basic zopim widget code, from their site | |
window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s= | |
d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set. | |
_.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8'); | |
$.src='//v2.zopim.com/?26Smu9lv0NXQEOOg8IAZrMPh9yQstAcV';z.t=+new Date;$. | |
type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script'); | |
//make sure zopim does not show till we know we have department agents | |
var intial_zopim_hiding_done = false; |