Skip to content

Instantly share code, notes, and snippets.

View sanchojaf's full-sized avatar

Miguel Sancho Fernandez sanchojaf

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>New QRLynk Products</title>
<style>
body {
font-family: Arial, sans-serif;
color: #333333;

Change the instance type:

In the navigation pane, choose Databases, and then select the DB instance that you want to modify.

For Actions, choose Modify. The Modify DB Instance page appears.

Change the DB instance class.

When all the changes are as you want them, choose Continue and check the summary of modifications.

2021-08-30T20:21:59.767-04:00 File "/usr/local/lib/python3.9/site-packages/django/db/migrations/executor.py", line 227, in apply_migration
2021-08-30T20:21:59.767-04:00 state = migration.apply(state, schema_editor)
2021-08-30T20:21:59.768-04:00 File "/usr/local/lib/python3.9/site-packages/django/db/migrations/migration.py", line 124, in apply
2021-08-30T20:21:59.768-04:00 operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
2021-08-30T20:21:59.768-04:00 File "/usr/local/lib/python3.9/site-packages/django/db/migrations/operations/fields.py", line 166, in database_forwards
stage ("Extract test results") {
cobertura coberturaReportFile: 'coverage.xml'
}
// post {
// always {
// junit '**/coverage.xml'
// step([$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: '**/coverage.xml', failUnhealthy: false, failUnstable: false, maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false])
// }
// }

Data Overview

  • Finished v1 of F22 forecasting model prototype
  • Working on v2 of F22 forecasting model prototype

Infra Overview:

  • Add tags to AWS resources, to better track cost and analitycs each month.
  • Enable "Container Insights" for ECS clusters. To collect more info about the box where the website is running.
  • Automate on Jenkins jobs to create/delete copies of databases to simplifies the work of other engineers.
  • Upgrade to Cache database Redis to the version v6.
  • Investigating web performance issues and start making improvement.
@tenant_context(None)
def get(self, request):
"""
anonymous users:
/menus?day={} and request.session['location']['route_id'] must be set to route id
/menus?key={}
loggedin users:
/menus?day={}
/menus?day={}&location_id={}
/menus?date={}

Approach to keep a feature_branch up to date with the development branch

Where more than one developer could be working in the feature_branch, creating branch using as base feature_branch

ensure to be up to date with feature_branch

git checkout feature_branch
git pull origin feature_branch
@sanchojaf
sanchojaf / ruby_insertion_sort.rb
Created October 4, 2019 05:37
ruby insertion sort
# insertion sort
class Sequence
attr_accessor :values, :size
def initialize(array)
@values = array
@size = array.length
end
def sort
@sanchojaf
sanchojaf / durable_decorator.md
Last active October 29, 2018 19:17
Durable Decorator

Problem

Exist places in our repo where are copies of code from a gem with few changes of the original method.

If never happened an error is difficult to know when the original source changes.

That means that is possible to have old code in Pulse360 that not correspond with the current version of the original gem.

That is particularly important if we are doing a big upgrade, for example, bumping to a higher version of Rails.