WTF *Nix

Just another *nix Blog

Archive for January, 2009

New Form of MySQL Spam!

Jan-28-2009 By WTF *Nix

You have to love this one, take a look and tell me what you think? :P

from    alerts@gmail.com <alerts@gmail.com>
reply-to    “alerts@gmail.com” <alerts@gmail.com>
to    xxxxxxxxxxxxxxxxx@gmail.com
date    Wed, Jan 28, 2009 at 4:04 PM
subject    DB Error
[SELECT DISTINCT email,name FROM ost_ticket WHERE email LIKE 'hi i'm a 24 year old black male. i'm noticing that my hair is starting to thin and i'm slowly going bald. i've read that biotin is good for hair growth. are there any biotin supplements that will help restore my hair? if so, which supplements do you recommend? if not, are there any other alternatives? %' ORDER BY created LIMIT 10] – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘m a 24 year old black male. i’m noticing that my hair is starting to thin and i” at line 1

I’m shocked though that Google (Gmail) wouldn’t of thought of this one, it takes the cake!

Share and Enjoy:
  • Google Bookmarks
  • MySpace
  • Facebook
  • StumbleUpon
  • Print
  • email
  • Digg

Adobe is So Cheap It’s Not funny!

Jan-8-2009 By WTF *Nix

They can’t even install a real UNIX box, this goes to show you how cheap and weak they are using this:

adobe-xampp-fucked1

Here they freaking charge you $1000+/USD per license and they worry about crackers, cracking their software! Heck this is great stuff to see though!

So WTF!

Share and Enjoy:
  • Google Bookmarks
  • MySpace
  • Facebook
  • StumbleUpon
  • Print
  • email
  • Digg

Just like the title says, so here you go, this will simply help you out in a couple of bash commands:

(Newbie alert: If you copy the command, do NOT copy the # this is just there for you simulating that it’s the BASH prompt, or I can use $, just depends on your ENV!)

# for i in `find / -iname core.* 2>/dev/null`;do rm -f $i;done
# for i in `find / -iname error_log 2>/dev/null`;do echo > $i;done

So WTF Get’r done!

Share and Enjoy:
  • Google Bookmarks
  • MySpace
  • Facebook
  • StumbleUpon
  • Print
  • email
  • Digg

Upgrade Fedora 9 – Fedora 10

Jan-7-2009 By WTF *Nix

Yes it seems they are rolling out more fedora releases nowadays, which Office is version 12 right now currently, so by year end I think they will be caught up with Microsoft Office version!

Anyhow, here’s your steps on upgrading using YUM on a Fedora box:

(Extra yum clean all’s can’t hurt nothing, always to be sure of everything being cleaned before always updating, I do it because I use cache and found that after one clean all they simply don’t wipe out sometimes on the first go around. Also note the # is just there pretending to be a command prompt any and all commands follow the #, just a note for the newbies)

  • #yum clean all
  • #yum clean all
  • # yum update
  • # yum clean all
  • # yum clean all
  • # yum update
  • # yum clean all
  • #yum clean all
  • Good to be sure everything is cleaned!
  • Pick a MIRROR that’s closest too you, I like liberty.edu because I’m pretty close there: Fedora List of Mirrors
  • For i386 Boxes: # rpm -Uhv http://mirror.liberty.edu/pub/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-10-1.noarch.rpm http://mirror.liberty.edu/pub/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-notes-10.0.0-1.noarch.rpm

  • For x86_64 Boxes: # rpm -Uhv http://mirror.liberty.edu/pub/fedora/linux/releases/10/Fedora/x86_64/os/Packages/fedora-release-10-1.noarch.rpm http://mirror.liberty.edu/pub/fedora/linux/releases/10/Fedora/x86_64/os/Packages/fedora-release-notes-10.0.0-1.noarch.rpm

  • Good rule here to remember, as I don’t put the -y (yes switch, because I like to visually inspect everything before letting the upgrade go about.)
  • After doing this, you may have to run: # yum clean all just in case to pick up everything for the changes to take effect prior to upgrading to the new Fedora 10 before running:
  • # yum update

Once you get done downloading, updating all packages, reboot, watch your screen to ensure that the newest kernel is picked up and head onto and into Fedora 10. =)

If you have issues, feel free on posting here any questions, I myself can help you figure it out when I get time, or some other passerbyer maybe able to assist.

So WTF!

Share and Enjoy:
  • Google Bookmarks
  • MySpace
  • Facebook
  • StumbleUpon
  • Print
  • email
  • Digg

man du

Jan-7-2009 By WTF *Nix

du

Disk Usage – report the amount of disk space used by the specified files and for each subdirectory.

Syntax
du [options]… [file]…

With no arguments, `du’ reports the disk space for the current directory. Normally the disk space is printed in units of 1024 bytes, but this can be overridden

OPTIONS

`-a’
`–all’
Show counts for all files, not just directories.

`-b’
`–bytes’
Print sizes in bytes, overriding the default block size (*note
Block size::).

`-c’
`–total’
Print a grand total of all arguments after all arguments have been
processed.  This can be used to find out the total disk usage of a
given set of files or directories.

`-D’
`–dereference-args’
Dereference symbolic links that are command line arguments.  Does
not affect other symbolic links.  This is helpful for finding out
the disk usage of directories, such as `/usr/tmp’, which are often
symbolic links.

`-h’
`–human-readable’
Append a size letter such as `M’ for megabytes to each size.
Powers of 1024 are used, not 1000; `M’ stands for 1,048,576 bytes.
Use the `-H’ or `–si’ option if you prefer powers of 1000.

`-H’
`–si’
Append a size letter such as `M’ for megabytes to each size.  (SI
is the International System of Units, which defines these letters
as prefixes.)  Powers of 1000 are used, not 1024; `M’ stands for
1,000,000 bytes.  Use the `-h’ or `–human-readable’ option if you
prefer powers of 1024.

`-k’
`–kilobytes’
Print sizes in 1024-byte blocks, overriding the default block size
(*note Block size::).

`-l’
`–count-links’
Count the size of all files, even if they have appeared already
(as a hard link).

`-L’
`–dereference’
Dereference symbolic links (show the disk space used by the file
or directory that the link points to instead of the space used by
the link).

`–max-depth=DEPTH’
Show the total for each directory (and file if -all) that is at
most MAX_DEPTH levels down from the root of the hierarchy.  The
root is at level 0, so `du –max-depth=0′ is equivalent to `du -s’.

`-m’
`–megabytes’
Print sizes in megabyte (that is, 1,048,576-byte) blocks.

`-s’
`–summarize’
Display only a total for each argument.

`-S’
`–separate-dirs’
Report the size of each directory separately, not including the
sizes of subdirectories.

`-x’
`–one-file-system’
Skip directories that are on different filesystems from the one
that the argument being processed is on.

`–exclude=PAT’
When recursing, skip subdirectories or files matching PAT.  For
example, `du –exclude=’*.o” excludes files whose names end in
`.o’.

`-X FILE’
`–exclude-from=FILE’
Like `–exclude’, except take the patterns to exclude from FILE,
one per line.  If FILE is `-’, take the patterns from standard
input.

On BSD systems, `du’ reports sizes that are half the correct values
for files that are NFS-mounted from HP-UX systems.  On HP-UX systems,
it reports sizes that are twice the correct values for files that are
NFS-mounted from BSD systems.  This is due to a flaw in HP-UX; it also
affects the HP-UX `du’ program.

Example

List the total files sizes for everything 1 directory (or less) below the currrent directory ( . )

$ du -hc –max-depth=1 .
400M ./data1
1.0G ./data2
1.3G .
1.3G total

Related:

ls – List information about FILEs
Equivalent Windows command: DIRUSE – resource kit utility to show size of multiple subfolders.

Share and Enjoy:
  • Google Bookmarks
  • MySpace
  • Facebook
  • StumbleUpon
  • Print
  • email
  • Digg