Skip to content

Instantly share code, notes, and snippets.

View d70rr3s's full-sized avatar
🏠
Working from home

Dennis A. Torres Rodriguez d70rr3s

🏠
Working from home
View GitHub Profile
@d70rr3s
d70rr3s / apache reverse proxy for docker app
Created January 20, 2023 23:37
apache reverse proxy for docker
# Making temporary redirect from http to https
<VirtualHost *:80>
ServerName example.com
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/ [R=307,L]
</VirtualHost>
@d70rr3s
d70rr3s / renew-gpgkey.md
Created January 8, 2023 22:06 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@d70rr3s
d70rr3s / README.md
Created September 2, 2021 22:56 — forked from djfdyuruiry/README.md
WSL 2 - Enabling systemd

Enable systemd in WSL 2

This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.

  • To enable systemd under WSL we require a tool called systemd-genie

  • Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:

    cd /tmp