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
myapp: * | |
-> setResponseHeader("Content-Security-Policy","default-src 'none'; script-src 'self' 'unsafe-inline' cdn.jsdelivr.net; connect-src 'self'; img-src 'self' 'unsafe-inline' fastapi.tiangolo.com; style-src 'self' 'unsafe-inline' cdn.jsdelivr.net; base-uri 'self'; form-action 'self'") | |
-> setResponseHeader("Strict-Transport-Security","max-age=31536000; preload") | |
-> setResponseHeader("X-Content-Type-Options","nosniff") | |
-> setResponseHeader("Referrer-Policy","same-origin") | |
-> "http://frontend:5173"; |
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
version: "3.9" | |
services: | |
base: | |
environment: | |
HTTP_PROXY: | |
HTTPS_PROXY: | |
env_file: | |
- .env | |
postgres: | |
extends: base |
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
# PostgreSQL | |
POSTGRES_USER=postgres | |
POSTGRES_PASSWORD=postgres | |
# pgadmin | |
PGADMIN_DEFAULT_EMAIL=pgadmin@localhost.com | |
PGADMIN_DEFAULT_PASSWORD=pgadmin | |
# Database info | |
DB_HOST=postgres |
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
local function update_lead() | |
local lcs = vim.opt_local.listchars:get() | |
local tab = vim.fn.str2list(lcs.tab) | |
local space = vim.fn.str2list(lcs.multispace or lcs.space) | |
local lead = { tab[1] } | |
for i = 1, vim.bo.tabstop - 1 do | |
lead[#lead + 1] = space[i % #space + 1] | |
end | |
vim.opt_local.listchars:append { leadmultispace = vim.fn.list2str(lead) } |
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
M.actions = transform_mod { | |
set_extension = function(prompt_bufnr) | |
local current_input = action_state.get_current_line() | |
vim.ui.input({ prompt = "*." }, function(input) | |
if input == nil then | |
return | |
end | |
live_grep_filters.extension = input | |
actions.close(prompt_bufnr) |
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
local M = {} | |
local function default_on_open(term) | |
vim.cmd "startinsert" | |
vim.api.nvim_buf_set_keymap(term.bufnr, "n", "q", "<cmd>close<CR>", { noremap = true, silent = true }) | |
end | |
function M.open_term(cmd, opts) | |
opts = opts or {} | |
opts.size = opts.size or vim.o.columns * 0.5 |
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
local opts = { | |
defaults = { | |
mappings = mappings, | |
vimgrep_arguments = { | |
"rg", | |
"-L", | |
"--color=never", | |
"--no-heading", | |
"--with-filename", | |
"--line-number", |
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
{ | |
"echasnovski/mini.clue", | |
cond = function() | |
return require("config").keymenu.mini_clue | |
end, | |
event = "VeryLazy", | |
opts = function() | |
local map_leader = function(suffix, rhs, desc) | |
vim.keymap.set({ "n", "x" }, "<Leader>" .. suffix, rhs, { desc = desc }) | |
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
[language-server.pyright] | |
command = "pyright-langserver" | |
args = ["--stdio"] | |
config = { settings = { python = { analysis = { autoImportCompletions = true, typeCheckingMode = "off", autoSearchPaths = true, useLibraryCodeForTypes = true, diagnosticMode = "openFilesOnly" } } } } | |
[language-server.ruff-lsp] | |
command = "ruff-lsp" | |
[[language]] | |
name = "python" |
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
theme = "everforest_dark" | |
[editor] | |
# Show currently open buffers, only when more than one exists. | |
bufferline = "multiple" | |
# Highlight all lines with a cursor | |
cursorline = true | |
# Use relative line numbers | |
line-number = "relative" | |
# Show a ruler at column 80 and 120 |
NewerOlder