It's good practice to set the required node and npm version for your project. To do so add to the package.json
:
"engines": {
"npm": ">=9.0.0 <10.0.0",
"node": ">=18.0.0 <19.0.0"
}
To use a local json schema inside your project with Visual Studio Code create a .vscode
folder and a settings.json
file inside it.
Then set the following configuration tuned up for your specific needs:
fileMatch
will match any file with that naming pattern;url
will start looking from the root folder of your project.
Read more about it (here)[https://code.visualstudio.com/docs/languages/json#_mapping-to-a-schema-in-the-workspace].{
#!/bin/bash | |
############# | |
# pinger.sh # | |
############# | |
# Ping every 30 seconds "192.168.0.1". | |
# If the ping fails, play a sound for alerting the user. | |
# The loop can only be stopped manually by the user. |
#!/bin/bash | |
############## | |
# git-backup # | |
############## | |
# Inside the "repos.txt" file, set the repositories names, one per line. | |
# The target folder is always generated in the current directory where the script is executed. | |
# Inside the new folder, each repository will be stored inside a tar.gz archive. | |
# Each repository is cloned as a mirror, so you can push it to a new remote. |
/** | |
* Retrive the specific value from an object, given the property path separated by a splitter. | |
* The generic defines the expected return type. | |
* Beware that, for example, defining a generic "string" won't assure us | |
* that the value from the object will have the same type. We are "trusting" the object. | |
* | |
* @param object | |
* @param path | |
* @param splitter | |
*/ |
Install the gpg package: sudo apt install gpg
.
Install the following packages with brew: brew install gnupg pinentry-mac
.
Then add the following configuration to the ~/.gnupg/gpg-agent.conf
:
# macos with intel
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
Nothing (usually).
macOS won't automatically add our keys (especially if protected by a passphrase) to the ssh agent. In order to fix this, we will open Automator and create a new shell script: Automator > Application > Run Shell Script
. The content is the following:
# add all keys inside "~/.ssh" into the ssh-agent and discard the output
ssh-add -A 2> /dev/null
This is mostly for my own benefit when I invariably format a computer using these adapters and forget how to get wifi working again:
Plug device in and ensure it is detected via lsusb
:
For the T3U Plus, the ID is 2357:0138
.
/* | |
1. Use a more-intuitive box-sizing model. | |
*/ | |
*, *::before, *::after { | |
box-sizing: border-box; | |
} | |
/* | |
2. Remove default margin | |
*/ |