Asides
-
Command Option R on a Windows keyboard
Today I had to do an OS X internet recovery but I only had a Windows keyboard. Normally the keyboard combination to launch the Internet Recovery on Macs is Cmd+Option+R but I couldn’t find the right combination on the Windows keyboard. After much googling and experimenting, it turns out its Windows+Alt+R
-
How to factory reset a Yealink phone
If you ever need to do a factory reset on a Yealink phone, maybe if you forgot the admin password, simply hold the OK key down for 10 seconds and follow the prompts. Thanks to Langineers for that tip.
-
Install perl modules automatically using lib::xi
So you’ve downloaded a really cool perl script but it has 200 module dependencies? You could just install them one by one with cpanm or, you could use lib::xi. It automatically installs modules your perl script uses. # to install missing libaries automatically $ perl -Mlib::xi script.pl
-
Edit a regex search string in Emacs
If you are writing a complex regex search in emacs and need to edit the string, arrow keys takes you out of the search. M-e allows you to really edit the string.
-
Swap Registers in emacs calc
<TAB> to swap the contents of the last two registers in calc.
-
Select what you typed rather than the completion in ido-mode
Sometimes you don’t want the completion that ido is offering me in Emacs, for instance when trying to create a temporary buffer C-x C-b sometempbuffername. C-j will to get ido to accept what you typed rather than the completion.
-
.bash_profile vs .bashrc in OS X Terminal.app
.bash_profile vs .bashrc or why does OS X ignore my .bashrc in Terminal.app?
-
Keyboard shortcut to un-minimise a window in OS X
It’s a bit fiddly but it can be done. Cmd+m to the item you want to un-minimise, then while still holding cmd, press Option. Release Cmd and then finally release Option.
-
Cmd+m to Minimise a window in OS X
Cmd+m to minimise a window in OS X
-
Collaborative online $\LaTeX$ documents
writelatex.com is awesome. Edit your $LaTeX$ document and see the changes almost immediately.