-
install python3.10
-
TODO: Install correct python version
pacman -Sy python3 --noconfirm
- Create user, to use yay
sudo apt update && sudo apt upgrade | |
sudo apt install openssh-client git htop \ | |
sdd-theme-debian-maui |
@echo off | |
winget install -e --id Microsoft.VisualStudioCode | |
winget install -e --id MSYS2.MSYS2 | |
C:\msys64\msys2_shell.cmd -c "pacman -Syu" | |
C:\msys64\msys2_shell.cmd -c "pacman -Su" | |
C:\msys64\msys2_shell.cmd -c "pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain" | |
setx PATH "%PATH%;C:\msys64\usr\bin" |
worker_processes ${{NUM_WORKERS}}; | |
# Toggle in production | |
error_log stderr notice; | |
# Toggle in production | |
daemon off; | |
pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
FROM alpine:3.12 | |
LABEL org.opencontainers.image.source="https://github.com/MilesChou/docker-lapis" \ | |
repository="https://github.com/MilesChou/docker-lapis" \ | |
maintainer="MilesChou <github.com/MilesChou>" | |
# Ref https://github.com/openresty/docker-openresty/blob/master/alpine/Dockerfile | |
ARG OPENRESTY_CONFIG_OPTIONS="\ | |
--with-http_auth_request_module \ | |
--with-http_gunzip_module \ |
#!/usr/bin/env python3 | |
# Sorts words each on its own line, on any number of files | |
from pathlib import Path | |
import timeit | |
def sorter(): | |
files = list(filter(lambda x: x.is_file(), Path('.').rglob('*'))) |