-
Exclude specified files when deleting files
This command will find all .sql files in the current directory and its subdirectories, exclude files starting with 2024_03_07 and 2024_03_08, and delete the remaining files.
-
for repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist — Centos 8 Fix
Fix Failed to download metadata for repo CentOS Linux 8 had reached the End Of Life (EOL) on December 31st, 2021. that’s means CentOS 8 will no longer receive development resources from the official CentOS project. After Dec 31st, 2021, if you need to update your CentOS, you need to change the mirrors to vault.centos.org where they will…
-
use public API for IP information and retrieve the IPv6 address
This command uses curl to send an IPv6 request to ifconfig.co, which then returns your IPv6 address.
-
develop an Express.js application using TypeScript
To develop an Express.js application using TypeScript, you need to follow these steps: npx tsc –init `npm install express @types/express –save `typescriptimport express from ‘express’; const app = express(); app.get(‘/’, (req, res) => {res.send(‘Hello, Express!’);}); app.listen(3000, () => {console.log(‘Server started on port 3000’);}); `npx tsc `node app.js npx tsc && node app.js“` This will start…
-
How to get status code by using selenium.py (python code)
Option 1: if you just want to return the status code under the assumption that the page you want the status code from… exists in the log containing ‘text/html content type Usage: Option 2: if you wanted to see all status codes in the relevant logs Usage: Note 1: much of this is based on @Stefan Matei answer, however,…
-
Two ways to solve: The property “value” does not exist on the type “HTMLElement” encountered using React
In tsx, if you don’t use any, use this second method IN TSX
-
Scaleway GLACIER class object storage with restic
I’m starting to use C14’s GLACIER storage class with restic, and until now it seems be working very well. I suggest to create the repository in the usual way with restic -r s3:s3.fr-par.scw.cloud/test-bucket init, which will create the config file and keys in the STANDARD storage class. For backups, I’m using the command: similar to what you did,…