sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
function check_required_software() { | |
ERROR="" | |
! [ -x "$(command -v curl)" ] && ERROR="$ERROR- curl\n" | |
! [ -x "$(command -v jq)" ] && ERROR="$ERROR- jq\n" | |
if [ -n "$ERROR" ]; then | |
echo "Some software is missing to run this script." | |
echo "Please make sure that you've installed:" | |
echo $ERROR >&2 |
type Person = { | |
firstName: string | |
lastName: string | |
middleName?: string | |
} | |
const hasValue = (value: Record<string, any>, property: any): boolean => | |
Boolean(value[property]) | |
type ValueOf<T> = T[keyof T] |
module App | |
open Elmish | |
type State = | |
{ CurrentUser: string option } | |
type Msg = | |
| SignIn of string | |
| SignOut |
I hereby claim:
To claim this, I am signing this object:
swagger: '2.0' | |
info: | |
title: Siren API | |
description: Template for a Siren API | |
version: '0.1.0' | |
schemes: | |
- http | |
- https | |
basePath: / | |
produces: |
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
'use strict'; | |
class Abstract { | |
// A static abstract method. | |
static foo() { | |
if (this === Abstract) { | |
// Error Type 2. Abstract methods can not be called directly. | |
throw new TypeError("Can not call static abstract method foo."); | |
} else if (this.foo === Abstract.foo) { | |
// Error Type 3. The child has not implemented this method. | |
throw new TypeError("Please implement static abstract method foo."); |
FROM fluent/fluentd:v0.12.34 | |
USER root | |
COPY ./etc/* /fluentd/etc/ | |
COPY config.sh /fluentd/ | |
RUN apk add --update --virtual .build-deps \ | |
sudo build-base ruby-dev \ |
When unsing docker compose you can have a problem with the order of dependent linked containers
The solution is to start a script which tries to access a service and waits until it gets ready before loading your program