Ignore ALL DCC from anyone on IRC in irssi

During the last few months, I’ve been waking up to mass floods of DCC SEND from bots/people trying to exploit random clients into accepting a file over IRC. I use irssi for connecting to IRC – it’s an extremely configurable text based client, so I wanted a way to just ignore these DCC requests – …

Windows 7 Keyboard Shortcut: Start an Application with Administrator Privileges

You’ll have noticed that Windows 7 is pretty strict with some applications on the tasks they can perform – I often find myself needing elevated privileges in a Command Prompt to edit the routing table for example. You can, of course, right click on the application from the start menu and run as Administrator, but …

Viewing Previous Command History in Windows Command Prompt (cmd)

We all use the Windows Command Prompt, but there are quite a few very useful features you may not know about – one being command history viewing. To access the command history of your current session, press “F7” and you’ll be presented with a prompt containing the last commands you’ve executed. Please note that it …

Kill a GNU Screen Session from the Command Line

This article is about GNU Screen – you can read about GNU Screen here: http://www.gnu.org/software/screen/ There may be times when you have multiple, or even a single, screen session which you want to kill without attaching to it and ending it as you normally would. You can kill a screen session using the session ID or the …

How to Stop .DS_Store From Being Created on Network Drives (OS X)

.DS_Store files can make even the tidiest network shares look horrible to none-OS X users. Whenever an OS X machine accesses a network share, it creates a .DS_Store file for it’s own use (on SMB/CIFS, AFP, NFS, and WebDAV servers).  These files are invisible to the OS X user, but will show up to anyone …

Removing packages only installed as dependancies and no longer needed (Ubuntu, Debian)

We’ve all installed packages, using apt-get, where it’s installed a lot of other packages to satisfy dependancies. But what if you remove that package at a later date that needed all of those dependancies?  You’ll probably find it’s left the dependancies installed.. and if you’ve not installed any other packages which also need those dependacies, …

Finding out when (and where from) a user last logged into a Linux/BSD machine

There may be times when you want to find out when and where from a user last logged into a Linux or BSD machine. Of course, you could trawl through auth logs, but there is a quicker way by using “lastlog“. lastlog is a command which shows you the last login time and also from …