Skip to content

Instantly share code, notes, and snippets.

View Alex3917's full-sized avatar

Alex Krupp Alex3917

View GitHub Profile
@Alex3917
Alex3917 / scrape_spa_performance_data.py
Last active July 7, 2022 01:33
Get the PageSpeed Insights data for every Angular site on madewithangular.com, and every Next.js site from the nextjs.org/showcase
from pprint import pprint
import csv
import os
import urllib3
import re
import requests
import bs4
from bs4 import BeautifulSoup
@Alex3917
Alex3917 / gist:de07c7e181b61133662af5c76d3ea869
Created September 1, 2020 01:54
How to configure nginx for ElasticBeanstalk with Python on Amazon Linux 2
worker_processes 1;
user nginx;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024; # increase if you have lots of clients
accept_mutex off; # set to 'on' if nginx worker_processes > 1
}
@Alex3917
Alex3917 / celery_configs
Created September 1, 2020 01:47
How to configure Celery using Elastic Beanstalk with Amazon Linux 2
# In .ebextensions/01_celery.config
files:
"/etc/systemd/system/celery.service":
mode: "000644"
owner: celery
group: celery
content: |
[Unit]
Description=Celery Service

Keybase proof

I hereby claim:

  • I am alex3917 on github.
  • I am alex3917 (https://keybase.io/alex3917) on keybase.
  • I have a public key ASC6_VrI474qDUH2Z6y7vN0fNa9KCHYQ4iAvtC6f-rtzJwo

To claim this, I am signing this object: