Instalando redis-cli com suporte a tls
export BUILD_TLS=yes
asdf install redis-cli version
Instalando redis-cli com suporte a tls
export BUILD_TLS=yes
asdf install redis-cli version
import js from '@eslint/js' | |
import globals from 'globals' | |
import reactHooks from 'eslint-plugin-react-hooks' | |
import reactRefresh from 'eslint-plugin-react-refresh' | |
import tseslint from 'typescript-eslint' | |
import eslintPluginPrettier from "eslint-plugin-prettier"; | |
import prettierConfig from 'eslint-config-prettier'; | |
export default tseslint.config( | |
{ ignores: ['dist'] }, |
import { | |
ArgumentMetadata, | |
BadRequestException, | |
PipeTransform, | |
ValidationPipe, | |
} from '@nestjs/common'; | |
import { Product1, Product2 } from './dtos/create-product.dto'; | |
import { plainToInstance } from 'class-transformer'; | |
import { validate } from 'class-validator'; |
// not iterable | |
{ | |
const myItem = { | |
a: 1, | |
b: 2 | |
} | |
// const r = [...myItem] // TypeError: myItem is not iterable | |
} | |
// now object is iterable |
module.exports = { | |
name: "name", | |
nested: { | |
email: '[email protected]', | |
name: 'fulano de tal', | |
}, | |
} |
const amqpMock = require('amqplib-mocks') | |
module.exports = amqpMock |
[color] | |
ui = true | |
[core] | |
editor = vim | |
excludesfile = /Users/andresantos/.gitignore | |
autocrlf = input | |
[alias] | |
aliases = config --get-regexp alias | |
br = branch | |
ca = commit -v -a |
/** | |
* To get started install | |
* express bodyparser jsonwebtoken express-jwt | |
* via npm | |
* command :- | |
* npm install express bodyparser jsonwebtoken express-jwt --save | |
*/ | |
// Bringing all the dependencies in | |
const express = require('express'); |
import config from '../src/config' | |
import chai, { expect, should, assert } from 'chai' | |
import _ from 'lodash' | |
const knex = require('knex')(config.database) | |
const bookshelf = require('bookshelf')(knex) | |
const Test = bookshelf.Model.extend({ | |
tableName: 'TEST_ONLY', | |
idAttribute: 'ID', |
#DELETE BRANCHES MERGED INTO CURRENT BRANCH
git branch --merged | egrep -v "(^\*|master|dev|develop)" | xargs git branch -d
How to list only the file names that changed between two commits?
git diff --name-only SHA1 SHA2
where you only need to include enough of the SHA to identify the commits. You can also do, for example