Skip to content

Instantly share code, notes, and snippets.

View mosleim's full-sized avatar
🌴
my code on @otoricode

muhammad bukhori muslim mosleim

🌴
my code on @otoricode
View GitHub Profile
@mosleim
mosleim / addTagsToAll
Created July 24, 2020 16:13
Golang::Addtags entire files, entire struct in a directory
for file in ./*.go; do
gomodifytags -file "${file##*/}" -all -add-tags gorm,json,bson,form,xml -w
done
@mosleim
mosleim / autoinstalldocker-vult
Last active September 27, 2019 16:58
Install docker on debian family
#!/bin/sh
apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
apt update
apt install -y docker-ce docker-compose
#login to vult
#if you don't have an account,