Skip to content

Instantly share code, notes, and snippets.

View hernandanielg's full-sized avatar

Hernan Garcia hernandanielg

View GitHub Profile
@wolsen
wolsen / cprocess.py
Last active February 4, 2023 10:25
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
learncodeacademy / deployUser.md
Last active October 8, 2022 18:56
Adding a deploy user in Linux

(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