# 1. Open the below file with vim
sudo vim /etc/bluetooth/main.conf
# 2. Change the value of this field to bredr
ControllerMode = bredr
# 3. Save and Exit from Vim.
local feline = require('feline') | |
local vi_mode = require('feline.providers.vi_mode') | |
-- | |
-- 1. define some constants | |
-- | |
-- left and right constants (first and second items of the components array) | |
local LEFT = 1 | |
local RIGHT = 2 |
Check this out on Dev.to
- How to handle SSH keys with ec2-github actions https://zellwk.com/blog/github-actions-deploy/
- SSH_PRIVATE_KEY
- HOST_NAME / IP_ADDRESS
The ESM standard is considered stable in NodeJS and well supported by a lot of modern JavaScript tools.
ESLint does a good job validating and fixing ESM code (as long as you don't use top-level await, coming in ESLint v8). Make sure to enable the latest ECMA features in the ESLint config.
- .eslint.json
{
// Inverts the integers of an array | |
const invert = arr => arr.map(n => -n); | |
invert([2,-5]); //=> [-2,5] |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'
instead ofconst foo = require('foo')
to import the package. You also need to put"type": "module"
in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)
from CommonJS instead ofrequire(…)
. - Stay on the existing version of the package until you can move to ESM.
show dbs
: Show all the databases.
use <database>
: switch/move into a database.
show collections
: Show all the collections in that database.
db.<collection>.find()
: Show all documents in the collection.
db.<collection>.help()
: Show help on collection methods.
db.<collection>.drop()
: Drops or removes completely the collection.
db.<collection>.deleteMany()
: Delete documents from the collection.
db.dropDatabase()
: Deletes a database.
@layer utilities { | |
.text-gradient { | |
background-clip: text; | |
-webkit-text-fill-color: transparent; | |
} | |
} |