npm init
npm install --save-dev \
# See https://telegra.ph/Gratus-Bot-06-24 | |
CREATE TABLE "data_entity" | |
( | |
"id" BIGSERIAL NOT NULL PRIMARY KEY, | |
"userId" BIGINT NOT NULL, | |
"chatId" BIGINT NOT NULL, | |
"createdAt" TIMESTAMPTZ NOT NULL DEFAULT NOW() | |
); | |
CREATE INDEX idx_data_entity_userId_chatId ON "data_entity" ("userId", "chatId"); |
Abbreviation | Spelling | Explanation |
---|---|---|
ASAP | As soon as possible | |
AFAIK | As far as I know | used when you believe that something is true, but you are not completely certain |
AFAIR | As far as I remember |
nest new <service_name>
─ | |
━ | |
│ | |
┃ | |
┄ | |
┅ | |
┆ | |
┇ | |
┈ | |
┉ |
# Building layer | |
FROM node:16-alpine as development | |
# Optional NPM automation (auth) token build argument | |
# ARG NPM_TOKEN | |
# Optionally authenticate NPM registry | |
# RUN npm set //registry.npmjs.org/:_authToken ${NPM_TOKEN} | |
WORKDIR /app |
sudo yum update | |
# Installing ZSH | |
sudo yum -y install zsh | |
# Check ZSH has been installed | |
zsh --version | |
# Install "util-linux-user" because "chsh" is not available by default | |
# See https://superuser.com/a/1389273/599050 |
// Code example for https://stackoverflow.com/q/66989225/5091346 | |
package com.github.aaabramov | |
import java.time.LocalDateTime | |
object Test extends App { | |
trait TestTrait[A] { |
lazy val myProjectClient = (project in file("my-project-client")) | |
.settings(name := "myProjectClient") | |
.settings(commonSettings) | |
.enablePlugins(CustomPlugin) | |
lazy val service = (project in file("service")) | |
.settings(name := "myProjectSvc") | |
.settings(commonSettings) | |
.settings(serviceSettings) | |
.dependsOn(myProjectClient) |
// https://stackoverflow.com/questions/65669069/akka-http-validate-path-segment | |
import akka.http.scaladsl.model.Uri.Path | |
import akka.http.scaladsl.server.{Directive, Rejection} | |
import com.exabeam.scheduler.models.AppErrors | |
import org.bson.types.ObjectId | |
final case class MalformedPathParamRejection(parameterName: String, errorMsg: String) extends Rejection | |
object ValidatedObjectId { |