Quantcast
Channel: Kieran Barnes » Geeky
Browsing latest articles
Browse All 10 View Live

Find text within files

Stuck trying to find text within files on Linux? cd /directory_tree_you_want_to_search find . -type f -exec grep -l "string to find" {} \; -print Easy! The post Find text within files appeared first on...

View Article



Install Imagemagick / Imagick for PHP on Ubuntu

No problem if you want to install imagemagick on your server, Ubuntu makes this very easy for you with only a few simple commands. Make sure u have pear install ( ’sudo apt-get install php-pear’ ) Then...

View Article

Block Countries in Apache

Assuming you have mod_geoip installed in apache we can block certain countries in 6 lines of code. I had a client who was experiencing an inhumane amount of spam on their phpBB forums, which are...

View Article

Permanently mount a Windows share in Linux

Sick of manually mounting a Windows share on Linux with “mount” for it to drop off randomly? Or not really knowing if it is mounted or not? Then make a permanent mount in fstab. First, check you have...

View Article

Using SCP to copy files between Linux servers

SCP? SCP is a method of securely transferring files between a local and a remote host or between two remote hosts, using the Secure Shell (SSH) protocol. Sounds confusing? Not really. scp -C -r...

View Article


Insert Coin

Bored at work? This script connects to a JetDirect equipped HP printer and uses HP’s control language to set the ready message on the LCD display. Takes an IP address and message on the command line....

View Article

Simple install of memcached on Ubuntu

Memcached is a free, high performance distributed memory object caching system. In English, it can make your single server PHP applications faster or for a little more technical users you can write...

View Article

[Snippet] Stop Windows Update irritating you to restart after updates

I’ve been irritated to reboot my laptop every fifteen minutes to reboot my laptop. Its never convenient is it. Click Start, Run and type net stop wuauserv The post [Snippet] Stop Windows Update...

View Article


Installing memcached on CentOS (cPanel)

Welcome to hell. No really, compared to installing memcached on Ubuntu, CentOSs really sucks. CentOS really sucks for package management.  Really sucks. Anyway, on to the point. Here’s how I installed...

View Article


Bad times, I had to use a book from the monitor stand today

The post Bad times, I had to use a book from the monitor stand today appeared first on Kieran Barnes.

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images