Skip to content

Instantly share code, notes, and snippets.

Olivier Roy olivierroy

  • Canada
View GitHub Profile
@olivierroy
olivierroy / gmail_stats.rb
Created Apr 6, 2020
Gmail mbox parser to find what is using your space
View gmail_stats.rb
# This program parses an mbox file from Google Takeout to identify the senders and subjects lines that use the most space in a Gmail account
# Disclaimer: sizes or message detection may not be accurate, takes a few minutes for a 30GB file
# Usage: ruby gmail_stats.rb filename.mbox
# keep track of totals
$senders = {}
$subjects = {}
$labels = {}
@olivierroy
olivierroy / payza_m.php
Last active Mar 27, 2020
Payza payment option for PancakeApp (system/pancake/modules/gateways/models/payza_m.php)
View payza_m.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* The Payza Gateway
*
* @subpackage Gateway
* @category Payments
*/
You can’t perform that action at this time.