This file contains 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
import asyncio | |
import time | |
def timeit(func): | |
async def process(func, *args, **params): | |
if asyncio.iscoroutinefunction(func): | |
print('this function is a coroutine: {}'.format(func.__name__)) | |
return await func(*args, **params) | |
else: |
This file contains 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
# Install the toolchain | |
```bash | |
brew tap SergioBenitez/osxct | |
brew install x86_64-unknown-linux-gnu | |
``` | |
# this should get installed in: | |
# /opt/homebrew/Cellar/x86_64-unknown-linux-gnu/ | |
# Installing the macOS OpenSSL - if not already installed |
This file contains 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
# Download the Source | |
```bash | |
cd /tmp/ | |
wget https://ftp.postgresql.org/pub/source/v14.2/postgresql-14.2.tar.gz | |
tar xvf postgresql-14.2.tar.gz | |
cd postgresql-14.2 | |
``` | |
# Configure | |
# - with openssl |