Skip to content

Instantly share code, notes, and snippets.

@jayschab
jayschab / csv_to_ofx.rb
Created June 28, 2017 17:13
Convert Itaú CSV extrato to OFX
# Modified from https://github.com/fgrehm/itau_to_ofx
def write_transaction(txn)
type = txn[:amount] > 0 ? 'CREDIT' : 'DEBIT'
date = txn[:date].strftime('%Y%m%d100000[-03:EST]')
id = txn[:date].strftime("%Y%m%d#{txn[:inc].to_s.rjust(3, '0')}")
memo = txn[:description]
amount = '%.2f' % txn[:amount]
"<STMTTRN>
@ajfisher
ajfisher / 0x00000.bin
Last active October 10, 2021 00:51
ESP8266 Transparent bridge to J5
@jvenator
jvenator / gist:9672772a631c117da151
Last active April 28, 2024 01:09
PDFtk Server Install Workaround for Mac OS X

Installing PDFtk Server edittion on your Mac

This workaround install is necessary because PDFtk was pulled from homebrew-cask due to issues with it aggressively overwriting file permissions that could impact other installed libraries. See this homebrew-cask issue.
The following steps worked on Mac OS X 10.10.1 with a standard brew installation for the PDFtk Mac OS X server libary version 2.02.
All Terminal commands separated by a full line space. Some commands wrap into multiple lines.

Download and extract the Mac OS X server install pacakge