This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/ruby1.9 -w | |
| # class possesing eight methods to provide | |
| # information about the physical system: | |
| # (1) mem_size | |
| # (2) cpu_nums | |
| # (3) cpu_vendor | |
| # (4) cpu_model | |
| # (5) cpu_speed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/ruby1.9 -w | |
| # mySys.rb | |
| # Sean Stephenson | |
| # CS 177 | |
| # 2009-12-17 | |
| # provides info re my computer, dude | |
| require 'computer' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/ruby1.9 -w | |
| # findReplace.rb | |
| ##################################### | |
| # # | |
| # searches files in specified # | |
| # path for specific string # | |
| # and then replaces that string # | |
| # # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ECHO OFF | |
| FOR %%c in (*.pdf*) DO echo %CD%\%%c,%%c >> _IMPORT_LIST.txt | |
| ECHO ON |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/ruby1.9 -w | |
| # | |
| # server | |
| # web | |
| # | |
| # Created by GlenC on 2009-10-31. | |
| # Copyright 2009 glenc.com. All rights reserved. | |
| # Modified by SMS420 on 2009-11-04 dude | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # dedupe.rb | |
| # Sean Stephenson | |
| # 2009-10-20 | |
| ################################# | |
| # # | |
| # takes one file as input. # | |
| # reads a line and writes # | |
| # this line to output file # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #wiki_to_html.sh | |
| #converts wiki formatted doc to html | |
| find . -name "*.html" -exec sed -i 's/\[\[/\<a href="/g' '{}' \; | |
| find . -name "*.html" -exec sed -i 's/|/.html">/g' '{}' \; | |
| find . -name "*.html" -exec sed -i 's/\]\]/\<\/a\>/g' '{}' \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #wiki_to_html.sh | |
| #converts wiki formatted doc to html | |
| find ./ -name '*.txt' -print | while read i | |
| do | |
| sed 's/\[\[/\<a href="/g' $i >$i.bak && mv $i.bak $i | |
| sed 's/|/">/g' $i >$i.bak && mv $i.bak $i | |
| sed 's/\]\]/\<\/a\>/g' $i >$i.bak && mv $i.bak $i | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| find ./ -name '*.txt' -print | while read i | |
| do | |
| sed '1i\ | |
| LINE ZERO DUDE' $i >$i.bak && mv $i.bak $i | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # de_dupe.rb | |
| # Sean (2009-08-25) | |
| # reads line of data from parent.txt | |
| # which is a super set of child.txt | |
| # and outputs all lines of parent | |
| # file not found in the child file | |
| # WORD OF CAUTION: MAKE SURE THAT | |
| # BOTH PARENT AND CHILD TEXT FILES | |
| # ARE CONSISTENT WITH HAVING OR NOT |