Deployment Process
This document outlines the deployment process for this project.
Deployment Tool
This project leverages DeployHQ for automated deployments. DeployHQ is a robust and user-friendly platform that streamlines the deployment workflow.
| I have a bank export spreadsheet with my expenses and income from the last year(s). I need you to: | |
| 1. **Read and parse** the spreadsheet - it's a bank export (XLS/XLSX) with dates, concepts/descriptions, and amounts. Figure out the format (headers may not be on the first row). | |
| 2. **Categorize every transaction** into categories like: Groceries, Dining, Coffee, Nightlife, Events, Bars, Shopping, Subscriptions, Travel, Transport, Car, Health, Beauty, Pets, Home, Fitness, Electronics, Entertainment, etc. Use regex pattern matching on merchant names. Ask me about any merchants you're not sure about | |
| (especially recurring ones). | |
| 3. **If I have a separate transfers file**, merge it in - categorize salary, investments, rent, savings, etc. | |
| 4. **Identify fixed/recurring expenses** separately: mortgage, car payments, insurance, community fees, utilities (electricity, water), phone, internet. These should have their own section in the dashboard. |
Deployment Process
This document outlines the deployment process for this project.
Deployment Tool
This project leverages DeployHQ for automated deployments. DeployHQ is a robust and user-friendly platform that streamlines the deployment workflow.
| # Installing node.js (16) and npm: https://github.com/nodesource/distributions | |
| ENV NODE_MAJOR=16 | |
| # 1. Download and import the Nodesource GPG key | |
| RUN apt-get update | |
| RUN apt-get install -y ca-certificates curl gnupg | |
| RUN mkdir -p /etc/apt/keyrings | |
| RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg | |
| # 2. Add the NodeSource package repositories for Debian-based distributions |
| ##################################### | |
| # Notify when a s3 file was created # | |
| ##################################### | |
| import json | |
| import boto3 | |
| import urllib.parse | |
| import urllib.request | |
| print('Loading function') |
| using Newtonsoft.Json; | |
| ... | |
| public override string ToString() | |
| { | |
| return JsonConvert.SerializeObject(this); | |
| } |
| $ php -v | |
| PHP 5.6.30 (cli) (built: Feb 7 2017 16:18:37) | |
| Copyright (c) 1997-2016 The PHP Group | |
| Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies | |
| $ brew update && brew upgrade | |
| $ brew tap homebrew/dupes | |
| $ brew tap homebrew/versions | |
| $ brew tap homebrew/homebrew-php | |
| # You might get an error if PHP 5.6 has not been installed by brew previously, but don't worry, you can simply continue |
| ... | |
| ->setManipulations([ | |
| 'w' => 350, | |
| 'fm' => 'src', | |
| 'mark' => public_path('assets/img/watermark.png'), | |
| 'markfit' => 'fill', | |
| 'markpos' => 'center', | |
| ]) | |
| ... |
To configure Rails to rotate your log files while in the development and test environments, add the following to your development.rb and test.rb files found within /config/environments/
# Rotate logs every day. You can use 'daily', 'weekly' or 'monthly'.
config.logger = Logger.new("#{Rails.root}/log/#{ENV['RAILS_ENV']}.log", 'daily')Found Here
| # Install mutt using brew | |
| $ brew install mutt | |
| # Configure mutt | |
| $ vim ~/.muttrc | |
| # Put the following on the mutt config file (.muttrc) | |
| set imap_user = “YOUR_USERNAME@GMAIL_OR_YOUR_DOMAIN.com” | |
| set imap_pass = “YOUR_PASSWORD” | |
| set smtp_url = “smtp://YOUR_USERNAME@GMAIL_OR_YOUR_DOMAIN@smtp.gmail.com:587/” |
| package cyf.rest.resources; | |
| import javax.inject.Singleton; | |
| import javax.websocket.server.ServerEndpointConfig.Configurator; | |
| import org.glassfish.hk2.api.ServiceLocator; | |
| import org.glassfish.hk2.utilities.ServiceLocatorUtilities; | |
| import org.glassfish.hk2.utilities.binding.AbstractBinder; | |
| /** |