Skip to content

flavia bastos

  • Home
  • About

6 Lessons learned from upgrading a Rails app

March 12, 2020March 7, 2020

I was recently tasked with upgrading our Ruby on Rails application at work: my goal was to move two major versions up, with a middle step on a minor version (and a server OS upgrade that was not even planned!). This was an incredible experience and I learned a lot from it. Here are some … Continue reading 6 Lessons learned from upgrading a Rails app

Book review: Get Programming with Go

February 27, 2020February 27, 2020

Book cover of "Get Programming with Go", by Nathan Youngman and Roger Peppe Learning Go (a.k.a as Golang) was one of my personal goals for 2019 and I chose the book "Get Programming with Go", by Nathan Youngman and Roger Peppe as my learning resource. Even though there are several other resources out there, I … Continue reading Book review: Get Programming with Go

Go to line number in a file using vim

February 13, 2020February 8, 2020

You want to see line 3842 of file called my_super_long_file.py and you can only access that file using vim. You open the file and to your dismay, by default, vim doesn't display line numbers. Here are your options: Arrow down and hope you find that line before retirementDisplay the line numbers by hitting : and … Continue reading Go to line number in a file using vim

TIL: docker commit

November 13, 2019November 12, 2019

When I need to create a new custom Docker image, I usually start with a base image (alpine, debian, python, etc, depending on the project), running it in the interactive mode and install the tools and dependencies I will need. Once I get my container the way I want, I create a Dockerfile with all … Continue reading TIL: docker commit

TIL: How to move a line in Vim

November 6, 2019November 3, 2019

For a text like the following: This is the line I want to move. This line should be the first line. In order to move the first line down, in normal mode* (not edit or insert mode), follow these steps: place the cursor at the beginning of the line you want to move - in … Continue reading TIL: How to move a line in Vim

TIL: Create and deploy a serverless function in AWS

October 1, 2019September 25, 2019

Only two steps required (it assumes an existing account in AWS console): Create a Lambda function in AWSDeploy your Lambda function with AWS API Gateway I used these two articles as a reference: Going Serverless: how to run your first AWS Lambda function in the cloudWorking with Amazon API Gateway Important notes the lambda function … Continue reading TIL: Create and deploy a serverless function in AWS

Remove a commit from history in Git – local and remote

September 25, 2019February 5, 2022

I recently committed an API key to a repository and even worse, I pushed to GitHub before I realized my mistake... 😦 Removing the key from the code base wouldn't completely solve my problem since a commit diff would still display my secret key. The solution was to remove that commit from history. Removing commit … Continue reading Remove a commit from history in Git – local and remote

Getting started with gRPC – part II: the code

September 10, 2019August 30, 2019

In a previous post I wrote a summary of the things I learned about gRPC. Here I will talk about the prototype app I wrote to test gRPC and gRPC-Web. About my prototype As I mentioned before, I wrote a prototype app that tests if the string that the user typed in the browser is … Continue reading Getting started with gRPC – part II: the code

Getting started with gRPC – part I: the what

September 3, 2019August 30, 2019

I recently spent some time researching gRPC and this post is a summary of what I learned. I also wrote a prototype application to test gRPC and gRPC-Web with Python and JS. The JS client takes a string from user input and test if it's a palindrome. The code can be found on GitHub and … Continue reading Getting started with gRPC – part I: the what

Do I need to indent my Python code? What about JavaScript?

June 6, 2019May 20, 2019

Yes! Indentation, or leading white space at the beginning of a line is required in Python. You can read more about why that is important here. And here is the part of the style guide convention for indentation (PEP 8). In JavaScript on the other hand, white space is added for readability only but it … Continue reading Do I need to indent my Python code? What about JavaScript?

Posts navigation

Older posts
Newer posts

Find me

  • Twitter
  • GitHub
  • LinkedIn

Recent Posts

  • Managing local git branches with git rebase
  • The difference between HTTP status codes 401 and 403: Unauthorized and Forbidden
  • A caller id for your python function
  • git stash 101
  • Developing inside a Docker container

Categories

  • books (2)
  • career (1)
  • command line (13)
  • git (6)
  • go (1)
  • gRPC (2)
  • housekeeping (2)
  • how-to (8)
  • JavaScript (4)
  • networking (3)
  • python (9)
  • quick-tip (6)
  • rails (1)
  • til (7)
  • web development (1)

Tags

about argv aws beginner book built-in code coding milestone command line data structure debug debugger decorator dev environment dictionary docker git go golang gRPC gRPC-Web how-to ifconfig iniciante JavaScript js lambda lessons linux list nc netcat network pdb ping productivity profiling prompt pt-BR python quick-tip rails set sort ss til tools traceroute tuple vi vim

Follow via RSS

  • RSS - Posts

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 136 other followers

A WordPress.com Website.
flavia bastos
A WordPress.com Website.
  • Follow Following
    • flavia bastos
    • Join 136 other followers
    • Already have a WordPress.com account? Log in now.
    • flavia bastos
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...