Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Krazed

Pages: 1 [2] 3 4 ... 7
16
iago's forum / Computer/Networking/Security Books!
« on: March 08, 2008, 10:29:12 am »
What do you recommend?  :)

18
Blizzard, WoW and Bots / Maelstrom [H]
« on: January 10, 2008, 05:10:24 pm »
Name Race Class Owner
Ametus Troll Shaman krazed
Therogue Undead Rogue warz
Holasmus Undead Warrior sniffer
Menac Undead Warlock furious
Mortid Undead Mage warrior
Sedanis Blood Elf Priest joe
Thewarlock Blood Elf Warlock warz


(Sorted Alphabetically by Character Names)

19
Entertainment District / Awake
« on: December 19, 2007, 01:26:44 pm »
Great movie. Plot was real good.

8/10 - Definitely go see it.

20
General Discussion / Battle.net
« on: December 05, 2007, 11:24:28 am »
Anyone still there?

21
Unix / Linux Discussion / Shell scripting
« on: August 29, 2007, 10:09:20 am »
I wrote this back in May of '05, and I've recently got back into linux/unix, and figured I'd get back into shell scripting.


Quote
I've recently, (today) gotten into shell scripting. I've written four scripts today, I'll post them here and let you guys discuss them.

We'll start with helloworld.sh.

Code:

Code: [Select]
#!/bin/bash

echo "Hello world bash script!"
echo "Writen by krazed of x86!"
echo "The first of many. :P"

#this script is pointless, shush.
#what directory are we in!?

pwd

#what's in this directory!?

ls

#and, what's the uptime on this boxs?

uptime

#how about the processes being ran?

ps -aux

#Okay, that's all for today, 'folks.
#Written by krazed of x86.
#E-Mail: krazedx86@gmail.com
#AIM: krazedx86


This is called cmdlisting.sh. It takes the contents of the command directorys and lists them into four different .txt files.

Code:

Code: [Select]
#!/bin/bash

echo "Command listing bash script."
echo "Purpose: Copy your command lists to three different text files."

# First, we start off with /usr/bin, the default commands.

ls /usr/bin > defaultcommands.txt
echo "Contents of /usr/bin written to defaultcommands.txt"
echo " "

# Okay, now we have copied the contents of /usr/bin into the file defaultcommands.txt, Next!
# Now, time for /bin, the system commands.

ls /bin > systemcommands.txt
echo "Contents of /bin written to systemcommands.txt"
echo " "

# Okay, contents of /bin are now in systemcommands.txt
# Let's move on to /usr/X11/bin, the X windows programs.

ls /usr/X11/bin > xwincommands.txt
echo "Contents of /usr/X11/bin written to xwincommands.txt"
echo " "

# Alright, last but not least, let's list your installed programs. /usr/local/bin

ls /usr/local/bin > installedprograms.txt
echo "Contents of /usr/local/bin written to installedprograms.txt"
echo " "
echo "Script executed, no errors, not bad for my second script ever, eh?"

# Okay, that's the script for yah.
# It's not too bad for my second script ever.
# This script written by krazed of the x86 crew.
# We're on IRC at irc.tehnetwork.org:6667 #x86.
# E-Mail: krazedx86@gmail.com AIM: krazedx86


And, this is the third one. This one is actually pretty nifty, it's me experimenting with ANSI color codes, and scripting in color.

Code:

Code: [Select]
#!/bin/bash

# A small shell script written so I could fuck around
# and get the hang of coding with colors in shell scripts.

# A full list of all the ANSI color codes.
#1m     -     Change text to hicolour (bold) mode
#4m     -        "    "   "  Underline (doesn't seem to work)
#5m     -        "    "   "  BLINK!!
#8m     -        "    "   "  Hidden (same colour as bg)
#30m    -        "    "   "  Black
#31m    -        "    "   "  Red
#32m    -        "    "   "  Green
#33m    -        "    "   "  Yellow
#34m    -        "    "   "  Blue
#35m    -        "    "   "  Magenta
#36m    -        "    "   "  Cyan
#37m    -        "    "   "  White
#40m    -     Change Background to Black
#41m    -        "       "      "  Red
#42m    -        "       "      "  Green
#43m    -        "       "      "  Yellow
#44m    -        "       "      "  Blue
#45m    -        "       "      "  Magenta
#46m    -        "       "      "  Cyan
#47m    -        "       "      "  White
#49m    -        "       "      "  Default background
#7m     -     Change to Black text on a White bg
#0m     -     Turn off all attributes.

echo -e "\x1B[34;49m This is blue text on default background."
echo -e "\x1B[32;49m This is green text on default background."
echo -e "\x1B[37;42m This is white text on green background."

# This script written by krazed of the x86 crew.
# We're on IRC at irc.tehnetwork.org:6667 #x86.
# E-Mail: krazedx86@gmail.com AIM: krazedx86


I re-wrote cmdlisting.sh so I could practice getting color codes down. So here it is, the new and improved, cmdlistingv2.

Code:

Code: [Select]
#!/bin/bash

echo -e "\x1B[34;49m" "Command listing bash script, version2. Rewritten 05/22/05."
echo -e "\x1B[34;49m" "Purpose: Copy your command lists to four different text files."
echo " "

# First, we start off with /usr/bin, the default commands.

ls /usr/bin > defaultcommands.txt
echo -e "\x1B[31;49m" "Contents of /usr/bin written to defaultcommands.txt"
echo " "

# Okay, now we have copied the contents of /usr/bin into the file defaultcommands.txt, Next!
# Now, time for /bin, the system commands.

ls /bin > systemcommands.txt
echo -e "\x1B[31;49m" "Contents of /bin written to systemcommands.txt"
echo " "

# Okay, contents of /bin are now in systemcommands.txt
# Let's move on to /usr/X11/bin, the X windows programs.

ls /usr/X11/bin > xwincommands.txt
echo -e "\x1B[31;49m" "Contents of /usr/X11/bin written to xwincommands.txt"
echo " "

# Alright, last but not least, let's list your installed programs. /usr/local/bin

ls /usr/local/bin > installedprograms.txt
echo -e "\x1B[31;49m" "Contents of /usr/local/bin written to installedprograms.txt"
echo " "
echo -e "\x1B[34;49m" "Script executed."
echo -e "\x1B[0m"

# Okay, that's the script for yah.
# This script written by krazed of the x86 crew.
# Script rewritten so I could fuck with color codes.
# We're on IRC at irc.tehnetwork.org:6667 #x86.
# E-Mail: krazedx86@gmail.com

22
- Motherboard: http://www.newegg.com/Product/Product.aspx?Item=N82E16813128321 $80
- Processor: http://www.newegg.com/Product/Product.aspx?Item=N82E16819103778 $130
- RAM (1GB): http://www.newegg.com/Product/Product.aspx?Item=N82E16820231085 $50
- Video Card: http://www.newegg.com/Product/Product.aspx?Item=N82E16814133172 $125
- Case: http://www.newegg.com/Product/Product.aspx?Item=N82E16811208009 $40
- Power Supply: http://www.newegg.com/Product/Product.aspx?Item=N82E16817182006 $25
- Keyboard: http://www.newegg.com/Product/Product.asp?Item=N82E16823174010 $5
- Mouse: http://www.newegg.com/Product/Product.asp?Item=N82E16826105026 $15


- Total: $470

Yeah, I posted this in my forum, but not everyone reads there and can comment.  :P What do you guys think? I have a stick of RAM and a power supply that didn't work, so I figure I'll send them back and get another one or two sticks of 1GB G.SKILL RAM.

23
General Discussion / I need frontpage...
« on: April 11, 2007, 08:42:16 pm »
Hook me up.  :)

24
General Discussion / Happy Easter!
« on: April 08, 2007, 12:13:43 am »
Yep.

And if you live in a timezone other than EST, get over it.  :)

25
Graphics / I need a banner...
« on: April 04, 2007, 12:55:36 pm »


Looks exactly like that, just without the actual car and windshield and shit in the background, I'd really appreciate anyone who works on it.

26
General Discussion / I need..
« on: April 01, 2007, 06:47:17 pm »
video editing software. Yea, I'm looking to put together a video for my carclub (www.stricklystreet.org). So yeah, hook me up. PMs are nice. =)

27
Blizzard, WoW and Bots / Quit wow.
« on: March 15, 2007, 09:29:47 pm »
Account sold. End of story. =)

28
Blizzard, WoW and Bots / Gear I'm getting my twink warrior (29)
« on: March 05, 2007, 10:20:00 am »
Algae Fists (BOP) (Gelihast - Blackfathom Deeps) lvl23
132 Armor - Hands

+10str
+4stam

Caverndeep Trudgers (BOE) lvl29
154 Armor - Feet

+5str
+4agi
+10stam

Frostreaver Crown (BOE) lvl27
182 Armor - Head
+4str
+15stam
+4spi

Avenger's Armor (BOE) lvl26
221 Armor - Chest
+15str
+6stam

Pugilist Bracers (BOE) lvl25
95 Armor - Wrist
+8str
+3stam

Sparkleshell Mantle (BOE) lvl24
161 Armor - Shoulder
+4agi
+10stam


River Pride Choker (BOE) lvl28
Neck
+4str
+9stam

Dreamsinger Legguards (BOE) lvl21
179 Armor - Legs
+8str
+8stam
+4spi

Silverlaine's Family Seal (BOP) (Baron Silverlaine - Shadowfang Keep) lvl21
Finger
+7str
+3stam

Nightstalker Boe (BOP) (Blind Hunter - Razorfen Kraul) lvl27
Bow
+3agi (20.3 dps)

Corpsemaker (BOP) (Overlord Ramtusk - Razorfen Kraul) lvl29
Two-Hand Axe
+15str
+8stam (28.9dps)



Updated: Bold = What I have so far.

29
Blizzard, WoW and Bots / Can't open WoW....
« on: February 26, 2007, 03:39:07 pm »
Program:   C:\Program Files\World of Warcraft\WoW.exe
Exception:   0xC0000005 (ACCESS_VIOLATION) at 001B:0068FB85

The instruction at "0x0068FB85" referenced memory at "0x00000054".
The memory could not be "read".

30
General Discussion / Thinking about buying this monitor...
« on: February 06, 2007, 09:32:15 am »
http://www.newegg.com/Product/Product.asp?Item=N82E16824005075

Discuss. =) Thoughts, Like/Dislike?

19" is pretty awesome, I'm not really a fan of widescreen. Donno why. Contrast 1500:1 is awesome, great resoloutions. Brightness = Love.

Upgrade from http://www.unicomplabs.com/Lcd/sampo_pd-70fa2.asp.

Pages: 1 [2] 3 4 ... 7