Skip to content

Instantly share code, notes, and snippets.


Nielvid nielvid

View GitHub Profile
nielvid / hasMany.go
Created Jun 7, 2022 — forked from jtbonhomme/hasMany.go
Gorm example of foreign key definition for a hasMany relation
View hasMany.go
package main
import (
_ ""
// Customer ...
type Customer struct {
nielvid /
Last active May 24, 2022
Install Docker nginx and Nodejs@16.15.0 on ubuntu
sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release -y
curl -fsSL | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \
nielvid / cloudSettings
Last active Jan 4, 2022 — forked from bradtraversy/
Node app deploy with nginx & SSL
View cloudSettings
nielvid / countries.json
Created Aug 3, 2021 — forked from keeguon/countries.json
A list of countries in JSON
View countries.json
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},