Skip to content

Instantly share code, notes, and snippets.

require "ctm_cancellations"
require 'ctm_daily_sales'
require 'ftp_transport'
(Date.parse("2020-07-07")...Date.current).each do |date|
puts "--------------------------------------------------------------------------------"
puts "Starting date: #{date}"
# Sales
extract = CtmDailySales.new(date)
### Keybase proof
I hereby claim:
* I am camhine on github.
* I am camhine (https://keybase.io/camhine) on keybase.
* I have a public key ASAdu7QfQY2bETF4ECBx1V43AvY--knMAgyPj1dDuxSLTQo
To claim this, I am signing this object:
@camhine
camhine / .zshrc
Last active August 29, 2015 13:56
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# export SOLARIZED_THEME="light"
export SOLARIZED_THEME="dark"
ZSH_THEME="blinks"
@camhine
camhine / init.el
Last active January 3, 2016 12:49
;; Start in server mode
;; (server-start)
;;;;;;;;;;;;;;;;;;
;; Key Bindings ;;
;;;;;;;;;;;;;;;;;;
;; invoke M-x without Alt
(global-set-key "\C-x\C-m" 'execute-extended-command)
@camhine
camhine / gmb
Created August 13, 2013 05:19
Run this every morning so that your services have the latest dozen or so updates to pact.
#!/usr/bin/env ruby
REA_DIR = '~/projects/rea'
SERVICES = ['condor', 'contract-proposal-service', 'pricing-service']
SERVICES.each do |service|
Dir.chdir(File.expand_path(service, REA_DIR)) do
system "git pull --rebase"
system "bundle"
end