follow mattconroy at http://twitter.com

Regular Grammar Help

I found a good document for regular grammars and thought I would post it so I wouldn’t lose it.
Have fun!
http://www.cset.oit.edu/~yangs/CST229/Lecture/6_grammarforms.pdf
Regular Grammar

Finding Large Files Linux

To find large files in linux you can use the find command.
As an example you can find all files that are close to 1GB or over by issuing the command:

find . -type f -size +1000000

The above command will list all files larger than 1GB recursively from the current working directory.

VSFTP Users without access to a shell cannot log in

If you are here you have probably seen this error “530 Login incorrect”
In order to fix this problem you need to ensure that the shell being used for the user in question is in the file /etc/shell.

# /etc/shells: valid login shells
/bin/csh
/bin/sh
/usr/bin/es
/usr/bin/ksh
/bin/ksh
/usr/bin/rc
/usr/bin/tcsh
/bin/tcsh
/usr/bin/esh
/bin/dash
/bin/bash
/bin/rbash
/usr/bin/screen
Any shell that is in this file will allow the user to connect.

Quick and dirty backups for linux using tar

I found this link useful. I have attached the actual backup script located on this page just in case it is gone in the future.
Tar Backup Script
Tar Backup Web Page

Hello World PHP

Just paste this code into a file named HelloWorld.php.

<?php

echo ‘Hello World!’;

?>
Navigate to the page and you have “hello world.”