Skip to content

Instantly share code, notes, and snippets.

View shibon1's full-sized avatar
🕒
Time is Money

Diogo Mendonça shibon1

🕒
Time is Money
View GitHub Profile
@shibon1
shibon1 / terraform
Last active March 5, 2021 13:05
terraform
# aws_instance.instance:
resource "aws_instance" "instance" {
ami = "ami-042e8287309f5df03"
count = 3
associate_public_ip_address = true
instance_type = "t2.micro"
key_name = "ansible"
source_dest_check = true
tags = {
"Name" = "Client${count.index}"
@shibon1
shibon1 / Install and config server ansible
Last active March 9, 2021 11:00
Install and config server ansible
#Configure ssh for auto without necessat login
cd .ssh/
nano id_rsa
# Copy your key.pem for id_rsa
chmod 400 id_rsa
nano id_rsa.pub
@shibon1
shibon1 / Docker with apache (Sharing the local html directory)
Last active March 3, 2021 11:44
Docker with apache (Sharing the local html directory)
SERVER:
mkdir docker
cd docker
nano Dockerfile
#*******************************************************************************#
#NEEDS TO BE A 18.04 VERSION#
@shibon1
shibon1 / Installing Wiki,js with Docker Container
Created February 26, 2021 12:54
Installing Wiki,js with Docker Container
## Inspired by https://docs.requarks.io/install/ubuntu ##
apt update && apt upgrade -y
apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common openssl -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
@shibon1
shibon1 / How install a grafic interface in linux
Created February 26, 2021 12:37
How install a grafic interface in linux
## Inspired by jdmedeiros ##
sudo apt update
sudo apt upgrade -y
sudo apt install -y xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils
sudo apt install -y xrdp chromium-browser filezilla
@shibon1
shibon1 / How create a container and image in docker (apache)
Last active March 1, 2021 10:33
How create a container and image in docker (apache)
SERVER:
mkdir docker
cd docker
nano Dockerfile
#*******************************************************************************#
#NEEDS TO BE A 18.04 VERSION#