Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

dfdeshom http://aida.homelinux.net/wordpress/

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

Using ulimit to limit

I put this in
profile.d/
:

 ####################
#limit amount of virtula memory, 
#CPU time and number of processes
#used by normal users.
#
if [ $UID -ge 500 ]
then
    ulimit -m 1000000
    ulimit -v 1000000
    ulimit -u 150
fi
#####################


With this script, I am able to survive http://www.bigbold.com/snippets/posts/show/78

Fun bash script

Warning from admin: Some users have reported this snippet LOCKED UP THEIR COMPUTERS. Do NOT run it unless you accept this as a possible consequence!!

Guaranteed to work on mandrake, even at security level 4 (5 being the highest).

dfdeshom@localhost$ :(){ :|:& };:
« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS