Skip to content

Instantly share code, notes, and snippets.

wolsen /
Last active Jun 14, 2021
quick cmd runner for ops framework
import subprocess
import textwrap
import time
import typing
import weakref
from ops import model
from ops import pebble
import uuid
learncodeacademy /
Last active Mar 24, 2021
Adding a deploy user in Linux

(wherever it says, use your server's domain or IP)

Login to new server as root, then add a deploy user

sudo useradd --create-home -s /bin/bash deploy
sudo adduser deploy sudo
sudo passwd deploy

And Update the new password