Skip to content

Instantly share code, notes, and snippets.

View BrunoKrugel's full-sized avatar

Bruno Krugel BrunoKrugel

View GitHub Profile
@CaptainVincent
CaptainVincent / README.md
Last active May 3, 2024 17:28
Improve your vscode quickinput-widget

Customize your quickinput-widget

This is a small tool designed to emulate the Sublime style Command Palette as follows.

Screenshot

It requires the use of a specific extension to load the js file from this gist.

I'm using the APC extension, and the usage is as follows.

@Lamarcke
Lamarcke / lualine.lua
Last active March 16, 2024 22:50
Lualine config for LSP clients, formatters and linters
-- Returns a string with a list of attached LSP clients, including
-- formatters and linters from null-ls, nvim-lint and formatter.nvim
local function get_attached_clients()
local buf_clients = vim.lsp.get_active_clients({ bufnr = 0 })
if #buf_clients == 0 then
return "LSP Inactive"
end
local buf_ft = vim.bo.filetype
@vinicioslc
vinicioslc / Github Actions Digital Ocean Deploy.md
Last active May 8, 2024 00:06
Como fazer deploy na digital ocean com github actions
  1. Primeiro crie uma chave ssh para deploy que será salva no github actions para ter acesso a maquina da digital ocean 1.1 Crie utilizando esses steps https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
  2. Adicione ssh.publica no servidor no arquivo authorized_keys
  3. Adiciona o ssh ao repositório do github nas settings do repositório 3.1 Caso possua pacotes privados do github não esqueça de configrar o .npmrc na pasta do package.json setando token de leitura para instalação de packages do repositório do gitbub

3.3 Adicione as configurações de conexão ssh utilizando as enviroments do repositório seguindo padrão de prefixo no nome SSH SSH_HOST -> ip da maquina SSH_PORT -> porta ssh 22

@troyfontaine
troyfontaine / 1-setup.md
Last active May 12, 2024 15:17
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.