Install Ubuntu Download an iso image of Ubuntu Server 12.04 from Ubuntu’s website and burn it to CD. Choose the following options during the “Software Selection” phase of the installation (optional): OpenSSH Server Manual Package Selection (+ to add package, q to quit and install) httpd > main > apache2.2-bin httpd > main > libapache2-mod-php5 […]
Replace the word apples with the word oranges in fruits.txt: Replace the word apples with the word oranges in multiple text files: Adapted from this page.
Will disable mail service for the domain ‘thedomain.com’. It’s necessary if the domain has externally hosted email, e.g. their own exchange server. will re-enable it.
Copied from this website. For those who are tired of changing their hostname on their VPS after a restart or when it goes down and comes back up. This isn’t a big deal for most, but I use the hostname for Virtuozzo access instead of the IP so it’s more a convenience thing for me. […]
First install Mutt: Now send your message echo “test” | pipes a string to mutt that mutt uses as the message body -s “test” specifies the subject -a httpsd.tar.gz specifies the attachment firstname.lastname@example.org is the email address you want to send to.
I never remember to use this Can be shortened to: Maybe I’ll remember it now…8-)
jQuery 1.5 introduced deferred objects. From the jQuery site: jQuery.Deferred(), introduced in version 1.5, is a chainable utility object that can register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function. I learned about deferred objects recently when I needed to chain two […]
You can use Mustache conditional sections and inverted Sections to emulate if-else functionality. Here’s an example:
I use ‘delete line’ functionality in IDE’s all the time, and I always disliked that Textmate’s keyboard shortcut seemed a little hard to type. Here’s how to change it: Bundles > Bundle Editor > Show Bundle Editor Scroll down to the ‘Text’ bundle and click to expand it Click on ‘Delete Line’ Make sure ‘Key […]