Skip to content

Instantly share code, notes, and snippets.

View junibrosas's full-sized avatar
🎯
Create! create! create!

Juni Brosas junibrosas

🎯
Create! create! create!
View GitHub Profile
@junibrosas
junibrosas / strong-password-regex.md
Created April 10, 2023 15:38 — forked from arielweinberger/strong-password-regex.md
Strong password Regular Expression - NestJS Course
  • Passwords will contain at least 1 upper case letter
  • Passwords will contain at least 1 lower case letter
  • Passwords will contain at least 1 number or special character
  • There is no length validation (min, max) in this regex!

Regular expression for JavaScript:

/((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/
@junibrosas
junibrosas / .dockerignore
Created October 25, 2020 16:43 — forked from ksmithut/.dockerignore
Node Docker Compose nodemon
node_modules
@junibrosas
junibrosas / .gitlab-ci.yml
Created October 11, 2020 16:28 — forked from thornbill/.gitlab-ci.yml
Example Node GitLab CI Yamlfile
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:6
before_script:
- npm install
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
<?php
$random = rand();
$date = date('Y-m-d H:i:s');
$report_to_file = true;
$report_page = "./csp.php?report=1";
$report_file_name = "report.txt";
$intercom_app_id = "YOUR_APP_ID";
@junibrosas
junibrosas / docker-help.md
Created August 4, 2020 04:13 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@junibrosas
junibrosas / redis-cache-service.js
Created April 22, 2019 11:01 — forked from StarpTech/redis-cache-service.js
Simple Redis Cache Client for Node.js
'use strict';
const assert = require('assert');
/**
* The redis client is https://github.com/luin/ioredis
*/
/*
const redisClient = new Redis({
@junibrosas
junibrosas / server.js
Created April 17, 2019 06:16 — forked from glemiere/server.js
Simple file written in ES6 to serve a ExpressJS/NextJS Server.
/**********
server.ts
---------------
Simple file written in ES6 to serve a ExpressJS/NextJS Server.
Uses SSL, Compression, redirection and service worker routing. See server config file at :
https://github.com/glemiere/nextjs-starter/tree/master/config
---------------
Requires Let's Encrypt SSL Certificate :
https://letsencrypt.org/
**********/