Skip to content

Instantly share code, notes, and snippets.

View danielsepulvedab's full-sized avatar

Daniel Sepúlveda danielsepulvedab

  • Berlin, Germany
View GitHub Profile
@danielsepulvedab
danielsepulvedab / ChangePort.md
Last active April 16, 2018 20:25
SSH configurations

Change default connection port for SSH

Open the file /etc/ssh/sshd_config and modify the line:

Port xxx

Finally restart the ssh service

sudo service ssh restart
@danielsepulvedab
danielsepulvedab / config_dotfiles.sh
Last active April 18, 2018 00:30
Create repo to manage dotfiles
#!/bin/bash
#
# Inspired in this https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
# I'm creating this gist as a note to my future self
# Create bare repository
git init --bare $HOME/.myconfs
# Create alias to interact with the config directory
# It also should go in a .bash_profile and/or .bashrc files