Skip to content

Instantly share code, notes, and snippets.

View elsauto's full-sized avatar
🏠
Working from home

Sebastian Minutto elsauto

🏠
Working from home
View GitHub Profile
@elsauto
elsauto / Docker-Commands.md
Last active January 20, 2023 21:50
Docker Commands #Docker #Docker-Compose

Docker Command Cheatsheet

Build our own image:

docker build -t my-image .

Delete All Exited Containers (Linux):

docker rm $(docker ps -q -f status=exited)
@elsauto
elsauto / Example.md
Last active February 15, 2018 22:38
[Edit a remote file via a ssh connection with Sublime] #ssh #remote #hack #tricks #tips #developer

Edit file on remote server with Sublime.

  1. On the server side (in my case, Ubuntu) install rsub:

     wget -O /usr/local/bin/rsub \https://raw.github.com/aurora/rmate/master/rmate
     chmod a+x /usr/local/bin/rsub
    
  2. On the local side (again in my case macOS High Sierra 10.13.3) install rsub Sublime3 package. On Sublime Text 3, open Package Manager (Ctrl + Shift + P on Linux/Win, Cmd + Shift + P on Mac, Install Package), and search for rsub. Install it

@elsauto
elsauto / ssh.md
Last active February 15, 2018 22:31
[Cisco Router] #Cisco #IOS #CLI #SSH #Networking

Enable SSH and change SSH Port on a Cisco Router

  1. Define a domain name (plus hostname) on the router

     Router# conf t
     (config)# hostname *exampleRouter*
     (config)# ip domain-name *example.com*
    
  2. Create crypto key (certificate)