Skip to content

Instantly share code, notes, and snippets.

@adolfoabegg
adolfoabegg / MySql-5.6-installation guide.md
Created January 2, 2023 18:07 — forked from vinodpandey/MySql-5.6-installation guide.md
Install MySQL 5.6.xx on Ubuntu 18.04 & Ubuntu 20.04

MySQL Download URL

https://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.46-linux-glibc2.12-x86_64.tar.gz

Open the terminal and follow along:

  • Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R
@adolfoabegg
adolfoabegg / vendo-signature-example.php
Created November 24, 2022 16:05
Generating a Vendo Signature
<?php
//Install the SDK with composer by running "composer require vendoservices/vendo-sdk"
include __DIR__ . '/vendor/composer/autoload.php';
$urlToSign = 'https://secure.vend-o.com/v/custom-offer?site=0&type=normal&billing_schedule_type=token&token_amount=2.95&token_quantity=1';
$signer = new \VendoSdk\Util\Signature('your-shared-secret');
$signedUrl = $signer->sign($urlToSign);

Keybase proof

I hereby claim:

  • I am adolfoabegg on github.
  • I am adol (https://keybase.io/adol) on keybase.
  • I have a public key ASCsAt4GlwwQn2MaV9LWrqTS-M0_IH5qnAJ7YuFys1lIyAo

To claim this, I am signing this object:

<?php
/*
USAGE:
$urlToSign = 'https://secure.vend-o.com/v/signup?site=123123&affiliate_id=0';//this is just an example
$vendoSigner = new VendoSignature('YOUR-SHARED-SECRET');
$signedUrl = $vendoSigner->sign($urlToSign);
//Output example: https://secure.vend-o.com/v/signup?site=123123&affiliate_id=0&signature=scKxBO5UlS1vQHxORr3xuBL4Fb8
*/
@adolfoabegg
adolfoabegg / apache-vendo-ab-test.conf
Created February 11, 2016 12:45
Vendo A/B Test - Apache configuration.
# We need to add these lines to NATS' virtual host configuration
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^$
RewriteCond %{REQUEST_URI} track/(.*)(/.*)?$
RewriteRule ^track/(.+)(/(.+))?$ ab/vendo-ab-test.php?nats=$1 [L,NC]
@adolfoabegg
adolfoabegg / vendo-ab-test.php
Created February 11, 2016 11:31
Vendo A/B Test script for NATS
<?php
//NATS' tracker url (with a trailing slash)
$natsTrackUrl = 'http://natsv4.staging.vend-o.com/track/';
//NATS' signup url
$natsSignupUrl = 'http://natsv4.staging.vend-o.com/signup/signup.php';
$configuration = array(
//maps all current tours of SiteID 11 to the new tour (88) configured for the Vendo A/B test
'11.*' => '88', //assumes the current tours' traffic is being processed by the other biller. The new tour 88 sends the traffic to Vendo.
//The A/B split will occur between all the current tours (A) and the new one configured for Vendo (B)