$ sudo adduser deploy
add "deploy" user to sudo group if you want deploy to be a sudoer
$ sudo usermod -aG sudo deploy
$ sudo vim /lib/systemd/system/sidekiq.service
#
# This file tells systemd how to run Sidekiq as a 24/7 long-running daemon.
#
# Customize this file based on your bundler location, app directory, etc.
# Customize and copy this into /usr/lib/systemd/system (CentOS) or /lib/systemd/system (Ubuntu).
# Then run:
# - systemctl enable sidekiq
$ sudo apt-get install nginx
$ sudo apt-get install -y dirmngr gnupg apt-transport-https ca-certificates curl
$ curl https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key.txt | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/phusion.gpg >/dev/null
$ sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger jammy main > /etc/apt/sources.list.d/passenger.list'
# Sets revisited in python | |
def union(list1, list2): | |
result = list(set(list1 + list2)) | |
print("Union of {} and {} is {}".format(list1, list2, result)) | |
def intersect(list1, list2): | |
result = [x for x in list1 if x in list2] | |
print("Intersection of {} and {} is {}".format(list1, list2, result)) | |
# Sets revisited in python | |
def union(list1, list2): | |
result = list(set(list1 + list2)) | |
print("Union of {} and {} is {}".format(list1, list2, result)) | |
def intersect(list1, list2): | |
result = [x for x in list1 if x in list2] | |
print("Intersection of {} and {} is {}".format(list1, list2, result)) | |
# Sets revisited in python | |
def union(list1, list2): | |
result = list(set(list1 + list2)) | |
print("Union of {} and {} is {}".format(list1, list2, result)) | |
def intersect(list1, list2): | |
result = [x for x in list1 if x in list2] | |
print("Intersection of {} and {} is {}".format(list1, list2, result)) | |