Category: Misc

Pages: 1 2 3 4 >>

12/11/09

Permalink 05:26:35 am, by admin Email , 14 words   English (US)
Categories: Misc

Compress Whitespace With tr Shell Command

To replace all whitespace with single spaces pipe the text through:

tr -s [[:space:]] " "

06/17/09

Permalink 05:59:31 am, by admin Email , 30 words   English (US)
Categories: Misc

MS-SQL 2000 : Truncate transaction log

Execute the following commands:

DBCC SHRINKFILE(pubs_log, 2)
BACKUP LOG pubs WITH TRUNCATE_ONLY
DBCC SHRINKFILE(pubs_log,2)

This will reduce the transaction log for the "pubs" database to 2MB.

05/11/09

Permalink 09:21:45 am, by admin Email , 29 words   English (US)
Categories: Misc

Making Plesk More PCI Complient

Here's a great article that describes some of the things that can be done to make a plesk server pass PCI compliance scans:

http://www.linux-advocacy.org/web-servers/making-plesk-more-pci-compliant

05/06/09

Permalink 04:53:53 am, by admin Email , 76 words   English (US)
Categories: Misc

Exclude Directroy From CPanel Backup

Create cpbackup-exclude.conf in the user's home directory (/home/user-id) to exclude files from a cPanel backup. This file is only used if you make a complete site back up from cPanel. Here are the basic rules for the content of the file:

  • Each item to skip must be on it’s only line in the file.
  • Directories should not have a trailing slash.
  • Each entry must have the full path to the file or directory.

03/26/09

Permalink 01:01:58 pm, by admin Email , 22 words   English (US)
Categories: Misc

Here Doc

A "here document" is a method for specifying a multi-line string literal in many programming languages. Here are some examples:

Perl
print <<"END";

MULTIPLE LINES OF TEXT HERE

END

PHP
echo <<<EOF

MULTIPLE LINES OF TEXT HERE

EOF;

Bash
cat << EOF

MULTIPLE LINES OF TEXT HERE

EOF

1 2 3 4 >>

July 2010
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Reliable Penguin offers Linux Server Migrations, Systems Administration & Programming. Visit our main website at:

http://www.reliablepenguin.com

Search

Bookmark and Share

XML Feeds

powered by b2evolution