Skip to content

Instantly share code, notes, and snippets.

View ycytai's full-sized avatar

Yu Chen, Yang ycytai

  • Taipei, Taiwan
View GitHub Profile
@ycytai
ycytai / list.md
Created March 16, 2024 13:28 — forked from ih2502mk/list.md
Quantopian Lectures Saved
@ycytai
ycytai / README.md
Last active April 26, 2024 10:03 — forked from arikfr/README.md
Setting up HTTPS with LetsEncrypt for Redash Docker Deployment
  1. Make sure the domain you picked points at the IP of your Redash server.
  2. Switch to the root user (sudo su).
  3. Create a folder named nginx in /opt/redash.
  4. Create in the nginx folder two additional folders: certs and certs-data.
  5. Create the file /opt/redash/nginx/nginx.conf and place the following in it: (replace example.redashapp.com with your domain name)
    upstream redash {
        server server:5000;
    }
    
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import msal
import requests
# Replace with your values
CLIENT_ID = 'your-client-id'
CLIENT_SECRET = 'your-client-secret'
TENANT_ID = 'your-tenant-id'
EMAIL = 'sender-email'
# 1. Define the MSAL authentication flow