Skip to content

Instantly share code, notes, and snippets.

View larskanis's full-sized avatar

Lars Kanis larskanis

  • Comcard
  • Europe/Germany
View GitHub Profile
@larskanis
larskanis / outlook_imap_login.rb
Last active August 6, 2025 12:54
This is how to access the online service of Microsoft Office 365 by IMAP protocol in Ruby. It uses OAUTH2 authentication through the browser.
#
# This is how to access the online service of Microsoft Office 365 by IMAP protocol in Ruby.
#
# It uses OAUTH2 authentication through the browser.
# The authentication is done with the Thunderbird client_id, so that it should work equally to your Thunderbird access.
#
# Adjust your mail address:
email_address = '[email protected]'
@GAS85
GAS85 / http2_apache2_ubuntu20.04.md
Last active April 2, 2025 16:19
How to Enable HTTP/2 in Apache 2.4 on Ubuntu 20.04

Based on https://gist.github.com/GAS85/8dadbcb3c9a7ecbcb6705530c1252831

Requirements

  • A self-managed VPS or dedicated server with Ubuntu 20.04 running Apache 2.4.xx.
  • A registered domain name with working HTTPS (TLS/SSL). HTTP/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don’t support HTTP/2 in cleartext (non-TLS) mode.

Step 1: Install Apache2

Per default it will be apache2 version 2.4.41 what is enought for http2 support.