- learn why we need docker
- learn how to define a Dockerfile
- learn how to build a docker
- learn how to list images
- learn how to run docker with port forward
- learn how to go inside docker to debug, running /bin/bash
- learn docker compose
- learn how to send a docker image to a reqistry (dockerhub or aws ecr)
- learn how to deploy a docker to kubernetes, aws ecs or another platform
- learn how to use docker volumes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[language-server] | |
jdtls = { command = "jdtls", args = [ | |
"--jvm-arg=-javaagent:C:/Users/renato.santos/lombok.jar" # https://projectlombok.org/downloads/lombok.jar | |
] } | |
[[language]] | |
name = "java" | |
scope = "source.java" | |
injection-regex = "java" | |
file-types = ["java", "jav", "pde"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG RUST_VERSION=1.79 | |
FROM lukemathwalker/cargo-chef:latest-rust-${RUST_VERSION} AS chef | |
WORKDIR /app | |
FROM chef AS planner | |
COPY . . | |
RUN cargo chef prepare --recipe-path recipe.json | |
FROM chef AS builder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Measure-Command -Expression { | |
node ollama_embedding.js | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function generate_embeddings(input) { | |
const response = await fetch('http://localhost:11434/api/embeddings', { | |
method: 'POST', | |
body: JSON.stringify({ model: 'nomic-embed-text', prompt: input }), | |
headers: { "Content-Type": "application/json" }, | |
}); | |
const response_json = await response.json(); | |
return response_json.embedding; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script is meant to copy some files to a folder inside my sdcard | |
# it has some requirements: | |
# - adb installed (https://developer.android.com/studio/releases/platform-tools?hl=pt-br#downloads) | |
# - download and extract it, the .exe file will be inside, you can add this folder to | |
# the PATH variable | |
# - an android device with usb debug enabled | |
# Here, 3836-6631 its how adb recognizes my sdcard, | |
# if you want to use the internal storage, you can change to "emulated/0". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lvim.keys.normal_mode["<leader>t"] = ":lua ToggleTheme() <cr>" | |
function ToggleTheme() | |
if (vim.api.nvim_get_option("background") == "dark") then | |
vim.api.nvim_command("set background=light") | |
else | |
vim.api.nvim_command("set background=dark") | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const [bgColor, setBgColor] = useState('initial color here') | |
useEffect(() => { | |
const observer = new IntersectionObserver(entries => { | |
entries.forEach(entry => { | |
if (entry.isIntersecting) { | |
const { backgroundColor } = getComputedStyle(entry.target) | |
setBgColor(backgroundColor) | |
} | |
}) |
These are the repos that helped me the most
author | repo | has server | has web client | has mobile client |
---|---|---|---|---|
sibelius | DM @sseraphini on Twitter about relay-workshop | yes | yes | no |
noghartt | fakeddit | yes | yes | no |
danilo | rbaf | yes | yes | no |
bia | koa-server | yes | yes | no |
akinn | amora | yes | no | yes |
xsadia | koa-todo-api | yes | yes | no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem *.js | Rename-Item -NewName { $_.Name -replace '.js','.ts' } |
NewerOlder