Skip to content

Instantly share code, notes, and snippets.

View rlsch's full-sized avatar

Robert Lösch rlsch

  • TU Bergakademie Freiberg
  • Leipzig, Germany
View GitHub Profile
@rlsch
rlsch / .bash
Last active July 12, 2019 20:10 — forked from cyper85/.bash
WLAN im studNET in Leipzig
# Passwort ändern
passwd
# Programme installieren
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y install nohup vim sshpass
@rlsch
rlsch / install_dotfiles.sh
Last active February 20, 2018 18:54
Creates bare git repo in ~/.dotfiles and clones Github dotfile repo
#!/bin/sh
# https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
# curl -Lk https://gist.githubusercontent.com/rlsch/7c154bfa403dbbfe7b43ca128160ca0e/raw/6244b3a349efbd02f9cb9079a6f0cdbf4b8ee656/install_dotfiles.sh | /bin/bash
mkdir $HOME/.dotfiles
git clone --bare https://github.com/rlsch/dotfiles.git $HOME/.dotfiles
function config {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
mkdir -p .dotfile-backup
config checkout