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
#!/usr/bin/env ruby | |
# Usage: | |
# cmd: move-windows.rb save | |
# to save current windows workspaces to a move-windows.save file | |
# cmd: move-windows.rb | |
# to adjust windows workspaces according to the positions in the saved file | |
location = File.dirname(__FILE__) | |
save_filepath = "#{location}/move-windows.save" |
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
# 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 = {} |
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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
/** | |
* The Payza Gateway | |
* | |
* @subpackage Gateway | |
* @category Payments | |
*/ |