- copy/paste the script above into a file called "docker-compose.yml"
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 bash | |
| # arch-security-check.sh | |
| # Always prints commands before executing. | |
| # Uses sudo for privileged probes and will prompt if needed. | |
| # Optional: --json to output a machine-readable summary. | |
| set -u | |
| set -o pipefail # Exit on any command in pipeline failure | |
| IFS=$'\n\t' |
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
| # Kafka | |
| --- | |
| version: "2" | |
| services: | |
| kafbat-ui: | |
| container_name: kafbat-ui | |
| image: ghcr.io/kafbat/kafka-ui:latest | |
| ports: | |
| - 8080:8080 | |
| environment: |
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
| /** | |
| * Given a JS date returns a valid ISO date string with offset | |
| * | |
| * const myDate = new Date(); | |
| * console.log(getCustomIsoString(myDate)); | |
| * > 2021-07-07T13:35:18+02:00 | |
| * | |
| */ | |
| const getCustomIsoString = (date: Date) => { | |
| /** |
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
| /** | |
| * log a message with an iso datetime | |
| * @param {*} msg msg to log | |
| */ | |
| const log = (msg) => { | |
| console.log(msg, new Date().toISOString()); | |
| }; | |
| /** | |
| * sleep for a certain amount of ms |
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
| import { Injectable } from "@angular/core"; | |
| import { Store } from "@ngxs/store"; | |
| import { first } from "rxjs/operators"; | |
| import { Observable, Subject } from "rxjs"; | |
| import { HttpClient, HttpResponse } from "@angular/common/http"; | |
| import * as resolvePath from "object-resolve-path"; | |
| @Injectable({ | |
| providedIn: "root", |
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
| /** | |
| * interface which specifies all properties of a living being | |
| */ | |
| interface IlivingBeing { | |
| name: string; | |
| } | |
| /** | |
| * Interface which specifies the bark method | |
| */ |
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
| import { PENDING, FULFILLED, REJECTED } from "redux-promise-middleware"; | |
| export default function handleReduxPromiseMiddleware( | |
| reducer, | |
| actionType, | |
| initialState, | |
| statusKey, | |
| meta = {} | |
| ) { | |
| it(`should handle ${PENDING} (redux-promise-middleware)`, () => { |
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
| {"lastUpload":"2024-03-04T10:01:33.976Z","extensionVersion":"v3.4.3"} |