Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Remulo Costa remulocosta

🎯
Focusing
View GitHub Profile
@remulocosta
remulocosta / gist:aee977678feea5aecbd7de6e9461c7ce
Created Sep 6, 2020
fix zsh compinit: insecure directories and files, run compaudit for list.
View gist:aee977678feea5aecbd7de6e9461c7ce
$ cd /usr/local/share/
$ sudo chmod -R 755 zsh
$ sudo chown -R root:staff zsh
View cloudSettings
{"lastUpload":"2020-10-18T00:06:07.568Z","extensionVersion":"v3.4.3"}
View index.tsx
import React, { useState, useEffect } from 'react';
import logo from '../../assets/dota-logo.svg';
import {
Container,
HeaderContainer,
Header,
List,
Content,
@remulocosta
remulocosta / .gitconfig
Created May 23, 2020
git config file, alias
View .gitconfig
[user]
name =
email =
[core]
excludesfile = ~/.gitignore_global
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
@remulocosta
remulocosta / README.md
Last active May 12, 2020
Criação de servidor Node.js
View README.md

Configuração do servidor

  1. Configurar chave SSH
  2. Criar Droplet
  3. Realizar update e upgrade
  4. Crua usuário adduser deploy e usermod -aG sudo deploy
  5. Cria pasta .ssh pro deploy
  6. cp ~/.ssh/authorized_keys /home/deploy/.ssh/authorized_keys
  7. chown -R deploy:deploy .ssh/
  8. chmod 700 .ssh
@remulocosta
remulocosta / .editorconfig
Created Mar 30, 2020
Initial styled code NodeJS commonJS airbnb-base
View .editorconfig
# editorconfig.org
root = true
[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
View .editorconfig
# editorconfig.org
root = true
[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
View upgrade_dependeces.txt
//upgrade package.json
npm install -g npm-check-updates
ncu
ncu -u
View vm_hdraw_visrtualbox.txt
#HD All Partitions
VBoxManage internalcommands createrawvmdk -filename "<path file name>.vmdk" -rawdisk /dev/disk
#HD Indicated Partitions
VBoxManage internalcommands createrawvmdk -filename "<path file name>.vmdk" -rawdisk /dev/disk2 -partitions 1,2,3,4
#Permissions to file and device
#file
chmod 777 "path file name.vmdk"
#device
@remulocosta
remulocosta / export_vscode_end_install.txt
Created Jan 7, 2020
VSCode Export and install extensions
View export_vscode_end_install.txt
So as treehead's edit or MarkP's answer showed you can now list all extensions installed so the way to install that list of extensions would be to:
code --list-extensions >> vs_code_extensions_list.txt
Transfer the newly created file to the machine that you want to install those extensions to. On that machine you would:
cat vs_code_extensions_list.txt | xargs -n 1 code --install-extension
Which will then go through each extension in that file and install the extension.
If you want a clean install (AKA remove all existing extensions on that machine) you could run this before you install the new extensions (otherwise you will remove those new extensions too). BE CAREFUL as this will remove all extensions in VS Code:
You can’t perform that action at this time.