Update 08-11-2019
This commit is contained in:
@@ -340,6 +340,14 @@ $ git status
|
||||
|
||||
|
||||
|
||||
#### Undo
|
||||
|
||||
https://stackoverflow.com/questions/927358/how-do-i-undo-the-most-recent-local-commits-in-git
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Dépot distants:
|
||||
|
||||
#### [Afficher les dépôts distants](https://git-scm.com/book/fr/v1/Les-bases-de-Git-Travailler-avec-des-d%C3%A9p%C3%B4ts-distants#Afficher-les-d%C3%A9p%C3%B4ts-distants)
|
||||
|
||||
@@ -49,6 +49,20 @@ find / -mtime +30 -print
|
||||
find / -mtime 30 -print
|
||||
```
|
||||
|
||||
```bash
|
||||
find . -mtime +0 # find files modified greater than 24 hours ago
|
||||
find . -mtime 0 # find files modified between now and 1 day ago (i.e., in the past 24 hours only)
|
||||
find . -mtime -1 # find files modified less than 1 day ago (SAME AS -mtime 0)
|
||||
find . -mtime 1 # find files modified between 24 and 48 hours ago
|
||||
find . -mtime +1 # find files modified more than 48 hours ago
|
||||
```
|
||||
|
||||
Rechercher <u>le plus vieux</u> fichier:
|
||||
|
||||
```bash
|
||||
find / -type f -printf '%T+ %p\n' | sort | head -n 1
|
||||
```
|
||||
|
||||
Recherche suivant la <u>taille</u>:
|
||||
|
||||
```bash
|
||||
|
||||
@@ -115,6 +115,14 @@ $ brew cask _stanza version bettertouchtool
|
||||
|
||||
|
||||
|
||||
### Reinstaller un Cask:
|
||||
|
||||
```bash
|
||||
$ brew cask reinstall virtualbox
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Installer les mises-à-jour:
|
||||
|
||||
```bash
|
||||
|
||||
@@ -461,6 +461,58 @@ $ brew untap <tapname>
|
||||
|
||||
|
||||
|
||||
### Commandes externes:
|
||||
|
||||
#### brew caveats:
|
||||
|
||||
Affiche les avertissements pour toutes les formules installées.
|
||||
|
||||
```bash
|
||||
$ brew tap zgracem/caveats
|
||||
$ brew caveats
|
||||
|
||||
==> libtool
|
||||
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
|
||||
so, you have instead: glibtool and glibtoolize.
|
||||
==> lua
|
||||
You may also want luarocks:
|
||||
brew install luarocks
|
||||
==> mariadb
|
||||
A "/etc/my.cnf" from another install may interfere with a Homebrew-built
|
||||
server starting up correctly.
|
||||
|
||||
MySQL is configured to only allow connections from localhost by default
|
||||
|
||||
To connect:
|
||||
mysql -uroot
|
||||
|
||||
To have launchd start mariadb now and restart at login:
|
||||
brew services start mariadb
|
||||
Or, if you don't want/need a background service you can just run:
|
||||
mysql.server start
|
||||
==> mono
|
||||
To use the assemblies from other formulae you need to set:
|
||||
export MONO_GAC_PREFIX="/usr/local"
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Environnement:
|
||||
|
||||
- `HOMEBREW_AUTO_UPDATE_SECS`: If set, Homebrew will only check for autoupdates once per this seconds interval.
|
||||
|
||||
*Default:* `300`.
|
||||
|
||||
- `HOMEBREW_GITHUB_API_TOKEN`: A personal access token for the GitHub API, used by Homebrew for features such as `brew search`. You can create one at https://github.com/settings/tokens. If set, GitHub will allow you a greater number of API requests. For more information, see: https://developer.github.com/v3/#rate-limiting
|
||||
|
||||
*Note:* Homebrew doesn’t require permissions for any of the scopes.
|
||||
|
||||
- `HOMEBREW_NO_AUTO_UPDATE`: If set, Homebrew will not auto-update before running `brew install`, `brew upgrade` or `brew tap`.
|
||||
|
||||
- `HOMEBREW_VERBOSE`: If set, Homebrew always assumes `--verbose` when running commands.
|
||||
|
||||
|
||||
|
||||
### Cask:
|
||||
|
||||
### [:fa-link: Homebrew-Cask](brew-cask.md)
|
||||
@@ -155,6 +155,16 @@ Now using node v10.15.0 (npm v6.4.1)
|
||||
$ nvm reinstall-packages 8
|
||||
```
|
||||
|
||||
Les paquets sont installés dans:
|
||||
|
||||
```bash
|
||||
bruno@silverbook: ~/.nvm/versions/node/v10.16.3/lib/node_modules $ ls
|
||||
ezshare npm
|
||||
|
||||
bruno@silverbook: ~/.nvm/versions/node/v10.16.2/lib/node_modules $ ls
|
||||
npm
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Erreur:
|
||||
|
||||
Reference in New Issue
Block a user