- Add new table to the main db users table, with needed columns (id, email, password, first_name, last_name, restore_key, created_at, updated_at)
- Add a migration for the columns mentioned above
- Tests the migration on local and also record the time it takes to run locally.
- Add form to create new user and make persist it in the db table. Password will be encrypted using SHA512.
- Do basic validation like required
- Enhance validation to accept only email in email field, accept only alphabets (not numbers) for first name and last name.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Image: scratch - Error: error pulling image: Error response from daemon: 'scratch' is a reserved name | |
Image: elasticsearch - Error: error pulling image: Error response from daemon: manifest for elasticsearch:latest not found: manifest unknown: manifest unknown | |
Image: docker-dev - Error: error pulling image: Error response from daemon: manifest for docker-dev:latest not found: manifest unknown: manifest unknown | |
Image: dcl2020 - Error: error pulling image: Error response from daemon: pull access denied for dcl2020, repository does not exist or may require 'docker login': denied: requested access to the resource is denied | |
Image: aerospike - Error: error pulling image: Error response from daemon: manifest for aerospike:latest not found: manifest unknown: manifest unknown | |
Image: jenkins - Error: error pulling image: Error response from daemon: manifest for jenkins:latest not found: manifest unknown: manifest unknown | |
Image: kibana - Error: error pulling image: Error response from daemon: manifest for kibana:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Working Directory" : "\/Users\/ljahier", | |
"Prompt Before Closing 2" : false, | |
"Selected Text Color" : { | |
"Red Component" : 0.81214714050292969, | |
"Color Space" : "Calibrated", | |
"Blue Component" : 0.89225924015045166, | |
"Alpha Component" : 1, | |
"Green Component" : 0.83857882022857666 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo killall SystemUIServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TinderAutoLike { | |
likeBtn; | |
dislikeBtn; | |
intervalBetweenClick = 1000; | |
setIntervalId; | |
gamePad; | |
constructor() { | |
this.gamePad = document.getElementsByClassName('recsCardboard__cards')[0].children; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { mkdir, readdir, rename, stat } = require('fs/promises'); | |
async function main() { | |
try { | |
await mkdir('./photos') | |
console.debug('Photo directory successfully created'); | |
} catch (err) { | |
console.debug('Photo directory already exist'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const app = express(); | |
const bcrypt = require('bcrypt'); | |
const jwt = require('jsonwebtoken') | |
require('dotenv').config(); | |
const user = { | |
id: 1, | |
email: '[email protected]', | |
password: '$2b$10$YjiNp8gnJRqTQ5o8epBwFuX9fE3usawPkEZ0ZknnVs5YeSy53eW6e', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d -it --name fedora -v ~/.ssh/:/root/.ssh/ -v ~/.gitconfig:/root/.gitconfig -v ~/delivery:/delivery -v ~/norminette:/norminette fedora |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SHA256 = require("crypto-js/sha256") | |
const fs = require("fs") | |
// Une transaction est l'achat ou la vente de notre crypto | |
class Transaction { | |
// Le constructeur est la pour quand on initialise une nouvelle instance | |
// de la classe transaction on peu directement lui passer des parametres | |
constructor(index, timestamp, data, previousHash = '') { | |
this.index = index | |
this.timestamp = timestamp |
NewerOlder