Skip to content

Instantly share code, notes, and snippets.

View micalevisk's full-sized avatar
🇧🇷
HTTP 499 ~ Adding bugs to programs.‏‏‎

Micael Levi L. Cavalcante micalevisk

🇧🇷
HTTP 499 ~ Adding bugs to programs.‏‏‎
View GitHub Profile
/* version: 03-14-2022 */
.swagger-ui .info .title, .swagger-ui a.nostyle, .swagger-ui .parameter__name, .swagger-ui .parameter__type, .swagger-ui .parameter__deprecated, .swagger-ui .parameter__in, .swagger-ui table thead tr th, .swagger-ui .response-col_status, .swagger-ui table thead tr td, .swagger-ui .opblock .opblock-section-header h4, .swagger-ui label, .swagger-ui .tab li, .swagger-ui .opblock .opblock-section-header label, .swagger-ui .btn {
color: #CCCCCC;
}
body, .swagger-ui .info .title, .swagger-ui .scheme-container, .swagger-ui select {
background-color: #222;
color: #CCC;
}
.swagger-ui .opblock .opblock-section-header {
@micalevisk
micalevisk / make-autocannon-command.mjs
Created March 20, 2022 19:29
Generates `autocannon` (https://github.com/mcollina/autocannon) command from user's answers
#!/usr/bin/env -S npx zx
$.shell = '/usr/bin/bash'
$.verbose = process.env.NODE_ENV === 'development'
// ========================================================================== //
function quitWitError(errorMsg) {
console.error( chalk.bold.red(errorMsg) )
process.exit(1)
}
function assertNotEmpty(val, errorMsg) {
@micalevisk
micalevisk / Dockerfile
Last active August 19, 2025 17:35
Production Dockerfile example for NestJS projects.
## ===========================================================> The common stage
FROM node:16.14 AS base
ENV NODE_ENV=production
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
## Remove unnecessary files from `node_modules` directory
@micalevisk
micalevisk / _nodejs web frameworks.md
Last active July 13, 2025 22:33
Comparing the popularity of few Node.js web frameworks.