Skip to content

Instantly share code, notes, and snippets.

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

(wherever it says url.com, 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