|
Linux
|
|
Written by Websmurf
|
|
Thursday, 16 September 2010 |
|
If your apache server is slow and you believe it might be subject of a DoS attack, netstat is a good tool to check if this is true.
The following command will list all ipadresses with connections to your server and show how many connections are active at this point.
netstat -nap|grep \:80 | grep ESTA | awk '{print $5 }' | cut -d':' -f1 | sort | uniq -c
There are 0 comments for this article. Click here to add a comment |
|
|
Linux
|
|
Written by Websmurf
|
|
Thursday, 16 September 2010 |
|
Rsync is a great tool to easily syncronise a folder on one server with another folder on another server.
Simply type on your command line:
rsync -r -a -v -e "ssh -l root" --delete /home/mysite/www/ 192.168.1.51:/home/mysite/www/
After entering this command, the server will ask you for a password for the root user on the second server. Enter this and your good to go.
For a complete reference of these parameters, see: http://linux.about.com/library/cmd/blcmdl1_rsync.htm
There are 0 comments for this article. Click here to add a comment |
|
|
Linux
|
|
Written by Websmurf
|
|
Monday, 25 May 2009 |
|
If you are getting the following error:
ffmpeg: error while loading shared libraries: libxvidcore.so.4: cannot enable executable stack as shared object requires: Permission denied
While trying to execute FFmpeg and running selinux on debian, do the following to solve:
chpax -p /usr/bin/ffmpeg
There are 5 comments for this article. Click here to add a comment |
|
|
JavaScript
|
|
Written by Websmurf
|
|
Saturday, 22 March 2008 |
|
It took me quite a while to figure this out, so here is a solution for anyone who finds it useful :)
If you are running Jquery in noConflict mode, the Thickbox script will not work anymore. Now, there are two solutions.. I'll leave it up to you which you like best.
The first is to place this in your head section:
(function($) {
$(function() {
// content of Thickbox script
});
})(jQuery);
It won't be possible to use the tb_init function and others because they are executed within the function. Which can be quite annoying if you're combining the output of ajax with Thickbox.
Another solution is, to open the uncompressed version of Thickbox, and to replace all occurrences of $ with jQuery or the prefix you are using.
Then you will be able to use the normal functionality of Thickbox..
It will take up a bit more space though...
There are 3 comments for this article. Click here to add a comment |
|
Last Updated ( Saturday, 22 March 2008 )
|
|
|
|
<< Start < Prev 1 2 Next > End >>
|
| Results 1 - 9 of 17 |