This file contains hidden or 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
| import requests | |
| import hashlib | |
| import time | |
| import uuid | |
| import os | |
| import copy | |
| import json | |
| # This is based on my personal implementation but stripped down to only what is | |
| # needed to verify it. |
This file contains hidden or 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
| from csv import DictWriter | |
| from glob import glob | |
| from ofxparse import OfxParser | |
| DATE_FORMAT = "%m/%d/%Y" | |
| def write_csv(statement, out_file): | |
| print "Writing: " + out_file | |
| fields = ['date', 'payee', 'debit', 'credit', 'balance'] | |
| with open(out_file, 'w') as f: |
This file contains hidden or 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
| input { | |
| file { | |
| type => "php-error" | |
| path => "/var/www/error_log" | |
| sincedb_path => "/opt/logstash/sincedb-access" | |
| } | |
| } |