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
   1  profile.d/
:

   1   ####################
   2  #limit amount of virtula memory, 
   3  #CPU time and number of processes
   4  #used by normal users.
   5  #
   6  if [ $UID -ge 500 ]
   7  then
   8      ulimit -m 1000000
   9      ulimit -v 1000000
  10      ulimit -u 150
  11  fi
  12  #####################


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).

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