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
# 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> |
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
# Criar usuario para instalar | |
sudo adduser deployer | |
echo "deployer ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | |
su deployer | |
cd | |
# Atualizar YUM e adicionar EPEL repo | |
sudo yum -y update | |
sudo yum install -y epel-release |