Loading

.bashrc

  1. export TZ="/usr/share/zoneinfo/America/Chicago"
  2. export LC_ALL=en_US.UTF-8
  3. export LANG=en_US.UTF-8
  4. export LANGUAGE=en_US.UTF-8

motd

  1. #!/bin/bash
  2.  
  3. MYNAME=`whoami`
  4. TOTALPROC=`ps -Afl | wc -l`
  5. PROCCOUNT=`ps -flu $MYNAME | wc -l`

uptime.py

  1. #!/usr/bin/python
  2. import os
  3.  
  4. #----------------------------------------
  5. # Gives a human-readable uptime string

ps_mem.py

  1. #!/usr/bin/env python
  2.  
  3.  
  4. # Try to determine how much RAM is currently being used per program.
  5. # Note the per program, not per process. So for example this script

iptables rules to remembe

  1. iptables -A INPUT -m iprange --src-range 118.1.1.1-118.255.255.255 -j DROP
  2.  
  3. iptables -I INPUT -s 1.1.1.1 -j DROP
  4.  
  5. iptables -I INPUT -s 1.1.1.1 -j ACCEPT

6to4 IPv6 tunnel

  1. #!/bin/bash
  2. #
  3. # Configures the 6to4 address based on the ip address of the interface to which
  4. # the default route points.
  5. # Parameter 1: action (start, stop, restart)

eval script

  1. ; Goes in Remotes. (ALT+R)
  2. ; Usage: /eval $serverip (echos privately)
  3. ;        /eval -o $serverip (msgs to the current channel)
  4.  
  5. alias eval {

Server notice script

  1. ; Useful mIRC script for opers. Send snotices to separate @windows
  2. on $^*:Snotice:/(\S+)\s\((\S+)\)\sdid\sa\s.whois\son\syou/Si:{
  3.   if (!$window($($+(@whois.,$network),2))) { window -ne $($+(@whois.,$network),2) }
  4.   ; echo -sgt 4Whois -> 12[11 $+ $network $+ 12:11 $+ $+($regml(1),!,$regml(2)) $+ 12]
  5.   aline -pa $($+(@whois.,$network),2) 12( $+ $snoticets $+ 12) $1-

Whatpulse alias

  1. ; Whatpulse alias by Joshua
  2. ; wpuser script created using Chessnut's Simple Socket Script Creator
  3. ; Instructions: Replace "YOURWHATPULSEID" with your Whatpulse ID number.
  4.  
  5. alias -l logo { return $+($chr(03),14,$chr(91),$chr(03),11,$1-,$chr(93),$chr(03)) }

power alias

  1. power {
  2.   var %x = 1, %i = 1, %z = 1
  3.   var %Owncount = 0, %Acount = 0, %Ocount = 0, %Hcount = 0, %Vcount = 0, %chancount = 0, %infcount = 0, %usercount = 0
  4.   while (%i <= $scon(0)) {
  5.     scon %i {

ULX Model

  1. local t = {
  2.         "models/player/alyx.mdl",
  3.         "models/player/breen.mdl",
  4.         "models/player/barney.mdl",
  5.         "models/player/eli.mdl",