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 / 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 / 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,