- Configurar chave SSH
- Criar Droplet
- Realizar update e upgrade
- Crua usuário
adduser deploy
eusermod -aG sudo deploy
- Cria pasta
.ssh
prodeploy
cp ~/.ssh/authorized_keys /home/deploy/.ssh/authorized_keys
chown -R deploy:deploy .ssh/
chmod 700 .ssh
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
FROM node:16.17-alpine as builder | |
WORKDIR /usr/src/app | |
ARG NODE_ENV=production | |
ENV NODE_ENV=${NODE_ENV} | |
COPY package*.json ./ | |
RUN npm i -g @nestjs/cli \ |
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
#!/bin/bash | |
# Author: Zoey Llewellyn "Zobean" Hewll | |
# | |
# Usage: fix-git [REMOTE-URL] | |
# Must be run from the root directory of the repository. | |
# If a remote is not supplied, it will be read from .git/config | |
# | |
# For when you have a corrupted local repo, but a trusted remote. | |
# This script replaces all your history with that of the remote. |
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
#!/bin/bash | |
# This shell script works for the appimage file downloaded from https://github.com/Figma-Linux/figma-linux/releases | |
# The latest release is 0.62 & it's unofficial till date. | |
# To run this script you must add this figma.sh in same folder or next to each other. Otherwise it won't work. | |
# Setup: | |
# 1. >>> sudo bash figma.sh (Needs root access to update mime & icon database) | |
# 2. >>> Right click on figma-linux.AppImage & click on Run | |
set -e |
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
$ cd /usr/local/share/ | |
$ sudo chmod -R 755 zsh | |
$ sudo chown -R root:staff zsh |
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":1,"resource":"file:///home/remulo/projects/aulas-ReactJS/ignews/src/pages/api/users.ts","entries":[{"id":"Ogph.ts","source":"Fix all ESLint auto-fixable problems","timestamp":1652778060194},{"id":"nJ6P.ts","source":"Fix all ESLint auto-fixable problems","timestamp":1652778241686},{"id":"Ot6t.ts","timestamp":1652778271288},{"id":"wkO2.ts","timestamp":1652778307067}]} |
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
import React, { useState, useEffect } from 'react'; | |
import logo from '../../assets/dota-logo.svg'; | |
import { | |
Container, | |
HeaderContainer, | |
Header, | |
List, | |
Content, |
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
[user] | |
name = | |
email = | |
[core] | |
excludesfile = ~/.gitignore_global | |
[filter "lfs"] | |
required = true | |
clean = git-lfs clean -- %f |
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
# 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 |
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
# 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 |
NewerOlder