Skip to content

Instantly share code, notes, and snippets.

J. Andrew Lanz-O'Brien jlanzobr

  • London, Ontario
View GitHub Profile
View Computer Specifications
DESKTOP: Custom
● Processor: AMD Ryzen 7 3800X Processor (3.9GHz)
● Graphics: Gigabyte AMD Radeon RX 5700XT 8GB
● Motherboard: ASRock X570 Phantom Gaming 4
● Memory: 32 GB G.Skill Trident Z DDR4 3600MHz CL16
● Storage: Western Digital SN750 500 GB M.2-2280 NVME Solid State Drive
● Storage: Western Digital Blue 3D NAND 1TB PC SSD WDS100T2B0A
● Power Supply: SeaSonic FOCUS Plus Gold 1000W Fully Modular
● Display: 31.5 inch Acer ET322QU 75 Hz IPS 4 ms response time
● Mouse: Logitech G903 with PowerPlay charging system
View python.ini
[uwsgi]
chdir = /srv/http/python
module = django.core.handlers.wsgi:WSGIHandler()
env = DJANGO_SETTINGS_MODULE=python.settings
processes = 2 # number of cores on machine
max-requests = 5000
chmod-socket = 666
master = True
vacuum = True
socket = /var/run/uwsgi/python.sock
View uwsgi_params
uwsgi_param QUERY_STRING $query_string;
uwsgi_param REQUEST_METHOD $request_method;
uwsgi_param CONTENT_TYPE $content_type;
uwsgi_param CONTENT_LENGTH $content_length;
uwsgi_param REQUEST_URI $request_uri;
uwsgi_param PATH_INFO $document_uri;
uwsgi_param DOCUMENT_ROOT $document_root;
uwsgi_param SERVER_PROTOCOL $server_protocol;
View site.conf
server {
client_max_body_size 20M;
listen 80;
listen 443 ssl;
index index.html index.htm index.php;
server_name your.website.com;
root /srv/http;
# browse folders if no index file
View nginx.conf
user http;
worker_processes 2;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
@jlanzobr
jlanzobr / Arch Linux Setup
Last active Jul 7, 2020
A reasonably complete KDE experience on Arch.
View Arch Linux Setup
##install##
fdisk -l
cfdisk
mkswap /dev/sda2 -L Swap
swapon /dev/sda2
mkfs.ext4 /dev/sda1 -L Linux
mount /dev/sda1 /mnt
(wifi-menu)
pacstrap /mnt base linux linux-firmware
pacstrap /mnt os-prober grub dhclient
You can’t perform that action at this time.