Skip to content

Instantly share code, notes, and snippets.

View vinicioslc's full-sized avatar
💭
I could be slow at responses

Vinicios Clarindo vinicioslc

💭
I could be slow at responses
View GitHub Profile
@vinicioslc
vinicioslc / development_tools.sh
Last active October 5, 2025 13:19
Things to do after install debian SO (setup dev env)
sudo apt-get update # update all repositories
# git setup
sudo apt-get install git
sudo apt-get install gitk # for GUI representation of git history
sudo apt-get install xclip # xclip is for saving shell output in clipboard
git config --global color.ui true # for colourful output in terminal
git config --global user.name "The Name" # write here your name and email
git config --global user.email "theemail@gmail.com"
@vinicioslc
vinicioslc / Fix for dokploy var lib docker read-only stuck.md
Created September 16, 2025 14:32
Fix for dokploy install stuck at: `"dokploy" 0 out of 1 tasks 1/1: mkdir var/lib/docker: read-only`

Error

0 out of 1 tasks 1/1: mkdir /var/lib/docker: read-only

Cause

You probably installed Docker with flatpak installation or via software center

Fix

@vinicioslc
vinicioslc / Github Actions Digital Ocean Deploy.md
Last active June 26, 2025 16:27
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

@vinicioslc
vinicioslc / flutter-android-cd.yml
Last active November 20, 2024 15:53
Build flutter releases in github actions for production only android for while.
# This is a basic workflow to help you get started with Actions
name: CD Internal-Lane
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
tags:
- "internal-v*.*.*" # on every version tag will build a new android artifact example: v3.1.2+6
jobs:
@vinicioslc
vinicioslc / update unique values with data.js
Created June 5, 2024 18:24
Add random value to unique columns in adonisjs v4.1 to allow add again random columns
const nanoid = require('nanoid') // npm i nanoid@3
/** @type {import('@adonisjs/lucid/src/Database')} */
const Database = use('Database')
module.exports = {
removeUniqueWithData,
}
async function removeUniqueWithData(
tableName,
column,
@vinicioslc
vinicioslc / github_gpg_key.md
Created October 30, 2023 21:30 — forked from ankurk91/github_gpg_key.md
Signing git commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@vinicioslc
vinicioslc / .bashrc
Last active July 26, 2023 21:23 — forked from ChugunovRoman/.bashrc
Alias for npm run with auto completing a npm scripts from package.json from current directory.
## NR npm alias
alias nr="npm run"
_npm_scripts() {
# check package.json file in current directory
if [ ! -f ./package.json ]; then
return
fi
@vinicioslc
vinicioslc / csgo.cfg
Created March 16, 2023 20:23
My custom cfg for sens and crosshair
// EXEC BUYBINDS //
exec "buybinds.cfg"
//------------------------------------------SCREEN CONFIG-------------------------//
echo "------------------------- vinny.cfg -------------------------START"
// video mode
echo "[CFG] 1280 720 0"
mat_setvideomode 1280 720 0
// 1280x960
@vinicioslc
vinicioslc / How to add server support ubuntu desktop.md
Last active November 21, 2022 23:09
Convert notebook ubuntu-desktop installation to be an ubuntu-server with screen auto power off

Some essentials commands to turn your notebook on a personal Ubuntu VPS

Enabling SSH on Ubuntu

sudo apt update
sudo apt install openssh-server && sudo systemctl status ssh

When UFW is enable on ubuntu installation you will need add ssh to firewall rules

sudo ufw allow ssh
@vinicioslc
vinicioslc / removeDuplicateStrings_nodejs_performance_readability.js
Created November 1, 2022 00:45
A good remove duplicates function in nodejs that uses good readability principles and performance concepts like hashmaps
const removeDuplicateStrings = (array) => {
const uniqueValues = [];
const seenMap = {};
for (const item of array) {
if (seenMap[item]) continue;
seenMap[item] = true;
uniqueValues.push(item);
}