Affichage des articles dont le libellé est OSX. Afficher tous les articles
Affichage des articles dont le libellé est OSX. Afficher tous les articles

4 juin 2014

Meteor docset is available in Dash

Docsets are offline and searchable docs that you can browse using Dash. Recently, Meteor's docset has been added. Now, even when you are offline, you can easily browse your favorite framework's docs.

You can even call Dash within Vim using the Vimdash plugin.

31 mai 2014

htop, a better CLI process viewer

Inside my CLI, I sometime like to see which process eats up my CPU or my RAM. top is generally a nice utility for that kind of tasks. But, there is a better and cleaner alternative: htop. A comparison picture is worth a thousand words.
Install it on OSX using:
brew install htop

25 mai 2014

Preview markdown in your finder

Sidre Sorhus has created an interesting set of QuickLook plugins for the OSX's Finder. Among them, there is a Markdown previewer. Very handy. Install these plugins with this command:
brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzipql webp-quicklook suspicious-package

22 mai 2014

Never cry again after an unfortunate "rm -rf"

Sidresorhus has just published an awesome package named trash. This little CLI command delete your files and folders by moving them into your OS's trashcan. Beside being a secure rm command, it simplifies it when you are removing a tree of files. Super nice.

It supports Windows, OSX and Linux.

27 avr. 2014

tig - git history made simple on the CLI

tig, git in reverse, is a nice CLI that allows to browse your git history with a clean ncurse interface.

Installing it on OSX:
brew install tig
I've made a simple video of its basic usage:

30 déc. 2013

Screen capture as PNG on OSX

By default, OSX captures screenshots in the Finder as TIFF. You can customize this behavior so that the screenshots are saved as PNG. Open up your terminal and hit the following command:

defaults write com.apple.screencapture type -string "png"

Other options are allowed: BMP, GIF, JPG, PDF, TIFF.

An other nice move is to place your screenshots directly on your desktop:

defaults write com.apple.screencapture location -string "$HOME/Desktop"

And if you want to remove the shadow from the captured windows, just use the following stance:

defaults write com.apple.screencapture disable-shadow -bool true

Now, to take advantage of screen capture in your Finder, you can use the following key combinations:

  • ++3: Capture the whole screen.
  • ++4: Capture a selection of screen, end the selection via (the SPACE bar key).
As a nice tip, you can alter the saving behavior with (the ctrl key) so that all your screenshots ends up in your clipboard instead of your Desktop.