Skip to content

Instantly share code, notes, and snippets.

View sibelius's full-sized avatar
🦈
give me a feedback https://entria.feedback.house/sibelius

Sibelius Seraphini sibelius

🦈
give me a feedback https://entria.feedback.house/sibelius
View GitHub Profile
@virgiliojr94
virgiliojr94 / desafio-backend-jr.md
Last active April 19, 2024 12:41
Desafio: Terminal de Gerenciamento de Investimentos [Off] [Estagiário] [Junior]

Desafio: Terminal de Gerenciamento de Investimentos [Off] [Estagiário] [Junior]

Contexto

Ativos financeiros representam a posse de um direito econômico que pode gerar lucro ao longo do tempo. Os ativos possuem preço, identificação, titular, tipo (ações, títulos do tesouro direto, títulos de CDB, etc...) e podem ser negociados no mercado financeiro dependendo da política de cada tipo. Também são conhecidos como "papéis" embora sejam títulos digitais intangíveis. Um ativo financeiro pode aumentar de rentabilidade ao longo do tempo, por exemplo, quem comprou uma ação da Empresa A na bolsa da Nasdaq no dia 2 de novembro de 2020, pagou $52,95. Hoje esse mesmo ativo está valendo $69,33 representando uma rentabilidade de %30,93 para o titular.

Aplicativos de carteira de investimentos são muito comuns no mercado financeiro quando estamos falando do gerenciamento de ativos financeiros. A ideia é ajudar investidores a manterem sua lista de ativos comprados, rendimento, valor total por ativo, tipo de operação, et

VIVA LA MAIN

A proposta é manter apenas uma branch: main.

Dev abre PR, e o CI roda testes, verifica se build passa, é feito code review e o merge é feito para main.

Todo código novo na main vai gerar uma nova CI e CD, uma release para ambiente de staging, onde é feito o QA pelas partes interessadas (Dev, QA, Product).

O controle do que pode ser exibido por ambiente é feito por feature flags, basicamente um if no código que verifica se no ambiente X (staging | production) a feature pode ser ativada ou desativada.

@arthcc
arthcc / hashNdSalt.md
Last active May 17, 2024 13:56
hashNdSalt.md

Aplicações de Segurança no Desenvolvimento de um Software

Estou desenvolvendo um ERP completo para a área de Odontologia, onde posso aprimorar meus conhecimentos e colocá-los em um projeto profissional real. Durante este período, estou utilizando o NestJs para criar os primeiros endpoints, incluindo um para login. Aprendi mais sobre como armazenar senhas em banco de dados e protegê-las usando Hash e Salt.

O que é Hash?

Em resumo, o hash pode ser considerado como uma função matemática que transforma qualquer arquivo ou conjunto de caracteres em uma sequência única de letras e números. Uma vez que o Hash é gerado, ele nunca mais pode ser alterado. O mesmo segue o padrão de ter o mesmo tamanho (entre 128 e 512 bits) e o mesmo número de caracteres alfanuméricos.

Uma função hash é unidirecional, semelhante a uma função sobrejetiva, onde a imagem é igual ao contradomínio. Um hash pode ser quebrado de várias maneiras por meio de ataques de força bruta ou dicionário.

@eletroswing
eletroswing / tcp.js
Created February 17, 2024 00:06
tcp abstration on nodejs
# By Fountai
const { TCP, constants } = process.binding("tcp_wrap");
const { EventEmitter } = require("events");
const { Socket: NTSocket } = require("net");
class Server extends EventEmitter {
constructor() {
super();
this._handle = null;
this._decoder = new TextDecoder();
@noghartt
noghartt / fetchVersion.js
Created January 5, 2024 17:44
fetchQuery relay toPromise
import { fetchQuery, graphql } from 'relay-runtine';
export const fetchVersion = async (environment) => {
const response = fetchQuery(
environment,
graphql`
query fetchVersionQuery {
version
}
`,
@mikebohdan
mikebohdan / README.md
Created November 17, 2023 16:09
Setup Tabby on WSL with CUDA

Setup Tabby on WSL

What is tabby? Tabby is a free, locally running alternative for GitHub Copilot. If you have an Nvidia GPU, you can run it with significant acceleration. Currently, it supports only a few programming languages, but if you use one of these, you can use all the benefits of AI-assisted code completion for free. You can choose different models with different sizes to better fit your hardware.

@stephenh
stephenh / .yarnrc.yml
Created October 23, 2023 15:40
supported architectures
# This setting ensures we always install the Linux binaries when running `yarn install`. This is needed for running
# swc natively in Docker from a Mac host.
supportedArchitectures:
cpu:
- current
- x64
- arm64
libc:
- current
- glibc
@jgcmarins
jgcmarins / decision-matrix.md
Created September 25, 2023 14:49
Looking for a new career opportunity? Use this table to create a ranking of all job offers

Table of concepts and definitions

Concept Definition
Autonomy How well will this company give me autonomy to do my job?
Freedom How much freedom will I have to balance work and personal life?
Responsibilities What level of responsibilities will I have, and how extensive will they be?
Culture How well does this company's culture align with my values, and how open is the company to allowing me to contribute to the culture I believe in?
Tech Stack How closely does the tech stack used by this company align with my preferences, and to what extent is the company willing to allow me to use the stack I prefer?
Personal Growth How big is the potential of this company to help me keep growing?
@taufiqpsumarna
taufiqpsumarna / README.md
Last active September 24, 2024 18:34
Code Server Docker Compose File - Run VS Code on any machine anywhere and access it through the browser.

Code Server Docker Compose File

Run VS Code on any machine anywhere and access it through the browser.

Code anywhere: Code on your Chromebook, tablet, and laptop with a consistent dev environment. Develop on a Linux machine and pick up from any device with a web browser. Server-powered: Take advantage of large cloud servers to speed up tests, compilations, downloads, and more. Preserve battery life when you're on the go since all intensive tasks runs on your server. Make use of a spare computer you have lying around and turn it into a full development environment. See https://github.com/cdr/code-server for more docs.

Dockerhub: https://hub.docker.com/r/codercom/code-server