Skip to content

Instantly share code, notes, and snippets.

@nestorbonilla
nestorbonilla / next.config.js
Created May 17, 2022 03:24
configuration for contractkit 2.0.0
module.exports = {
future: {
webpack5: true,
},
webpack:(config) => {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
net: false
};

Kubernetes is a system that is responsible for orchestrating and managing containers, making it ideal for managing microservices. Much like a pizza, Kubernetes is composed of many different components that work together to provide a cohesive experience. The various components of Kubernetes include the master node, worker nodes, pods, and services. Each of these components plays a vital role in the overall functioning of Kubernetes and is necessary for managing many containers.

Now, why is this important?

Kubernetes is important because it is a system that can be used to manage a large number of containers. This is especially useful for microservices, which are typically composed of many small containers. By using Kubernetes, you can ensure that all of your containers are properly orchestrated and that they all work together as intended. This can save you a lot of time and effort in the long run, as you won't have to worry about manually managing each container.

What should you have in mind when build

@nestorbonilla
nestorbonilla / celo-local-node
Last active February 6, 2024 03:02
Steps to set up a local node on Celo using Docker
Setup the local node
mkdir celo-node
cd celo-node
export CELO_IMAGE=us.gcr.io/celo-org/geth:alfajores
docker pull $CELO_IMAGE
docker run --name celo-node \
-it \
--restart always \
--stop-timeout 300 \
@nestorbonilla
nestorbonilla / bot-1.lua
Last active March 2, 2024 20:35
bot-1.lua
-- Initializing global variables to store the latest game state and game host process.
LatestGameState = LatestGameState or nil
InAction = InAction or false -- Prevents the agent from taking multiple actions at once.
Logs = Logs or {}
colors = {
red = "\27[31m",
green = "\27[32m",
blue = "\27[34m",