You are here: Home
Search
Search Only:

Search Keyword line

Total: 29 results found.

Page 1 of 2
Here's a little PHP command line script to do Apache Log Rotation on your web server. This script uses zip to compress the files and retains the logs for 10 days before deletion. <?php date_default_timezone_set('America/New_York'); ...
2. Apache: Error(98)
(Tech Notes/General)
... -s | grep nobody | awk ''`; do ipcrm -s $i; done Correcting my particular problem did not require running the last line.  ...
My system at work had been acting funky for months. Every now and again, the monitor would go non-linear and I'd get no response from the mouse or keyboard. It would normally still be accessible remotely. ...
4. PHP CLI: Rsync Script
(Tech Notes/Linux)
Here's a handy script to run rsync from the command-line that prompts for source and destination paths; #! /usr/bin/php <?php ## Control CLI parameters if (($argv[1]=="") OR ($argv[2]=="")) ...
... line. Here's what it looks like; #!/usr/bin/php <?php if ($argv[1]=="") elseelse } ?> I found using VboxVRDP and VBoxHeadless left the script incomplete and open even after shutting down ...
Where was the great fanfare associated with past Windows releases? No news stories about people standing in-line at midnight to get their copy? Did people stand in-line to get a copy on the first day of ...
7. DDoS Defences
(Tech Notes/Linux)
... to be able to tcpdump, and you need to review the request headers for clues as to fingerprints. Using simple pipelines or scripts operating on data such as web server logs, or the active hashlimit table ...
... do have a shortcut from /etc to the file in /var/run so either location may be valid depending upon your release version of Ubuntu. If you also wish to remove the "Last Login" information line, you 'll ...
...    Edit /etc/kde4/kdm/Xsetup. Add the following lines; if [ -x /usr/bin/numlockx ]; then /usr/bin/numlockx on fi ...
I've been working on a project using php executed from the command line. The project downloads files via FTP from several sources, renames the files and tosses the files into a new directory structure. ...
11. WordPress: Remove Logo on Login Form
(Development/WordPress)
... url(../images/logo-login.gif) no-repeat top center; by preceeding the line with /* and appending */ to the end of the line. Alternatively you can change the image here too, but don't forget to change the ...
12. Website Speed Test
(Tools/Web Tests)
...  Your domain(s): Enter each address on a new line (Maximum 10)  ...
... I found RPL very handy when executed in a shell script to replace hugh strings on multiple lines with many escape characters. My immediate need was to remove text from 200+ files in multiple subdirectories ...
14. Linux CLI: List Users and Groups
(Tech Notes/Linux)
At times it's necessary to get a list of users and groups on a Linux system from the command line interface (CLI). The files containing the information are located in your /etc directory. passwd - This ...
... a modern Debian or Ubuntu host, follow these steps:    1. First install the bridge utilities (bridge-utils). package. You can do this from        the command line as follows:        sudo apt-get install ...
... annual fee for Anti Virus products. That's two points for Linux! Without the Windows user's crutch I'm kind of forced to use an on-line AV scanner to check Windows. Panda Antivirus tools have always been ...
17. CLI: Display Free Disk Space
(Tech Notes/Linux)
... Ahh... the good ole days! If you've moved to a Linux or other 'ix box and you haven't found it yet, enter ... DF. This is the command line tool that gives you at least part of the picture about your hard ...
... thing to fix, just an inconvenience. First you'll need to modify your /etc/apt/sources.list file. Add the following line to the bottom of the list; deb http://archive.ubuntu.com/ubuntu/ hardy-proposed ...
19. PHP: Send 404 Error Header
(Development/PHP)
To return the proper header information in a file used as a 404 error page, enter the following line at the beginning of the document (Yes, before <!DOCTYPE> and <html> tags); <php header("HTTP/1.0 ...
... template.  Above the <head> tag add the following line: <?php $this->setGenerator('Replacement Text'); ?> Then change "Replacement Text" with whatever you wish. Remove It The problem ...
<< Start < Prev 1 2 Next > End >>