25-07-2021
This commit is contained in:
41
docs/macos/Divers/parallels.md
Normal file
41
docs/macos/Divers/parallels.md
Normal file
@@ -0,0 +1,41 @@
|
||||
# Parallels Desktop
|
||||
|
||||
|
||||
|
||||
#### Accéder à une VM depuis macOS:
|
||||
|
||||
```bash
|
||||
$ prlctl enter "Debian GNU Linux"
|
||||
root@silverbook:/# ls
|
||||
bin boot dev etc home initrd.img initrd.img.old lib lib32 lib64 libx32 lost+found media mnt opt proc root run sbin srv sys tmp usr var vmlinuz vmlinuz.old
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Exécuter une commande dans une VM:
|
||||
|
||||
```bash
|
||||
$ prlctl exec "Debian GNU Linux" ifconfig
|
||||
enp0s5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
|
||||
inet 10.211.55.4 netmask 255.255.255.0 broadcast 10.211.55.255
|
||||
inet6 fdb2:2c26:f4e4:0:21c:42ff:fee9:7e1c prefixlen 64 scopeid 0x0<global>
|
||||
inet6 fe80::21c:42ff:fee9:7e1c prefixlen 64 scopeid 0x20<link>
|
||||
inet6 fdb2:2c26:f4e4:0:a1de:bde4:b68:5d63 prefixlen 64 scopeid 0x0<global>
|
||||
ether 00:1c:42:e9:7e:1c txqueuelen 1000 (Ethernet)
|
||||
RX packets 315106 bytes 338679740 (322.9 MiB)
|
||||
RX errors 0 dropped 0 overruns 0 frame 0
|
||||
TX packets 202399 bytes 24815933 (23.6 MiB)
|
||||
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
||||
|
||||
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
|
||||
inet 127.0.0.1 netmask 255.0.0.0
|
||||
inet6 ::1 prefixlen 128 scopeid 0x10<host>
|
||||
loop txqueuelen 1000 (Local Loopback)
|
||||
RX packets 4488 bytes 5545309 (5.2 MiB)
|
||||
RX errors 0 dropped 0 overruns 0 frame 0
|
||||
TX packets 4488 bytes 5545309 (5.2 MiB)
|
||||
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
||||
|
||||
```
|
||||
|
||||
42
docs/macos/Divers/vuepress.md
Normal file
42
docs/macos/Divers/vuepress.md
Normal file
@@ -0,0 +1,42 @@
|
||||
vuepress
|
||||
|
||||
|
||||
|
||||
Installation:
|
||||
|
||||
```bash
|
||||
npm i -g vuepress
|
||||
```
|
||||
|
||||
|
||||
|
||||
Crée du contenu:
|
||||
|
||||
```bash
|
||||
$ mkdir VuePress && cd VuePress
|
||||
|
||||
$ nano README.md
|
||||
|
||||
# Outreach shame
|
||||
Outreach Shame is the place to expose every lousy outreach emails. It’s every online marketer’s worst nightmares. These emails are everything you shouldn’t do to promote your business & content. Everything’s kept anonymous for good fun above all.
|
||||
|
||||
## How can you contribute?
|
||||
Simple, forward us the shameful email to *outreachshame@snipcart.com* where it’ll be up for moderation. We kindly ask you to censor any personal information from the email before forwarding it to us. Once your submission is accepted by our team it’ll be published on the site outreachshame.com.
|
||||
|
||||
## How it does work?
|
||||
Once a submission is approved, a commit is pushed in this [GitHub repository](https://github.com/snipcart/outreachshame). We then use [Forestry](https://forestry.io/#/) to make content editing and publishing easier for our dumb marketing folks. Once the entry is published, the site is built and deployed automatically on Netlify.
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
Démarrer le serveur de développement:
|
||||
|
||||
```bash
|
||||
$ vuepress dev
|
||||
```
|
||||
|
||||
|
||||
|
||||
Customiser:
|
||||
|
||||
16
docs/macos/Latex.md
Normal file
16
docs/macos/Latex.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Latex
|
||||
|
||||
|
||||
|
||||
### Erreurs:
|
||||
|
||||
```bash
|
||||
$ echo -e "$list" | pandoc --pdf-engine=lualatex -o brew.pdf
|
||||
|
||||
Error producing PDF.
|
||||
! LaTeX Error: File `lualatex-math.sty' not found.
|
||||
|
||||
```
|
||||
|
||||
https://tex.stackexchange.com/questions/160253/latex-cannot-find-sty-files/#280684
|
||||
|
||||
@@ -400,3 +400,5 @@ Info (version) sur le paquet 'fzf':
|
||||
$ brew info --installed --json=v2 | jq -r '{formulae} | .[] | .[] | select(.name == "fzf") | (.installed)' | jq -r '.[].version'
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# WebServer
|
||||
# node.js
|
||||
|
||||
|
||||
|
||||
@@ -6,5 +6,7 @@
|
||||
|
||||
[node-js](node-js.md)
|
||||
|
||||
[nodeenv](nodeenv.md)
|
||||
|
||||
[nvm](nvm.md)
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ livephotoskit 1.4.11 1.5.2 1.5.2
|
||||
|
||||
1. Current: la version actuelle du module.
|
||||
2. Wanted: la dernière version qui satisfait le semver ranges decrit dans le package.json
|
||||
3. Latest: la toutedernière version du module disponible sur npm.
|
||||
3. Latest: la toute dernière version du module disponible sur npm.
|
||||
|
||||
<u>Mettre-à-jour:</u>
|
||||
|
||||
@@ -153,6 +153,139 @@ puis
|
||||
|
||||
|
||||
|
||||
#### Voir toutes les versions disponibles d'un module:
|
||||
|
||||
```bash
|
||||
# Option: --json
|
||||
|
||||
$ npm show @popperjs/core versions
|
||||
[
|
||||
'2.0.0-alpha.1', '2.0.0-alpha.2', '2.0.0-alpha.3',
|
||||
'2.0.0-alpha.4', '2.0.0-next.5', '2.0.0-next.6',
|
||||
'2.0.0-next.7', '2.0.0-next.8', '2.0.0-next.9',
|
||||
'2.0.0-next.10', '2.0.0-next.11', '2.0.0-next.12',
|
||||
'2.0.0-next.13', '2.0.0-next.14', '2.0.0-next.15',
|
||||
'2.0.0-next.16', '2.0.0-next.17', '2.0.0-rc.1',
|
||||
'2.0.0-rc.2', '2.0.0-rc.3', '2.0.0',
|
||||
'2.0.1', '2.0.2', '2.0.3',
|
||||
'2.0.4', '2.0.5', '2.0.6',
|
||||
'2.1.0', '2.1.1', '2.2.0-bundlephobia.1',
|
||||
'2.2.0', '2.2.1', '2.2.2',
|
||||
'2.2.3', '2.3.0', '2.3.1',
|
||||
'2.3.2', '2.3.3', '2.4.0',
|
||||
'2.4.1', '2.4.2', '2.4.3',
|
||||
'2.4.4', '2.5.0', '2.5.1',
|
||||
'2.5.2', '2.5.3', '2.5.4',
|
||||
'2.6.0', '2.7.0', '2.7.1',
|
||||
'2.7.2', '2.8.0', '2.8.1',
|
||||
'2.8.2', '2.8.3', '2.8.4',
|
||||
'2.8.5', '2.8.6', '2.9.0',
|
||||
'2.9.1', '2.9.2'
|
||||
]
|
||||
```
|
||||
|
||||
```bash
|
||||
# Sans les versions alpha et beta
|
||||
|
||||
$ npm show bootstrap@* version # bash OK, zsh NOK
|
||||
```
|
||||
|
||||
|
||||
|
||||
`"dependencies": { "express": "2.9.1" }` (major.minor.patch)
|
||||
|
||||
- major version: 2
|
||||
- minor version: 9
|
||||
- patch version: 1
|
||||
|
||||
|
||||
|
||||
#### Installer un module:
|
||||
|
||||
Installer une <u>version spécifique</u>:
|
||||
|
||||
```bash
|
||||
$ npm info @popperjs/core
|
||||
|
||||
@popperjs/core@2.9.2 | MIT | deps: none | versions: 62
|
||||
Tooltip and Popover Positioning Engine
|
||||
https://github.com/popperjs/popper-core#readme
|
||||
|
||||
dist-tags:
|
||||
latest: 2.9.2
|
||||
|
||||
# Version spécifique (@x.y.z)
|
||||
$ npm install @popperjs/core@2.8.0
|
||||
|
||||
$ npm ls
|
||||
Downloads@ /Users/bruno/Downloads
|
||||
└── @popperjs/core@2.8.0
|
||||
```
|
||||
|
||||
Installer <u>latest minor version</u>:
|
||||
|
||||
```bash
|
||||
$ npm info @popperjs/core
|
||||
|
||||
@popperjs/core@2.9.2 | MIT | deps: none | versions: 62
|
||||
Tooltip and Popover Positioning Engine
|
||||
https://github.com/popperjs/popper-core#readme
|
||||
|
||||
dist-tags:
|
||||
latest: 2.9.2
|
||||
|
||||
# Latest minor version (^)
|
||||
# Update to 2.*.*
|
||||
$ npm install @popperjs/core@^2.8.0
|
||||
|
||||
$ npm ls
|
||||
Downloads@ /Users/bruno/Downloads
|
||||
└── @popperjs/core@2.9.2
|
||||
```
|
||||
|
||||
Installer <u>latest patch version</u>:
|
||||
|
||||
```bash
|
||||
$ npm info @popperjs/core
|
||||
|
||||
@popperjs/core@2.9.2 | MIT | deps: none | versions: 62
|
||||
Tooltip and Popover Positioning Engine
|
||||
https://github.com/popperjs/popper-core#readme
|
||||
|
||||
dist-tags:
|
||||
latest: 2.9.2
|
||||
|
||||
# Latest patch version (~)
|
||||
# Update to 2.8.*
|
||||
$ npm install @popperjs/core@~2.8.0
|
||||
|
||||
$ npm ls
|
||||
Downloads@ /Users/bruno/Downloads
|
||||
└── @popperjs/core@2.8.6
|
||||
```
|
||||
|
||||
Installer la <u>dernière version</u>:
|
||||
|
||||
```bash
|
||||
$ npm info @popperjs/core
|
||||
|
||||
@popperjs/core@2.9.2 | MIT | deps: none | versions: 62
|
||||
Tooltip and Popover Positioning Engine
|
||||
https://github.com/popperjs/popper-core#readme
|
||||
|
||||
dist-tags:
|
||||
latest: 2.9.2
|
||||
|
||||
# Dernière version (@latest)
|
||||
$ npm install @popperjs/core@latest
|
||||
|
||||
$npm ls
|
||||
Downloads@ /Users/bruno/Downloads
|
||||
└── @popperjs/core@2.9.2
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Supprimer tous les modules:
|
||||
|
||||
```bash
|
||||
@@ -214,6 +347,42 @@ published over a year ago by cohara87 <cohara87@gmail.com>
|
||||
|
||||
|
||||
|
||||
#### Version d'un package installé:
|
||||
|
||||
```bash
|
||||
$ npm list bootstrap
|
||||
silverbook.local@1.0.0 /Users/bruno/Sites
|
||||
└── bootstrap@5.0.1
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Dernière version d'un package:
|
||||
|
||||
```bash
|
||||
$ npm view bootstrap version
|
||||
5.0.1
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Rechercher un package:
|
||||
|
||||
[npms.io](https://npms.io)
|
||||
|
||||
[Libraries.io](https://libraries.io/search?platforms=NPM)
|
||||
|
||||
```bash
|
||||
$ npm search tar
|
||||
NAME | DESCRIPTION | AUTHOR | DATE | VERSION | KEYWORDS
|
||||
tar | tar for node | =nlf… | 2020-08-14 | 6.0.5 |
|
||||
tar-fs | filesystem bindings… | =mafintosh… | 2020-11-06 | 2.1.1 | tar fs file tarball directory stream
|
||||
tar-stream | tar-stream is a… | =mafintosh… | 2020-09-10 | 2.1.4 | tar tarball parse parser generate generator stream stream2 streams streams2 str
|
||||
archiver | a streaming… | =ctalkington | 2020-09-11 | 5.0.2 | archive archiver stream zip tar
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Funding:
|
||||
|
||||
```bash
|
||||
@@ -300,23 +469,16 @@ $ npm install -g --unsafe-perm homebridge-config-ui-x
|
||||
added 362 packages, and audited 362 packages in 45s
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Packages:
|
||||
|
||||
[Rechercher un package](https://npms.io)
|
||||
Autre solution:
|
||||
|
||||
```bash
|
||||
$ npm search tar
|
||||
NAME | DESCRIPTION | AUTHOR | DATE | VERSION | KEYWORDS
|
||||
tar | tar for node | =nlf… | 2020-08-14 | 6.0.5 |
|
||||
tar-fs | filesystem bindings… | =mafintosh… | 2020-11-06 | 2.1.1 | tar fs file tarball directory stream
|
||||
tar-stream | tar-stream is a… | =mafintosh… | 2020-09-10 | 2.1.4 | tar tarball parse parser generate generator stream stream2 streams streams2 str
|
||||
archiver | a streaming… | =ctalkington | 2020-09-11 | 5.0.2 | archive archiver stream zip tar
|
||||
$ npm cache clean --force
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Packages:
|
||||
|
||||
##### uninstall-all-modules
|
||||
|
||||
Desinstaller tous les modules=
|
||||
|
||||
@@ -63,4 +63,10 @@ Coller les texte supprimer: `CTRL+Y`
|
||||
|
||||
Supprimer le mot précédent: `CTRL+W`
|
||||
|
||||
Rechercher dans l'historique: `CTRL+R`
|
||||
Rechercher dans l'historique: `CTRL+R`
|
||||
|
||||
|
||||
|
||||
#### Date:
|
||||
|
||||
[How to format Date and Time in Linuxn macOS and Bash ?](https://www.shell-tips.com/linux/how-to-format-date-and-time-in-linux-macos-and-bash/)
|
||||
Reference in New Issue
Block a user