Here are the different ways of creating an algebraic datatype or a tagged value.
type Type = 'A' | 'B';
type Value = any;
type ADTTuple = [Type, Value];
type ADTNamed = { type: Type } & {};
I have a website now that includes a more dumbed down but straight forward version of this guide that isnt basied towards Arch Linux but considers most distros. https://linuxguidance.net/improve-battery-and-optimize-your-linux-laptop/
Everything I do in this guide is mostly taken from the Arch Wiki, and is for Arch Linux, obviously this can probably be applied to other Linux distributions especially Arch based ones, this guide is for people who want a laptop with similar effciency they had on Windows or MacOS. I hate the excuse of having to compromise on Linux to have good battery or thermals on laptops.
Please think of this guide as more of a starting point, if you're serious about fully optimizing your laptop research your laptop and the hardware inside of it as that can get you even further down the rabbit hole.
This guide assumes you have a relatively modern laptop with at least an SSD from the factory, if you don't, don't worry you can still probably follow this guide perfectly, if you have a 32-b
Service | Description | SQL Support | Use Case |
---|---|---|---|
RDS | Postgres, MySQL, etc. | Full | Small-medium web apps |
Aurora | Serverless databases | Full | Serverless apps |
Redshift | Data warehouse | Full | OLAP, Petabytes of data, analytics |
DynamoDB | NoSQL database | Some - PartiSQL | Ecommerce, building fast |
Keyspaces | Managed Cassandra (key value) | Some - CQL | Messaging |
Neptune | Graph database | Some - openCypher |
--- | |
- hosts: legacyservers | |
gather_facts: yes | |
become: yes | |
tasks: | |
# Use a block to perform tasks conditionally—only if running Ubuntu 18.04. | |
- block: |
This exemplary initial setup uses two devices /dev/sdb
and /dev/sdc
but can be applied to any amount of devices by following the steps with additional devices.
Create keyfile:
dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkey
1. Получаем хэш-код коммита, к которому хотим вернуться. | |
2. Заходим в папку репозитория и пишем в консоль: | |
$ git reset --hard a3775a5485af0af20375cedf46112db5f813322a | |
$ git push --force |
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
# User-specific files | |
*.suo | |
*.user | |
*.sln.docstates | |
# Build results | |
[Dd]ebug/ |