Find files in Linux that exceed specific file size.

sudo find / -type f -size +(fileSize) -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’ Example: sudo find / -type f -size +20000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’

Restart Apache 2

PHP Development with XAMPP

Larry Ullman wrote a great post about his experience with MAMP. Many years before I heard about MAMP I had been using XAMPP (http://www.apachefriends.org/en/xampp.html), it was in fact that a friend told me about the great piece of software he was using called MAMP which was only $39 (at the time, today you have to […]

Linux: Check httpd.conf file before restarting server

Code [code] /usr/sbin/apachectl configtest [/code] If you have made changes to the httpd.conf file do not restart your server right away but rather run the configtest command that will provide valuable information on what errors there may be in your configuration of any.

Installing vim with ruby support (+ruby) – Stack Overflow

on mac os x, assuming you have Homebrew installed: brew install https://raw.github.com/adamv/homebrew-alt/master/duplicates/vim.rb This version of vim has ruby support enabled Source: http://blog.jerodsanto.net/2011/08/brew-install-vim/ via stackoverflow.com Even faster installation if you have Homebrew available on MAC OS X.

Installing vim with ruby support (+ruby) – Stack Overflow

sudo apt-get install mercurialhg clone https://vim.googlecode.com/hg/ vimcd vim./configure –enable-rubyinterpmakesudo make install To test if things look fancy: vim –version | grep ruby via stackoverflow.com Installing vim with Ruby support.

Origami In the Pursuit of Perfection on Vimeo

via vimeo.com

The General Problem

via imgs.xkcd.com oh Snap!

Chmod Cheats

prompt> chmod 0755 script.sh prompt> chmod 755 script.sh prompt> chmod u=rwx,g=rx,o=rx script.sh prompt> chmod u=rwx,go=rx script.sh prompt> chmod u+rwx,g+rx,g-w,o+rx,o-w script.sh prompt> chmod u+rwx,go+rx,go-w script.sh via zzee.com

Video/Audio Encoding Cheat Sheet for FFmpeg

This is a small personal cheat sheet for encoding audio/video encoding where I put some of my most used stuff with FFmpeg and other tools. I use H.264 and AAC on MP4, M4V or MKV container most of the time. via rodrigopolo.com