Run:
./SymantecRemovalTool.command
// pages/api/[...ts-rest].tsx | |
import { createNextRoute as fulfilContract, createNextRouter } from '@ts-rest/next'; | |
import { initContract } from '@ts-rest/core'; | |
import { z } from 'zod'; | |
export interface Post { | |
id: string; | |
title: string; | |
description: string | null; | |
content: string | null; |
You can use the following bash script to refeed AWS events from a dead letter queue (DLQ) to an SQS queue in batches of 5 events with a 1-minute wait between batches. Replace DLQ_URL and TARGET_SQS_URL with the appropriate URLs for your dead letter and target queues.
#!/bin/bash
DLQ_URL="https://sqs.region.amazonaws.com/your-account-id/dead-letter-queue-name"
TARGET_SQS_URL="https://sqs.region.amazonaws.com/your-account-id/target-queue-name"
BATCH_SIZE=5
WAIT_TIME=60
//@ts-nocheck | |
// copied from https://github.com/zspecza/common-tags/blob/master/src/stripIndents/stripIndents.js | |
const tagTransformersSymbol = 'COMMON_TAGS_TAG_TRANSFORMERS_SYMBOL'; | |
function isTag(fn) { | |
return typeof fn === 'function' && fn[tagTransformersSymbol]; | |
} |
{ | |
"debug.toolBarLocation": "docked", | |
"markdown.extension.orderedList.marker": "one", | |
"terminal.integrated.enableBell": false, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"workbench.iconTheme": "material-icon-theme", | |
"atomKeymap.promptV3Features": true, | |
"files.autoSave": "onFocusChange", | |
"editor.tabSize": 2, | |
"files.eol": "\n", |
// This is only working in 4.1.0-insiders20200903 | |
type ParserError<T extends string> = { error: true } & T | |
type EatWhitespace<State extends string> = | |
string extends State | |
? ParserError<"EatWhitespace got generic string type"> | |
: State extends ` ${infer State}` | `\n${infer State}` | |
? EatWhitespace<State> | |
: State | |
type AddKeyValue<Memo extends Record<string, any>, Key extends string, Value extends any> = |
// at b.ts | |
export class B { | |
public iAm() { | |
return 'B' | |
} | |
} | |
// at a.ts | |
import { B } from './b' |
From whatever | |
# Install wait-for-it.sh docker-compose to wait on dependent containers e.g. database | |
RUN apk --no-cache --virtual .build-deps add curl && \ | |
curl https://raw.githubusercontent.com/raphaelahrens/wait-for-it/master/wait-for-it.sh > /usr/local/bin/wait-for-it.sh && \ | |
chmod +x /usr/local/bin/wait-for-it.sh && \ | |
apk del .build-deps | |
ENTRYPOINT ["/usr/local/bin/shush", "exec", "--"] |
type TransformObjValueType<OBJ extends {[k: string]: string}, NEW_TYPE> = | |
{[K in keyof OBJ]: NEW_TYPE} | |
// Usage: | |
type Secrets = {[k: string]: string} | |
type ContainerSecrets = TransformObjValueType<Secrets, EcsSecret> |