Update 03-01-2024
This commit is contained in:
@@ -35,7 +35,7 @@ $ brew cask install mactex
|
||||
#### Créer une image disque:
|
||||
|
||||
```bash
|
||||
bruno@SilverBook:~$ hdiutil create -srcfolder /Users/bruno/Downloads/PC archive.dmg
|
||||
$ hdiutil create -srcfolder /Users/bruno/Downloads/PC archive.dmg
|
||||
|
||||
.......................................................................................................................................................................................
|
||||
|
||||
@@ -45,7 +45,7 @@ created: /Users/bruno/archive.dmg
|
||||
#### Rapport système:
|
||||
|
||||
```bash
|
||||
bruno@SilverBook:~$ system_profiler -detailLevel basic > report.txt
|
||||
$ system_profiler -detailLevel basic > report.txt
|
||||
```
|
||||
|
||||
#### Comparer fichiers et répertoires:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
vuepress
|
||||
# vuepress
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1063,7 +1063,7 @@ I wonder if you are in the middle of another rebase. If that is the case, pleas
|
||||
git rebase (--continue | --abort | --skip)
|
||||
If that is not the case, please
|
||||
rm -fr ".git/rebase-merge"
|
||||
and run me again. I am stopping in case you still have something valuable there.
|
||||
and run me again. I am stopping in case you still have something valuable there.
|
||||
```
|
||||
|
||||
Pour corriger, lancer:
|
||||
|
||||
@@ -477,6 +477,35 @@ $ npm cache clean --force
|
||||
|
||||
|
||||
|
||||
#### Erreur "npm ERR! 404 'deepl-cli' is not in this registry."
|
||||
|
||||
```bash
|
||||
$ npm view deepl-cli
|
||||
npm ERR! code E404
|
||||
npm ERR! 404 Unpublished on 2023-12-27T16:56:29.470Z
|
||||
npm ERR! 404
|
||||
npm ERR! 404 'deepl-cli' is not in this registry.
|
||||
npm ERR! 404
|
||||
npm ERR! 404 Note that you can also install from a
|
||||
npm ERR! 404 tarball, folder, http url, or git url.
|
||||
```
|
||||
|
||||
##### npm outdated --location=global --long
|
||||
|
||||
```bash
|
||||
npm ERR! code ENOVERSIONS
|
||||
npm ERR! No versions available for deepl-cli
|
||||
```
|
||||
|
||||
Le paquet n'est plus disponible sur https://registry.npmjs.org/
|
||||
|
||||
```bash
|
||||
~/.nvm/versions/node/v20.9.0/lib/node_modules
|
||||
$ rm -rf deepl-cli
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Packages:
|
||||
|
||||
##### uninstall-all-modules
|
||||
|
||||
139
docs/macos/terminal/commandes.md
Normal file
139
docs/macos/terminal/commandes.md
Normal file
@@ -0,0 +1,139 @@
|
||||
# Commandes (terminal)
|
||||
|
||||
|
||||
|
||||
### Information système
|
||||
|
||||
#### sw_vers
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
#### system_profiler
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
#### hostinfo
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
####
|
||||
|
||||
### Fichiers et Spotlight
|
||||
|
||||
#### mdfind
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
#### mdls
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
#### SetFile and GetFileInfo
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Utilitaires disque
|
||||
|
||||
#### diskutil
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
#### hdiutil
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
####
|
||||
|
||||
### Utilitaire réseau
|
||||
|
||||
#### networksetup
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
#### airport
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
####
|
||||
|
||||
### Gestion des logiciels
|
||||
|
||||
#### softwareupdate
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
#### pkgutil
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
#### mas
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Gestion des utilisateurs et groupes
|
||||
|
||||
#### dscl
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
#### sysadminctl
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Autres
|
||||
|
||||
#### dscacheutil
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
#### sysctl
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
#### sips
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
####
|
||||
@@ -66,6 +66,8 @@ $ tail -f /opt/homebrew/var/log/httpd/access_log
|
||||
|
||||
```bash
|
||||
$ multitail -s 2 /usr/local/var/log/httpd/error_log /usr/local/var/log/httpd/access_log
|
||||
|
||||
$ multitail -s 2 /opt/homebrew/var/log/httpd/error_log /opt/homebrew/var/log/httpd/access_log
|
||||
```
|
||||
|
||||
```bash
|
||||
@@ -387,6 +389,20 @@ Created a new local CA 💥
|
||||
Sudo password:
|
||||
The local CA is now installed in the system trust store! ⚡️
|
||||
The local CA is now installed in the Firefox trust store (requires browser restart)! 🦊
|
||||
|
||||
#
|
||||
# Un certificat "mkcert bruno@AirBook (Bruno Pesenti)" est ajouté dans le Trousseau d'accès (Système/Certficats)
|
||||
```
|
||||
|
||||
!!! info "Si Firefox est configuré avec un mot-de-passe"
|
||||
|
||||
```bash
|
||||
$ mkcert -install
|
||||
The local CA is now installed in the system trust store! ⚡️
|
||||
Enter Password or Pin for "NSS Certificate DB":
|
||||
|
||||
# Entrer le mot-de-passe de Firefox !
|
||||
# https://github.com/FiloSottile/mkcert/issues/50
|
||||
```
|
||||
|
||||
Créer les dossiers pour les certificats:
|
||||
@@ -406,7 +422,7 @@ Created a new certificate valid for the following names 📜
|
||||
|
||||
The certificate is at "./airbook.local.pem" and the key at "./airbook.local-key.pem" ✅
|
||||
|
||||
It will expire on 29 October 2023 🗓
|
||||
It will expire on 18 February 2026 🗓
|
||||
```
|
||||
|
||||
Un certificat et une clé sont créer pour chaque domaine:
|
||||
|
||||
Reference in New Issue
Block a user