diff --git a/docs/Divers/git/git.md b/docs/Divers/git/git.md index 4207d25..6417041 100644 --- a/docs/Divers/git/git.md +++ b/docs/Divers/git/git.md @@ -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) diff --git a/docs/Linux/find.md b/docs/Linux/find.md index caeb81e..efe3b0a 100644 --- a/docs/Linux/find.md +++ b/docs/Linux/find.md @@ -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 le plus vieux fichier: + +```bash +find / -type f -printf '%T+ %p\n' | sort | head -n 1 +``` + Recherche suivant la taille: ```bash diff --git a/docs/macos/homebrew/brew-cask.md b/docs/macos/homebrew/brew-cask.md index a3de491..e17f63b 100644 --- a/docs/macos/homebrew/brew-cask.md +++ b/docs/macos/homebrew/brew-cask.md @@ -115,6 +115,14 @@ $ brew cask _stanza version bettertouchtool +### Reinstaller un Cask: + +```bash +$ brew cask reinstall virtualbox +``` + + + ### Installer les mises-à-jour: ```bash diff --git a/docs/macos/homebrew/brew.md b/docs/macos/homebrew/brew.md index 72e7616..738577f 100644 --- a/docs/macos/homebrew/brew.md +++ b/docs/macos/homebrew/brew.md @@ -461,6 +461,58 @@ $ brew untap +### 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) \ No newline at end of file diff --git a/docs/macos/node/nvm.md b/docs/macos/node/nvm.md index 68bde1b..a19446d 100644 --- a/docs/macos/node/nvm.md +++ b/docs/macos/node/nvm.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: