Skip to content

Instantly share code, notes, and snippets.

View jamessom's full-sized avatar
✔️
Working

Jamessom Queiroz jamessom

✔️
Working
  • Brasilia, Brasil
View GitHub Profile
@jamessom
jamessom / up_no_versionamento.md
Last active February 24, 2024 21:59
Dê um up nos seus commits!

Aperfeiçoe seus commits!

Sempre que falamos sobre o uso de ferramentas open source, é interessante buscar padrões que atendam ao seu fluxo de trabalho, pois na maioria das vezes essas ferramentas disponibilizam não só uma maneira de resolver um problema, mas sim uma gama de possibilidades. No caso específico do git, isso não é diferente.

Abaixo, veja algumas dicas para tornar o uso do git ainda melhor e garantir um padrão para o seu fluxo de trabalho.

Padronização e automação de ações no repositório

Antes de tudo, é importante ressaltar que as ferramentas descritas aqui são baseadas no padrão Conventional Commits. Essa ferramenta visa criar um padrão para que seja mais fácil e intuitivo ler os logs, entre outras vantagens.

@jamessom
jamessom / Alphasights_technical_challenge.md
Created November 20, 2023 18:28 — forked from tadast/Alphasights_technical_challenge.md
A technical challenge we give to our Ruby on Rails applicants in order to evaluate their coding proficiency.Job description: http://www.alphasights.com/positions/ruby-developer-london or http://www.alphasights.com/positions/ruby-developer-new-york

Update: I no longer work for the company and this challenge is no longer used, but I'll leave the gist here in case people want to practice.

Alphasights Technical Challenge

Using Ruby on Rails we would like you to create a simple expert search tool. The application should fulfill the requirements below. The source code must be placed in a public repo on GitHub. The application should be deployable on Heroku.

  • I enter a name and a personal website address and a member is created.
  • When a member is created, all the heading (h1-h3) values are pulled in from the website to that members profile.
  • The website url is shortened (e.g. using http://goo.gl)
  • After the member has been added, I can define their friendships with other existing members. Friendships are bi-directional i.e. If Sasha is a friend of Ash, Ash is always a friend of Sasha as well.
@jamessom
jamessom / architecture-haiku.md
Created August 24, 2023 16:22
Architecture Haiku
  • March 03, 2015

The most effective way to transfer complex, abstract ideas from one person’s brain to another person’s brain is by writing the ideas down. This premise permeates our whole approach to software design. Entire books are dedicated to creating better documentation! Following traditional documentation advice inevitably leads to comprehensive, albeit verbose, documents filled with important details that, sadly, too few stakeholders read. There must be a better way.

Introducing the Architecture Haiku

George Fairbanks originally came up with the idea of the Architecture Haiku as "a one-page, quick-to-build, uber-terse design description." With only one page of paper (assumed standard, A4) to work with there is no space to be indecisive or indirect. There might not even be room for diagrams - which at first sounds crazy, but perhaps is crazy brilliant! We tr

@jamessom
jamessom / image.markdown
Created August 8, 2023 12:39 — forked from markswell/image.markdown
To integrate Intellij Idea community with wildfly server just put this file into root path of application and run with command ./intellij_wildfly_integration.sh. For debug in your Intellij Idea Community enable debug of wildfly into standalone.xml file and create a configuration of type “Remote JVM Debug” and attach in “Run/Attach to process”.

Captura de tela de 2022-08-22 11-23-33 image

@jamessom
jamessom / Minikube for Mac Users.md
Created November 18, 2021 02:13
Notes for switching from Docker Desktop to Minikube

With Docker Desktop becoming more restricted, I've decided to move on to just using minikube. In doing so, I've consolidated my notes as follows.

Installation

Use brew to install the docker cli and minikube.

$ brew install minikube docker kubectl hyperkit

Running Minikube

The first time you start minikube, you should specify any settings you desire.

sudo apt-get update
echo 'installing curl'
sudo apt install curl -y
echo 'installing git'
sudo apt-get install git -y
echo "What name do you want to use in GIT user.name?"
read git_config_user_name
@jamessom
jamessom / rails_deployment.md
Created October 12, 2020 22:49 — forked from manojnaidu619/rails_deployment.md
Rails deployment to AWS EC2

Rails Deployment to AWS EC2

Stack : (Nginx + Phusion Passenger + Postgresql)

  • Step -1

    To Launch an EC2 instance from aws console with all the credentials and configurations hooked.

  • Step-2

@jamessom
jamessom / README.md
Created July 23, 2020 02:25 — forked from serradura/README.md
Microtest - A xUnit family unit testing microframework for Ruby. (https://rubygems.org/gems/u-test)

µ-test (Microtest)

A xUnit family unit testing microframework for Ruby.

Prerequisites

Ruby >= 2.2.2

Installation

@jamessom
jamessom / README.md
Created July 23, 2020 02:23 — forked from serradura/README.md
ORM (225 LOC and ~510 LOC of tests) - An Object-relational mapping implementation using only the Ruby standard library.
@jamessom
jamessom / rspec_model_testing_template.rb
Created June 5, 2020 14:38 — forked from SabretWoW/rspec_model_testing_template.rb
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails. Pretty much a brain dump of examples of what you can (should?) test in a model. Pick & choose what you like, and please let me know if there are any errors or new/changed features out there. Reddit comment thread: http…
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems: