Skip to content

Instantly share code, notes, and snippets.

View vilaca's full-sized avatar
🔎
Looking for new challenges

João Vilaça vilaca

🔎
Looking for new challenges
View GitHub Profile
@vilaca
vilaca / gist:4f92d86896f53d2c8ecbcdf8d546f6a2
Last active March 7, 2024 14:34
Troika, pagar salários, aumento da divida,
https://www.esquerda.net/opiniao/afinal-havia-dinheiro-para-sal%C3%A1rios-e-pens%C3%B5es/25607
https://www.publico.pt/2012/06/01/economia/noticia/dinheiro-da-troika-nao-foi-para-pagar-salarios-e-pensoes-1548494
https://www.rtp.pt/noticias/economia/dinheiro-da-troika-nao-foi-para-pagar-salarios-e-pensoes_n558828
https://observador.pt/2015/09/10/pode-explicar-novo-esmiucando-as-declaracoes-polemicas-do-duelo/
https://eikon.ubi.pt/files/eikon_2016_n01_a04.pdf
https://acervo.publico.pt/economia/memorando-da-troika-anotado
@vilaca
vilaca / dict.txt
Last active December 6, 2023 02:56
X-as-a-service
A - Analytics / API
B - Backend
C - Containers
D - Desktop
E - Environments
F - Financial / Function
G - Games
H - Hardware
I - Infrastructure
J -
git –recurse-submodules clone https://github.com/nomic-ai/gpt4all.git
git clone –recurse-submodules https://github.com/nomic-ai/gpt4all.git
git clone -–recurse-submodules https://github.com/nomic-ai/gpt4all.git
git clone https://github.com/nomic-ai/gpt4all.git
cd gpt4all/
apt-get update && apt-get install cmake build-essential -y
apt-get update
apt-get upgrade
cd gpt4all-backend/
ll
{
"diploma": [{
"titulo": "Artigo 1.º",
"epigrafe": "Aprovação do Código do Trabalho ",
"texto": "É aprovado o Código do Trabalho, que se publica em anexo à presente lei e dela faz parte integrante. ",
"notas": []
},
{
"titulo": "Artigo 2.º",
"epigrafe": "Transposição de directivas comunitárias ",

DuckDB

  • focuses on fast query execution and efficient processing of analytical queries
  • optimized for read-heavy operations and analytical queries involving large datasets
  • written in C++
  • columnar storage format, which allows for efficient data compression and query performance
  • supports SQL queries
  • has built-in support for vectorized query execution
  • supports concurrent read access
  • does not provide built-in support for concurrent write operations
@vilaca
vilaca / word-soup.md
Created April 27, 2023 22:11
Word soup

SOLID (Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion)

These principles help developers create code that is easy to extend and maintain, by encouraging the creation of classes that have a single responsibility and are loosely coupled.

KISS (Keep It Simple, Stupid)

This principle encourages developers to write simple code that is easy to understand and maintain. By keeping code simple, developers can reduce the risk of introducing bugs, improve the readability of the code, and make it easier for other developers to work with.

APA (Avoid Premature Abstraction)

This principle encourages developers to avoid creating abstractions too early in the development process. By waiting until the requirements of the system are better understood, developers can create abstractions that are more likely to be useful and maintainable.

YAGNI (You Ain't Gonna Need It)

@vilaca
vilaca / behavioral.yaml
Last active April 7, 2023 16:59
Architectural Characteristics (Non-Functional Requirements)
---
- Consistency
- Data Freshness
---
- Observability
- Alerts & Monitoring
- L1 / L2 / L3
- Logging
---
- Security
@vilaca
vilaca / schematic.txt
Last active March 7, 2023 02:29
Dynamics
--> master --------> 1968(D) -------> fatso(D) --------> 1976(S) --> kteq(M) ------> rc202(S)
--> tr6s ----------> dbx(D) --------> distressor(M) ---> 1978(D) --> culturev(D)
--> mc101 --------->
--> syntakt ------->
--> octa ---------->
--> bs2 -----------> modfactor(S) --> pitchfactor(S) --> 501(S)
--> 303 ----------->
eBPF is like Lua or JS, scripting, for the kernel
- can use APIs not available in user space
- runs safely in kernel context
- designed to be used in the kernel
https://www.youtube.com/watch?v=45h6iqtorZQ
https://youtu.be/uBqRv8bDroc
Empirical Labs Distressor
Empirical Labs Fatso
Drawmer 1968
Drawmer 1976
Drawmer 1978
Overstayer M.A.S.
Overstayer Saturator