Skip to content

Instantly share code, notes, and snippets.

View AdanRL's full-sized avatar
🎯
Focusing

AdΓ‘n de la Rosa Lugo AdanRL

🎯
Focusing
View GitHub Profile
@AdanRL
AdanRL / connection-ssh-key.md
Last active October 31, 2021 16:30
Connection with ssh key DigitalOcean (Server)

DigitalOcean

Connection with ssh key DigitalOcean (Server)

Steps to follow πŸ‘·β€β™‚οΈ

1. πŸ”‘ Generate the ssh key in ~/.ssh with:

ssh-keygen
@AdanRL
AdanRL / docker-installation.md
Last active October 31, 2021 16:28
Steps to install Docker

Docker

Docker installation

🐳 Docker documentation

Steps to follow πŸ‘·β€β™‚οΈ

1. πŸ’£ Uninstall docker

sudo apt-get remove \
docker \
docker-engine \
docker.io \
@AdanRL
AdanRL / cloud-config.md
Last active October 29, 2021 22:34
Creating domain and adding cloudflare on digitalOcean

DigitalOcean Cloudflare

Cloud configuration ☁πŸ–₯

Steps to follow πŸ‘·β€β™‚οΈ

DigitalOcean 🌊

1. Add your domain to digitalOcean

s1 s2

2. Create a new record

@AdanRL
AdanRL / sharework.md
Last active October 29, 2021 22:27
Make a share works directory

Share workdir πŸ“‚πŸ‘¨β€πŸ’»πŸ‘©β€πŸ’»πŸ‘©β€πŸ’»

Steps to follow πŸ‘·β€β™‚οΈ

1. πŸ“ Create your workdir

Create a dir, and add a group as an owner.

sudo mkdir dir
sudo chown user:group dir
@AdanRL
AdanRL / nginx.md
Last active October 31, 2021 16:27
Nginx Installation and domain configuration

Nginx

How install Nginx and domain config

Nginx Docs

Steps to follow

1. πŸ’£ Make sure you hasn't apache or another service running and delete it

 sudo service apache2 stop
 sudo service apache2 status
 sudo apt-get remove apache2
@AdanRL
AdanRL / Docker_commands.md
Last active November 11, 2021 23:01
🐳 Docker commands tutorial

Docker

🐳 Docker commands tutorial

🐳 Docker documentation

1. πŸ“Έ List images

docker image ls
docker images
@AdanRL
AdanRL / GoNotes.md
Last active November 8, 2021 11:44
Notes for Go

#Go Notes Go std

Instalation on wsl

wget https://golang.org/dl/go1.17.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.17.2.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> $HOME/.profile // According to your terminal: $HOME/.zshrc or $HOME/.hasrc

Shortcuts to improve your coding time in visual code (Windows)

Line Movement

You can move lines using alt + ↑ / ↓ . Also, you can select more than one line pressing shift + ↑ / ↓

Quick Comments

You can use ctrl + k + c to comment lines and ctrl + k + u to uncomment Also, if you want to comment a specific part of a line but not all the line, you can use alt + shift + a

Select multiple words