Skip to content

Instantly share code, notes, and snippets.

View sreilly's full-sized avatar

Sean Reilly sreilly

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sreilly on github.
  • I am seandreilly (https://keybase.io/seandreilly) on keybase.
  • I have a public key ASDQntXoAxpUot7yvpg1FYWNpp9zyZdQQ2jasJ_QK79c_Ao

To claim this, I am signing this object:

# add this to your ~/.profile for a wonderful prompt
function truncate_pwd
{
newPWD="${PWD/#$HOME/~}"
local pwdmaxlen=20
if [ ${#newPWD} -gt $pwdmaxlen ]
then
newPWD=".+${newPWD: -$pwdmaxlen}"
fi
import com.moneydance.apps.md.controller.AccountBookWrapper;
AccountBookWrapper datafile = AccountBookWrapper.wrapperForFolder("/path/to/MyFinances.moneydance")
datafile.doInitialLoad(new SecretKeyCallback(){
public String getPassphrase(String hint) { return "datafilepassword"; }
public String getPassphrase(String dataName, String hint) { return "datafilepassword" }
});
AccountBook moneydanceData = datafile.getBook();
@sreilly
sreilly / sample split
Created August 25, 2013 21:27
rough sample of a split transaction in the QIF format
D25/08/13
T1,234.56
Nchecknum
Pdescription
Mmemo
Ssplit category1
Esplit description1
$1,000.56
Ssplit category2
Esplit description2