Skip to content

Instantly share code, notes, and snippets.

import 'reflect-metadata';
import { Container, inject, injectable } from "inversify";
@injectable()
class Database {
constructor() {
console.log('new Database');
}
}
@humodz
humodz / gist:462ce593d577988a1df6b649437a60f4
Last active October 28, 2023 19:41
localstack s3 + sqs
#!/usr/bin/env bash
apt-get install jq -y >/dev/null &2>1
UPLOAD_QUEUE_URL="$(
awslocal sqs create-queue --queue-name uploads |
jq -r .QueueUrl
)"
@humodz
humodz / .eslintrc.js
Created September 1, 2022 15:29
eslint configuration
module.exports = {
extends: [
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
@humodz
humodz / # JS utilities
Last active August 19, 2022 12:13
JS and TS utilities
JS and TS utilities
@humodz
humodz / # neovim + broot
Last active August 18, 2022 20:06
Use broot as a file browser for neovim
Use broot as a file browser for neovim