β Network bem-server_backend Created 0.1s
β Container pgsql Created 0.1s
β Container bem-server Created 0.0s
β Container nginx-bem-server Created 0.1s
Attaching to bem-server, nginx-bem-server, pgsql
pgsql | The files belonging to this database system will be owned by user "postgres".
pgsql | This user must also own the server process.
pgsql |
pgsql | The database cluster will be initialized with locale "en_US.utf8".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pattern = new RegExp([ | |
'\\d{3}', // Area code | |
'\\s*', // Optional whitespace | |
'-?', // Optional dash | |
'\\d{4}' // Main number | |
].join(''), 'g'); | |
const match = '123 4567'.match(pattern); | |
console.log(match[0]); // "123 4567" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Automato finito: w possui um numero par de a e b */ | |
digraph { | |
zero; | |
one; | |
two; | |
node [shape="doublecircle"]; | |
three; | |
/* estado inicial */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
test_words() { | |
local pattern=$1 | |
shift | |
local words=("$@") | |
for word in "${words[@]}" | |
do | |
if ! echo "$word" | grep -E "$pattern" > /dev/null ; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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('*'))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes ${{NUM_WORKERS}}; | |
# Toggle in production | |
error_log stderr notice; | |
# Toggle in production | |
daemon off; | |
pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update && sudo apt upgrade | |
sudo apt install openssh-client git htop \ | |
sdd-theme-debian-maui |
NewerOlder