Skip to content

Instantly share code, notes, and snippets.

View danLeBrown's full-sized avatar
🎯
Mo n se ounjẹ lọwọlọwọ

Ayomide Ojo danLeBrown

🎯
Mo n se ounjẹ lọwọlọwọ
View GitHub Profile
@danLeBrown
danLeBrown / redis-keys-for-bull-js-queues.md
Last active July 9, 2023 21:00
Queues implementation using Bull JS & Redis

Queues implementation using Bull JS & Redis

Introduction

Here are some of the identified suffixes for the keys you will find in Redis and the values they hold:

  • :id - this key references the progression of the job ID. It is used to generate the next job ID
  • :stalled-check - the time (probably of insertion) of the last stalled job
  • :completed - the ids of completed jobs
  • :failed - the ids of failed jobs
@danLeBrown
danLeBrown / Contributing.md
Created February 22, 2022 15:33 — forked from MarcDiethelm/Contributing.md
How to contribute to a project on Github

This text now lives at https://github.com/MarcDiethelm/contributing/blob/master/README.md. I turned it into a Github repo so you can, you know, contribute to it by making pull requests.


Contributing

If you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and and their ecosystems and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.

@danLeBrown
danLeBrown / alert.js
Last active January 24, 2023 08:12
Collect Laravel validation error and use it to display alerts in React.js, Vue.js, etc...
// this is where alert data from the server is stored
const alertDataFromServer = []
// this is the message relayed to the user
const messageToPush = []
// res.data.data (alert data) comes from the server
alertDataFromServer.push(res.data.data)
alertDataFromServer.forEach((element) => {
const errorObjects = element.errors.errors