Skip to content

Instantly share code, notes, and snippets.

@kjbrum
kjbrum / gitrinse.md
Last active September 29, 2022 13:16 — forked from nicktoumpelis/repo-rinse.sh
Clean and reset a Git repo and/or it's submodules.

Clean and reset a Git repo and/or it's submodules

Remove untracked/ignored files/directories and uncommitted changes.

Repo and submodules

$ git clean -xfd
$ git submodule foreach --recursive git clean -xfd
$ git reset --hard
@kjbrum
kjbrum / letsencrypt-serverpilot.md
Last active January 23, 2018 16:28
Installing Let's Encrypt with Certbot on DigitalOcean w/ServerPilot

Let's Encrypt on DigitalOcean w/ServerPilot

  • APP_NAME - ServerPilot App Name (serverpilot/apps/example)
  • DOMAIN_NAME - Domain name (example.com)

1. SSH as root into the server

$ ssh root@SERVER_IP_ADDRESS