Skip to content

Instantly share code, notes, and snippets.

View remulocosta's full-sized avatar
🎯
Focusing

Remulo Costa remulocosta

🎯
Focusing
  • Brasil
View GitHub Profile
@remulocosta
remulocosta / Dockerfile
Created September 24, 2022 02:29 — forked from wnqueiroz/Dockerfile
An efficient Dockerfile to build an image with NestJS with just the production dependencies
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 \
{"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}]}
@remulocosta
remulocosta / fix-git
Created March 19, 2021 12:54 — forked from Zoybean/fix-git
For when you've got a local git repo that's just too hard to recover
#!/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.
@remulocosta
remulocosta / figma.sh
Created March 3, 2021 05:01 — forked from sarojbelbase/figma.sh
A shell script to generate desktop file, launcher, mimetypes icons, .fig file-association for figma-linux.AppImage
#!/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
@remulocosta
remulocosta / gist:aee977678feea5aecbd7de6e9461c7ce
Created September 6, 2020 23:49
fix zsh compinit: insecure directories and files, run compaudit for list.
$ cd /usr/local/share/
$ sudo chmod -R 755 zsh
$ sudo chown -R root:staff zsh
@remulocosta
remulocosta / index.tsx
Created June 16, 2020 07:11
Home Heroes
import React, { useState, useEffect } from 'react';
import logo from '../../assets/dota-logo.svg';
import {
Container,
HeaderContainer,
Header,
List,
Content,
@remulocosta
remulocosta / settings.json
Last active June 2, 2020 00:45
Settings for VSCode
{
"extensions.ignoreRecommendations": true,
"workbench.activityBar.visible": true,
// Define o tema do VSCode
"workbench.colorTheme": "Omni",
"workbench.editor.labelFormat": "short",
// Define o tema dos ícones na sidebar
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
// Configura tamanho e família da fonte
@remulocosta
remulocosta / .gitconfig
Created May 23, 2020 01:31
git config file, alias
[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 10:23
Criação de servidor Node.js

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 March 30, 2020 17:20
Initial styled code NodeJS commonJS airbnb-base
# 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