- Update the package index:
sudo apt update
- Install fingerprint management daemon:
mikermcneil, 2022-08-10
A few principles for delivering a great customer experience and successfully completing professional services engagements. The following are lessons that I had to learn the hard way. Hopefully, they save you some trouble!
So I guess in Rails and Laravel world queues and background jobs are really all front and center but I don't hear that mentioned even moderately in Node. What will be the equivalent?
Mike McNeil sent the following messages at 8:21 PM
The equivalent is like what's in the sendTemplateEmail() helper in default new sails apps, at the bottom
I know of a couple of valid reasons to use queues in Node.js:
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.await import(…) from CommonJS instead of require(…).In this document, I will explain how to upgrade the default systemd version from 237 to 242.
The main reason why I needed this was related to the DNS-over-TLS that was not supported in the version 237 but available from version 242.
Later, when playing with Lynis, the security auditing tool, I then discovered that the version 242 was also providing the command systemd-analyze that is used by lynis to detect if existing systemd services are configured correctly in the security context, meaning that the existing services can run as expected but needs few or several changes in their configuration to make them safe without any exploitable attack surfaces.
You can try it once you've installed the version 242 of systemd that way:
| ########################################################################################################################### | |
| # MongoDB | |
| ########################################################################################################################### | |
| /*************************************************************************************************************************/ | |
| # MongoDB # macOS # services | |
| /*************************************************************************************************************************/ |
| #### | |
| # ZSH function to auto-switch to correct Node version | |
| # https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5 | |
| # | |
| # - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does. | |
| # | |
| # - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING. | |
| # | |
| # - Works correctly if your .nvmrc file contains something relaxed/generic, | |
| # like "4" or "v12.0" or "stable". |
| import * as httpProxy from 'http-proxy'; | |
| import * as express from 'express'; | |
| import * as expressWs from 'express-ws'; | |
| import * as WebSocket from 'ws'; | |
| import * as cookieParser from 'cookie-parser'; | |
| const proxy = httpProxy.createProxyServer({ | |
| }); | |
| const httpServer = express(); |
| Notes to make IR shield (made by LinkSprite) work in Raspberry Pi 3 (bought from Amazon [1]). | |
| The vendor has some documentation [2] but that is not complete and sufficient for Raspbian Stretch. | |
| Following are the changes that I made to make it work. | |
| $ sudo apt-get update | |
| $ sudo apt-get install lirc | |
| # Add the following lines to /etc/modules file | |
| lirc_dev | |
| lirc_rpi gpio_in_pin=18 gpio_out_pin=17 |
| #!/bin/bash | |
| # headset mac | |
| mac="00:1D:DF:67:0A:29" | |
| profile="a2dp" | |
| # Special Bluetooth controller | |
| btMac="" | |
| # connect|disconnect wait time | |
| waitTime=5 | |
| macId="${mac//:/_}" |