Tag Archives: Tip

Control system volume from terminal

A bit of a fun tip for today, control your system volume from the terminal. Of course, if you have access to another Mac via SSH you could always manipulate the volume remotely via SSH, say, for instance, someone is …

Posted in Mac OS X

Find the total amount of logged in users in Linux

Finding out how many users are logged into a box is surprisingly an easy task. You can use who to list all ttys connections like so: who srcnix console Nov 2 09:23 srcnix ttys000 Nov 5 09:42 srcnix ttys001 Nov …

Posted in Linux

In terminal open the current working directory in finder

When working with the terminal it’s sometimes required to open your current working directory in finder. While, to my annoyance, opening finder and navigating to the directory is of course possible some of us enjoy the quick and easy open …

Posted in Mac OS X

PHP: Decode WINDOWS-1252 character encoding

Recently I came across a character encoding that I didn’t recognise, WINDOWS-1252. Being a Windows character encoding it’s not at all surprising that I didn’t recognise it/do not like it. The solution to decoding such encoded strings is actually pretty …

Posted in PHP

OSX: Five extremely useful finder keyboard shortcuts

Here are five extremely useful finder keyboard shortcuts that every OSX user should know. Open a new finder window This key sequence will open a new finder window in front of the current window. CMD+N

Posted in Mac OS X

OSX: How to take a screen shot

There are several ways to capture your screen on OSX. Find below the key sequences to the most used screen capture commands. Entire display screen shot This takes an screenshot of your entire display. CMD+SHIFT+3

Posted in Mac OS X

Useful command line cursor shortcuts

Find below some useful cursor shortcuts, while it may take a while to get used to using these commands, they will increase your efficiency in command line usage. Move the the beginning of the line: CTRL+A

Posted in Linux

Using arguments from the previous command

Repeating arguments used in the previous command can be rather annoying, especially if it’s a long, complicated value. However, using an explanation mark can repeat the previous arguments. Much like using double explanation marks to repeat the entire previous command.

Posted in Linux

Find the processor and memory information on a Linux box

Surprisingly, finding out your processor and memory information on a Linux box is rather easy. To find the processor information cat /proc/cpuinfo

Posted in Linux

Know when to use double quotes – A second look

Based on the response I got from JaTaMan I thought it would be a good idea to add an additional post about single and double quote usage in PHP. JaTaMan pointed out that a colleague of his used the new …

Posted in PHP
Page 1 of 212