Skip to content

Instantly share code, notes, and snippets.

@brygrill
Last active April 17, 2017 14:27
Show Gist options
  • Save brygrill/ffbde1c6949e9ddc9c102f7f178929af to your computer and use it in GitHub Desktop.
Save brygrill/ffbde1c6949e9ddc9c102f7f178929af to your computer and use it in GitHub Desktop.
Update Packages
$ sudo apt-get update
$ sudo apt-get -y upgrade
$ sudo apt-get dist-upgrade

via askubuntu

Install .deb
$ sudo dpkg -i /path/to/deb/file
$ sudo apt-get install -f
Claim Ownership of Directory
$ sudo chown -R $(whoami) /path/to/dir
Delete Directory
$ sudo rm -r /path/to/dir
Save Git Credentials
$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>

[several days later]
$ git push http://example.com/repo.git
[your credentials are used automatically]

via git

Restart
$ sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment