This file contains 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//bin/env ruby | |
################################# | |
# ora_info.rb | |
# Sean Stephenson | |
# 2010-05-05 | |
# a script that tells you the path of: | |
# > table space names [-t] | |
# > redo log files [-r] | |
# > control files [-c] |
This file contains 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/bin/expect -f | |
spawn ssh USER@DOMAIN | |
expect "*?assword:*" | |
send -- "PASSWORD\r" | |
send -- "\r" |
This file contains 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//bin/env ruby | |
# groupFile.rb | |
# Sean Stephenson | |
# parses /etc/group file | |
/******************* getGroupFile *********************/ | |
def getGroupFile | |
groupFile = `/usr/local/bin/rcopy.rb -q -r /etc/group` | |
return true if groupFile == "" |
This file contains 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//bin/env ruby | |
# ora_acct_mgr.rb | |
# Sean Stephenson | |
# creates and deletes accounts on Oracle | |
require 'groupFile' | |
getGroupFile |
This file contains 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 | |
#list.rb | |
#Sean Stephenson | |
#2009-09-24 | |
#CS 177 | |
#takes as input a file and options to display | |
#specific lines and [correspding line number] | |
### usage ### |
This file contains 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
<h3><a href="#" class="toggleLink">Computers</a></h3> | |
<ul class="toggle"> | |
<li>Laptops</li> | |
<li>Desktops</li> | |
<li>Servers</li> | |
</ul> |
This file contains 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
//jquery.toggle.list.js | |
jQuery(document).ready(function() { | |
// hide all of the elements with a class of 'toggle' | |
jQuery('.toggle').hide(); | |
// clicking .toggleLink element will show the | |
// child elements with the class of .toggle | |
jQuery('a.toggleLink').click(function() { | |
jQuery(this).parent().next('.toggle').toggle('slow'); |
This file contains 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//bin/env ruby | |
################################################################################## | |
# | |
# Program Name: showParams.rb | |
# Author: Sean Stephenson | |
# Course: CS151B | |
# Date: 2010-02-21 | |
# | |
# showParams.rb will do the followings: |
This file contains 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//bin/env ruby | |
################################################################################ | |
# | |
# Program Name: Show_Oracle_Users.rb | |
# Author: Sean Stephenson | |
# Course: CS151B | |
# Date: 2010-02-07 | |
# Adapted From: oracle_in_ruby.rb AND ShowTables (both by Abbas) | |
# |
This file contains 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 | |
#smsloadfile.rb | |
#2010-01-06 | |
#builds Concordance load file | |
inFile = File.new('input.txt') | |
k = 0 | |
a = Array.new | |
while(str = inFile.gets) | |
a[k] = str | |
k += 1 |
NewerOlder