Skip to content

Instantly share code, notes, and snippets.

View sunr00t's full-sized avatar
🐢
Slowly

Bruno Nascimento sunr00t

🐢
Slowly
View GitHub Profile
@sunr00t
sunr00t / gist:8b7945132d0d1ba2f105dbbdd2b9c007
Last active April 17, 2023 13:11
Problemas com Chaves GPG

Problema:

Ao realizar update do SO o gerenciador de pacotes informa:

Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

Para resolver tem que converter a chave antigar em gpg

Procurar a key com problema

sudo apt-key list

@sunr00t
sunr00t / docker-and-caprover-install.sh
Last active January 19, 2024 18:19
docker-and-caprover-install.sh
#!/bin/sh
set -e
# Docker Engine for Linux installation script.
#
# This script is intended as a convenient way to configure docker's package
# repositories and to install Docker Engine, This script is not recommended
# for production environments. Before running this script, make yourself familiar
# with potential risks and limitations, and refer to the installation manual
# at https://docs.docker.com/engine/install/ for alternative installation methods.
#
@sunr00t
sunr00t / install-vscode.sh
Last active February 13, 2022 14:54
Ubuntu / Debian - Adicionando VSCode na SourceList do Apt
#Baixar e Extrair Chave .gpg da Microsoft
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
#Instalar a chave como Chaves Confiaveis
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
#Usar chave e adicionar repositorio apt na source.list
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
#Instalar Pacote auxiliar
@sunr00t
sunr00t / npm without sudo.md
Created November 10, 2020 20:47
npm without sudo on linux

Install npm packages globally without sudo on macOS and Linux

npm installs packages locally within your projects by default. You can also install packages globally (e.g. npm install -g <package>) (useful for command-line apps). However the downside of this is that you need to be root (or use sudo) to be able to install globally.

Here is a way to install packages globally for a given user.

1. Create a directory for global packages
mkdir "${HOME}/.npm-packages"
@sunr00t
sunr00t / emotin-markdown.md
Last active February 13, 2022 14:55 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
/*
#Group
Extension Name - Extension Editor
*/
#Theme
- RocketSeat Theme - Omni Theme
- Material Icon Theme - Philipp Kief
- Portuguese (Brazil) Language Pack for VSCode - Microsoft
- Code Spell Checker - Street Side Software