Skip to content

Instantly share code, notes, and snippets.

@JoelWekesa
JoelWekesa / Welcome file.md
Created January 30, 2025 22:59
Welcome file
<title>Welcome file</title>
# Install Docker on Ubuntu 20.04
### Update dependencies
```bash
sudo apt update
```
### install a few prerequisite packages which let apt use packages over HTTPS:
@JoelWekesa
JoelWekesa / Install certbot with snapd
Last active January 27, 2023 12:06
Install certbot with snapd
Step 1: Install snapd:
- sudo apt install snapd
Step 2: Ensure you have the latest snapd version installed:
- sudo snap install core; sudo snap refresh core
Step 3: Install Certbot with snapd:
- sudo snap install --classic certbot
Step 4: Create a symlink to ensure Certbot runs:
#------------------------------------------------------------------------------
# Copyright 2019 Robert Cowart
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
async findAll(data: any) {
const { page, startIndex, limit, search } = data;
const regex = new RegExp(search, 'i');
const results: any = {};
if (startIndex > 1) {
results.previous = page - 1;
}
@JoelWekesa
JoelWekesa / node_nginx_ssl.md
Created May 1, 2022 11:18 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@JoelWekesa
JoelWekesa / Python3 Virtualenv Setup.md
Created November 25, 2021 03:14 — forked from pandafulmanda/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3