From 081c7933b863d9340d16c30e14aa52364281d68f Mon Sep 17 00:00:00 2001 From: JJ Asghar Date: Wed, 13 Jun 2012 14:18:18 -0500 Subject: [PATCH] Initial commit --- .hg/00changelog.i | Bin 0 -> 57 bytes .hg/branch | 1 + .hg/cache/branchheads | 2 + .hg/cache/tags | 2 + .hg/dirstate | Bin 0 -> 646 bytes .hg/last-message.txt | 4 ++ .hg/requires | 4 ++ .hg/store/00changelog.i | Bin 0 -> 999 bytes .hg/store/00manifest.i | Bin 0 -> 1143 bytes .hg/store/data/apache.txt.i | Bin 0 -> 300 bytes ...kboard__convert__for__course__exports.sh.i | Bin 0 -> 673 bytes .hg/store/data/catalina__bb__logs__pull.sh.i | Bin 0 -> 440 bytes .hg/store/data/foo__out.txt.i | Bin 0 -> 111 bytes .hg/store/data/new__pysysinfo.py.i | Bin 0 -> 291 bytes .hg/store/data/pull__bb__logs.sh.i | Bin 0 -> 705 bytes .hg/store/data/py__kill__all__by__user.py.i | Bin 0 -> 440 bytes .hg/store/data/py__sys__sdtin__readline.py.i | Bin 0 -> 196 bytes .../py__wrapper__around__xmlconversion.py.i | Bin 0 -> 685 bytes .hg/store/data/pyls.py.i | Bin 0 -> 153 bytes .hg/store/data/pysysinfo.py.i | Bin 0 -> 306 bytes .hg/store/data/pysysinfo.pyc.i | Bin 0 -> 372 bytes .hg/store/data/pysysinfo__fuction.py.i | Bin 0 -> 279 bytes .hg/store/data/pysysinfo__fuction.pyc.i | Bin 0 -> 471 bytes .hg/store/data/redirect1.py.i | Bin 0 -> 219 bytes .hg/store/data/ssh-copy-id.sh.i | Bin 0 -> 866 bytes .hg/store/data/writelines__outfile.txt.i | Bin 0 -> 85 bytes .hg/store/fncache | 17 ++++++ .hg/store/phaseroots | 1 + .hg/store/undo | Bin 0 -> 96 bytes .hg/store/undo.phaseroots | 1 + .hg/undo.bookmarks | 0 .hg/undo.branch | 1 + .hg/undo.desc | 2 + .hg/undo.dirstate | Bin 0 -> 646 bytes EUD_ITEM_prune_sp8upgrade.sql | 31 ++++++++++ README | 0 apache.txt | 23 +++++++ blackboard_convert_for_course_exports.sh | 23 +++++++ catalina_bb_logs_pull.sh | 46 ++++++++++++++ create_vm_tmp.sh | 49 +++++++++++++++ foo_out.txt | 2 + length.sh | 13 ++++ new_pysysinfo.py | 21 +++++++ nuke_vm_tmp.sh | 12 ++++ pull_bb_logs.sh | 54 +++++++++++++++++ py_kill_all_by_user.py | 36 +++++++++++ py_sys_sdtin_readline.py | 11 ++++ py_wrapper_around_xmlconversion.py | 34 +++++++++++ pyls.py | 6 ++ pysysinfo.py | 19 ++++++ pysysinfo.pyc | Bin 0 -> 489 bytes pysysinfo_fuction.py | 25 ++++++++ pysysinfo_fuction.pyc | Bin 0 -> 959 bytes redirect1.py | 11 ++++ ssh-copy-id.sh | 56 ++++++++++++++++++ tmp_ubuntu_build.sh | 9 +++ writelines_outfile.txt | 10 ++++ 57 files changed, 526 insertions(+) create mode 100644 .hg/00changelog.i create mode 100644 .hg/branch create mode 100644 .hg/cache/branchheads create mode 100644 .hg/cache/tags create mode 100644 .hg/dirstate create mode 100644 .hg/last-message.txt create mode 100644 .hg/requires create mode 100644 .hg/store/00changelog.i create mode 100644 .hg/store/00manifest.i create mode 100644 .hg/store/data/apache.txt.i create mode 100644 .hg/store/data/blackboard__convert__for__course__exports.sh.i create mode 100644 .hg/store/data/catalina__bb__logs__pull.sh.i create mode 100644 .hg/store/data/foo__out.txt.i create mode 100644 .hg/store/data/new__pysysinfo.py.i create mode 100644 .hg/store/data/pull__bb__logs.sh.i create mode 100644 .hg/store/data/py__kill__all__by__user.py.i create mode 100644 .hg/store/data/py__sys__sdtin__readline.py.i create mode 100644 .hg/store/data/py__wrapper__around__xmlconversion.py.i create mode 100644 .hg/store/data/pyls.py.i create mode 100644 .hg/store/data/pysysinfo.py.i create mode 100644 .hg/store/data/pysysinfo.pyc.i create mode 100644 .hg/store/data/pysysinfo__fuction.py.i create mode 100644 .hg/store/data/pysysinfo__fuction.pyc.i create mode 100644 .hg/store/data/redirect1.py.i create mode 100644 .hg/store/data/ssh-copy-id.sh.i create mode 100644 .hg/store/data/writelines__outfile.txt.i create mode 100644 .hg/store/fncache create mode 100644 .hg/store/phaseroots create mode 100644 .hg/store/undo create mode 100644 .hg/store/undo.phaseroots create mode 100644 .hg/undo.bookmarks create mode 100644 .hg/undo.branch create mode 100644 .hg/undo.desc create mode 100644 .hg/undo.dirstate create mode 100644 EUD_ITEM_prune_sp8upgrade.sql create mode 100644 README create mode 100644 apache.txt create mode 100755 blackboard_convert_for_course_exports.sh create mode 100755 catalina_bb_logs_pull.sh create mode 100755 create_vm_tmp.sh create mode 100644 foo_out.txt create mode 100755 length.sh create mode 100755 new_pysysinfo.py create mode 100755 nuke_vm_tmp.sh create mode 100755 pull_bb_logs.sh create mode 100755 py_kill_all_by_user.py create mode 100755 py_sys_sdtin_readline.py create mode 100755 py_wrapper_around_xmlconversion.py create mode 100755 pyls.py create mode 100755 pysysinfo.py create mode 100644 pysysinfo.pyc create mode 100755 pysysinfo_fuction.py create mode 100644 pysysinfo_fuction.pyc create mode 100755 redirect1.py create mode 100755 ssh-copy-id.sh create mode 100644 tmp_ubuntu_build.sh create mode 100644 writelines_outfile.txt diff --git a/.hg/00changelog.i b/.hg/00changelog.i new file mode 100644 index 0000000000000000000000000000000000000000..d3a8311050e54c57c5be7cfe169e60a95768812c GIT binary patch literal 57 zcmWN_K?=Yi3Tdx7RQ!cZrfupVP==|8njpcoo$z3aMud9n5Z zvgHlBxM*^hJDJ29<23YACtZ`55Zi{V{+OUylPg!9*XLj#KhpVqljELL3ORj2j;Ry2 z#NLv*_mE#~5_a#V9^sXfGsv2sh`N1ERT69wMt>HHP6I2wP%;q?b?RfOMAr{}sWEd7 z<1anJmO}11Q5=H+mELt|Ql-k+WU2NOvbG`c&UCYDD=m2aa#C2aB9c~wzE_2AeuMGX z4i(#li>JWYV>53 z^95HpvrPBgQLv@0`DebfYXV~xiyc$ TpRN!v=Ul%NYLj literal 0 HcmV?d00001 diff --git a/.hg/last-message.txt b/.hg/last-message.txt new file mode 100644 index 0000000..4fd3d09 --- /dev/null +++ b/.hg/last-message.txt @@ -0,0 +1,4 @@ + +Added catalina_log_pull + + diff --git a/.hg/requires b/.hg/requires new file mode 100644 index 0000000..c1674f2 --- /dev/null +++ b/.hg/requires @@ -0,0 +1,4 @@ +revlogv1 +fncache +store +dotencode diff --git a/.hg/store/00changelog.i b/.hg/store/00changelog.i new file mode 100644 index 0000000000000000000000000000000000000000..555976be3afc710289e7e642adaf91105169e577 GIT binary patch literal 999 zcmZQzWME`~fPV}OjAc+Z!+$8qlKQaydW^o@a@SH7$DP`9L$`lZgQ)@06>~!UZ|5CW z;HiDCedD*3=)|W=zL&r4@cPa6q#-hc(?#OillRxROx|S|VP|Kzt$%Cf#6^e8US#Rc zz81k*d)@rdmqXW_zKH$0W!9U}&isGDdqJUkTe*i__q>m>u5b#zH)F!4X`5Exp4OeW z|Gx1I$Nq??s+$is+wlrc3bbmI_ldkYLvM$QQ|oD&;ALHIX~`iQpS%t@uz6N^)Jaz9 z)s?BASNWZ*W}Pk(7Rqs1zE)7v=qBq_fu3^4d|vOacdr`eK=i<$y9~6GNXStcY zE17eBuJP>4#YK|ay|+kiJ9pnMb^gKB4>89xi+;{bH&;AAvARX%hxn@ynIFsJtNyed z28RSN+<;&)5FY_zP-ucf6cm8@FMHipXTN1Twy^L5)1y^&tRKs2fbwuqF-Nw;k*~=> zfZ=`ZQM&^IUXIyGJ#jx-Zf@&dE3|62YsJ1Jr_ZF!T4#ErWZkwWW!uuNe{IfuVe#tn zjaIkl>^{HhtKSQzySucV{@nS0mu{=sl&(WXp|@sS+fo`EeW7f6k?^nSr%xn)sQf21 zJ@L$*?}wb2bKjqF)#~)R>%4$LRVc;HUhqVE)1?3IHp|N`85XKMs(r|leT0cKOoYSo zY`?s3uR|ipt&9u7EjC~3;7+{1fH`@N0)lDS82Twjq>5$^WO;N9UPzdpKuzg^3v$)EI~$f99}#q%|D zo<~NneqOU?cU4mA)o`Pw3YpG7=j{0xnKu10>&jzu%2HEX?1Xly$t|3IZ&&sAryRb{ z{Qs>Ue&uf3I7^(x=;U+OQ(RXAb=Epr&txmCcHGdxDYe#6c46v{v|nv={xKY?_pSx` zhA9o~r$!(-8;F^qmMOZ!7%=U6VVRt-nfrxn(e9fiUiT&% zO70bVtkG_D_RF;AsSA^1Z_lz1*?s1%(v)jq*>4;@pE5eAM6J9dFOtOb)bi?wtfeKT YV%GIV|C18V>HPoutp6LgGrJKB0Aud6UjP6A literal 0 HcmV?d00001 diff --git a/.hg/store/00manifest.i b/.hg/store/00manifest.i new file mode 100644 index 0000000000000000000000000000000000000000..50bb2b8c01370cdc17f2211db00eeb8dba41882a GIT binary patch literal 1143 zcmZQzWME_f1IFhJ49r3hHUq*@7D2%vxDxhO>>9Kn&n$l!SJ8aKwTzC3cWzB1YfR=TPQx}P!na5tNJLiZnYtZIv z2N=(r|Brfi{_oECyp8+r&R^aacv-@tLS(&1ROu%Zj&FW5tj_4Wv>*TZFUC&q`fH`n zFN%NOsjcQcVWttenI}$4G4h>)a@$Tm#nrxRLy!KlO%T%mZK1b4wOI1{>9hMy8_Hft zF8?)!U5rzWwQSnTqf=K-dZbX-yW^cci%QY67n;pyw7=$TRZ8|?);gfzW;7+PWB-|1 zTaF!Gm9c4}_v;7&F6}C>SR13F?`?nMXUz4;nki|)^{^+<_PO0mY1Rnd>`uuv{kQx% zo&MH(uiqYhwX$sHnTT%J^KXtFFr8E&>$>cHqt~JzKlJbTN$DD>$-B+omh(&YnA9Sn z;OSzse{Ns%yte*-;_JUZ9~;H3b}9WdP4d)&Ig<~);Igab(>G3@K4+ur*?$)Gxzi8F z=e}9r+jaWu_cH&(5=*}K^;>0uV!;9XWer{WOqBWPVRMA zCm*XLyfL%;r`s?%FjUkV=c{OoZxUJhX8SG4;*I~OhxY!GIePBaHP#t>{TG)AY4D%W z>)#t3a`A!T%GYeOCj1hZ_l&thR@NV636m?>s?9*xU4UB31f&^3uB)o}CAGh{_AHBa zWAKjf{nHoU5BdRB1EwnGsGjlmJ8U4paG^1kKlrEdyw07>=^NgBl+bEDQl#N~b#g(_ zwiTxy<;pYsIrwmG{Bz5xlb(G|w$7jb;3UgNqso zJ)ZyZ^?SyOjJ-Tl^MC6sS}-B`sLnK>r5;BW{AS)hqPFFLq~*4V@0aa8FWPg0+|2~> zL_Groi!jtX%phTqmj$j|Wv%Xgs>ihoU z5?4=pB&rDidl$TN$txzwB%VkUH#7g!8;tTBWY^W+xL2PQY$UZ=bO!`nZ!+$7H*}`NeFoDzT@&b{2zvf&EoMgUj8B7g`u9!1-!ojS= z20U%&zXiYGe06PluOL(M-5ZJ~8xFjiryXQ`TWgc>&A3jDRS?&6F)QLS}YwM4IO*)9hgz2-W%v~m}VfFoY3<@X#qf98m6@BQDly{G2% z+Aa*+p)%WQ;-Y7==Uyz7=nJy()eMek?b$lxl2hZ-4-b{(Udu8U?M*C5HmOW%u{-4! lTYGO^=Y{Upc$Ey+`l}nV81t?y`2XDTzK&BJW5DS>0RZz7h))0j literal 0 HcmV?d00001 diff --git a/.hg/store/data/blackboard__convert__for__course__exports.sh.i b/.hg/store/data/blackboard__convert__for__course__exports.sh.i new file mode 100644 index 0000000000000000000000000000000000000000..629aa63924d79ebb2635b654be31f24d47c1135f GIT binary patch literal 673 zcmZQzWME_f1I7&u49r>(HUq`R^YuCWkfar=jy_0P7 zZyN}-mH+Kpopiuk=~ku~d*3t_Rx8nri;;Gn>fIe4TsEgT1D@}nz9i?ko>9o@z~#Ry z?zivyrIeNG(t9WMrsxkp!#zsQk2!2TcL<+epH#_x&nfwA-<IyAwz59*65CS?)Sg)>g~9?yArn5DfHumDL1*?Z@u$4@^PQ?hQ;!3 z@+E8dZM~-bF74g-a+Tp+{>tWAr)puGdD+H3 zLswj}IB336xxDE`=QC@AGN8v1B6#^*2!MW{i%8T z+2dCNvx|;vYrLwm%2k+b*8IWd-;ckauNQy)`!dnlH$8FLp<4`0dHW8Up80I~^W;Na+J{HMM(S%9c5pA{@z}t7ecp%S z$5$R)o_f_qP2rle|3mh3|6D)VC+KVSC;VsP{L1AGiZf7513@7$zITFIKp_wfit^n` z*AARmAF}bA;gdHnRPG5xl`QUnssU3KbCMGha*`R6+v-wVA6=Pq<%v-1lRuXhJ-YJa zj7aM&Db}x2r2Jc%Co*_&ID_m_t5on-K45+Y#r(tE9$v@m6fS29!$n5vl5I_b3E zVFLlz@Bg|Kea#nGRI8|XMVHyIq#j%~_l956EB6#@kzZeL@N#&yY)Cn2S)Nv8`}m}1 zq-Sv0i)g2La?|<6U(6P}+pW-jGplmrLkX5SzU$3XO3RJsuf68}qjJ^q8s~NE>K-Po z>Q zdG3=#fs!_Fn=73CS>GFS>B{%xVKe=w1t^h->ltkwTRimmw90c2j`0g@B5C69~aO` zxTF=Lb!_Ph+tm+G-?plXUcTND^HF*x)jpt)B5Si9-$VN>687F+LXi@4o?+~004#ADPaHr literal 0 HcmV?d00001 diff --git a/.hg/store/data/new__pysysinfo.py.i b/.hg/store/data/new__pysysinfo.py.i new file mode 100644 index 0000000000000000000000000000000000000000..d431c476b379dbf06f01bcfea0a3b03e08fad6c7 GIT binary patch literal 291 zcmZQzWME`~fX56BjAc+Z!+$84^j-GSm21zHx9@Cj`0~<7l2=#h0Za{uu9)N6@7s4+ zfv5GmU8{Pm$<$k$B>$ zk{B%Z@SHuN7vy&BN${~Zo1BbVd9NGJyU8xisB`q?W$);cZ-xuz2i=yn{U0i3vZmp* zZQzwQ$pjOz&r?*?m-^QKVq0_7A@Qq$#e+hf=SQ9Tntvs$KWNzo7V|x_5ptHEh>N b4VXMpsGZST^Y*$acQ@^kX{tY_U2y^c@Y;bC literal 0 HcmV?d00001 diff --git a/.hg/store/data/pull__bb__logs.sh.i b/.hg/store/data/pull__bb__logs.sh.i new file mode 100644 index 0000000000000000000000000000000000000000..dd70b5affa77b27cbe7256d05c34c88881b59ee9 GIT binary patch literal 705 zcmZQzWME_f1IEV;46Jn!HUratC@^C^c*5qY%M>o%eQt4z)2}C-p6v-$1EwnGEDiB3 zo^2qq=XLm=q?%0j!uLLDvu?axD}Q-c`<$Fc7L9A{wL)7T$H#Ndv6y0ET)IP{?EBk& z6EDo(dzw4*Q`6423Gw#%^)ZIw<~;9NBjeWRtv8!f$teG9zIn>mx2GRfZIwG%UTphZ zx~TXw|D3a>Vw^_G#t{oTHsrGubT0ZLCeO5R`$O(a5guN3F<)5kTQ9AuRGnII;O#k< zJ)1a$mNXvOI*EJ9CF@(28`Jx^?x{}5Q2W=RnKMIEe%S{1mo`SmsTZs)KPui4;^^0q z=Jx!Q^Y`kz1-!c6!OpE=&RUZ@uT0fV;r4heSMT-o_@3e!+R;W+#k;27K4kQyGSgS} z^&X8)iLTLG);j1PHv1y&66_hD^k3Qe=B=YF-=jHQx+57fs%)HIeXpBR6881lk?>}{ z58uP4pLu?+`1VhoJx$Tm?0#ovPM9m?zRUZQ)cfdp-*wl!pYy+v+IQ>I*S}?V-f-@I z5&!8-uI$}x(_0_ZzwpkRJMp*ivHmMFy*F=hJK*;#tth%8q0KTtKBamVGvlkq?}bqT zRvtFaFK&Iz;WR!JoiI^*Mv$X;X#1w7MIFyK^-Z73C(GV;t$pF&nhh~rs(p{M8r*}q zO;aM~awQ~|N^_sM@PF>x4e!NyE;B8$mYyZ>NnE{r9}g&=L5Twh;($ryKA6S8zzm{6 zsbu34*8`r>UyjMQ_J_WUO0=J{BV#I54VbE!lbn#?nZ}UZ=EAC=;ingHp)@Rjledhw zDB$FlOZvKcm(HK`_d9dZ|CFcCIloi>I$n%iOT=GKfAU;SecB7=!X&@6xJ7ya0qd76 Ya&bI*)bL2CziKdlY#TR2-hRbd0OcGrf&c&j literal 0 HcmV?d00001 diff --git a/.hg/store/data/py__kill__all__by__user.py.i b/.hg/store/data/py__kill__all__by__user.py.i new file mode 100644 index 0000000000000000000000000000000000000000..efc19b119ddf138c82f572c7893428bbdce341d4 GIT binary patch literal 440 zcmZQzWME_f1I7vl24+48n}Oj!6vSMX=?Qq&tbBCB+P~-aE5xZN%DCEssE@!vb(X3BfwM^w63)6spaXU}yL_w?C% z&4Rz}ocgWr$2YvN@HlcqNIPTcrA)K5f~ZwZTO8-QdFjROJ^Mh`E&S`}O)6RK-J=}_AT#^aiA8?%`wI{wLcpd+%bE@|ZhGp1kp$+ZXL3+~=8UD8xuT_3*fbRUON z&0+uWrhQ?O>|9gY4ARWcO=8)X(k-%hWwuJc_lM;dDsL|6S@hh9zI``NLytLtWkTsd2_eR6M>+kZ)_pe#bpFSqA?E6#aKi_oq zeQ&d^^?IqC_RVU4_hWyXcF7p_uD!P-n%k}jbH&*jd-tw<@%+r5nK$3ZTzujt_WWt? z;&s%ciF5-100000000000001ZoOM&tYTPgoeD_!E$w$c1yO`#&O-f7XL!p7t_Ti2Y zifpfKHL|2?62CjY}l(&O}OJz#+DfJTSsS8W5<7CL~6HUh#$@Xa;QV2{iGm z^D(1*G`(@!g1Y|n{m18T+pPlaT4=mu=8|q~cWhrJ7bo|h;EZeR z)FRD^g~VQE%^~QB5(^X5hgZccdsu^8!(o1u2r^YzvsI%s}L}-T;$QHH4P#@a#BoFYtCT`3rxr)^2GVaL3|9Cxt_Xqva+sp<;wi&%4K;pCT8YN)}OAbTt}CBvbz2} jx$>xkB1^QsrJ=gJa+K!s2v2uUb9c?K$=nQz8x>Rly6ZFE literal 0 HcmV?d00001 diff --git a/.hg/store/data/pysysinfo.py.i b/.hg/store/data/pysysinfo.py.i new file mode 100644 index 0000000000000000000000000000000000000000..f61e022bc2c6e51b4e2b6285ee6b470b8f53c602 GIT binary patch literal 306 zcmZQzWME`~fKLnzj3=OMhW}7-s>ApAYMHAUlakoH^#o_V5AuAW2~z{2E9T_(o%TCy zAmIA_UzcK_sFtcrYG~*yri~73PV)skz2%qtaJr4ziu(S-Kp~N`Z)fgQ`_*1n=lSb- zGwz1}hv^z~RZR_!PqlroaCG5qp&dZN4_!SScZl#hBY z2TDF2G;EwPx&NF*mSv8|rYjsboP*`geyv~f@Q?B94Ck76T>-vZD^gcUe)e|d)IQU+ zwCsDDc7)?fCE@RVfot>QPw!|I{IYKz=Uw4-ADC@ZUAy?tnnio30 q$E#ZHPrUi=y;w@tW#xvbCE9il>Z`>9xYmBxSL`(X$!2zb&UFAHHHJR` literal 0 HcmV?d00001 diff --git a/.hg/store/data/pysysinfo.pyc.i b/.hg/store/data/pysysinfo.pyc.i new file mode 100644 index 0000000000000000000000000000000000000000..fa6855a67b31120aeb492ed223812a9832660dac GIT binary patch literal 372 zcmZQzWME_f14a`D2F8~VHUqXr3;cz8M`sR->fW^x6dfDv=M(L7WLd)VzV^!y7W_?VH(L5I*;v0H0Dt5`a@>N&$9Xp@1vz&Usy=~J4 zcA4LAX9P5Fxxo=G?(COP}}T{(}~u-3#r1$3B01tXH!z(sb4KUs(~)Th6HTM4k~U+w-+& Kv%G*st_T3k0HQJg literal 0 HcmV?d00001 diff --git a/.hg/store/data/pysysinfo__fuction.py.i b/.hg/store/data/pysysinfo__fuction.py.i new file mode 100644 index 0000000000000000000000000000000000000000..e29a5d57fb2287c783e904f2cce24a13ae334da6 GIT binary patch literal 279 zcmZQzWME`~fa?qljEA9YhW}9TuyR$0dd|;~HxBL}m(*rW)z!Az1XBZ|E9Oj{cyQez z1p(LZHAioV2m5|0&A+r&eqovs(^i+6LJRio*}uK@#6$&AMBQ^TgZ5%gmvM%g$^?9 Qg55TA=N{qyv!r(e0KMgat^fc4 literal 0 HcmV?d00001 diff --git a/.hg/store/data/pysysinfo__fuction.pyc.i b/.hg/store/data/pysysinfo__fuction.pyc.i new file mode 100644 index 0000000000000000000000000000000000000000..e75478e8e5f90636ade868725bdb9a44629e9c8f GIT binary patch literal 471 zcmV;|0Vw_e0RRC20000000EZ(00X}O0000000030|NsC0|NsBLk1tT7_`|Ff9mKz@ zuXZbJ9Ee*000000000000001ZoUKwjPs1<}J|}&vT|i=D$byssh{T8hff&j{ky5d+ zM8*fUP;kZ;j)f3DUd_ z<^V4yap1!w45Vul2V~7AE~pyFI?Nm>u0gr524JZ@IrJL_CH^ut5EZ&>{GKYDg59*T z*eeUX1UTwHXn-lBe92(!z?uOwOoo2V92n@jiDk+Yg@ks-(KADz>xnAjbnHp4x%VFH ziFbmY$dZJo^0MR8UfrRx|mRw^}(hC>OX8% zy#CLS@Dd)UhlEkHWSUG3rknmwf2iJml>rzO8&RcPd8#kxv1Xrmg>DzCQsj_8og-lK~~ut zQqKCv7d>b;KkcA=Xsyu(SJgM}Jdx&_ca%db-kua|^0l9IRL6e7^K-IMXTl$PcDs5Q zdcV#~2x!~8R^emjC&ACgg06l?*8UYPe0xFD#$d}GkNEBle{wqi7pUG9+t2v2(f=#} D3|(E+ literal 0 HcmV?d00001 diff --git a/.hg/store/data/ssh-copy-id.sh.i b/.hg/store/data/ssh-copy-id.sh.i new file mode 100644 index 0000000000000000000000000000000000000000..b08abe28136d59497b5cc78e2e4a4da9cbab514b GIT binary patch literal 866 zcmV-o1D*T;0RRC20000000SZb00pZ60000000030|NsC0|Ns9td8R`BHBqqHu;H5C zVruGDDED3f00000000000001ZoP|_fZ`v>veb28rGpI-tA;8NtwxUfdTdQ?LYP+Wn z(KIpGBC(O}6j9U0gbhdw+Us5&Q9i^&(0^utbKnv{Wf__dgPtRd~R&oBjs2W$px;#V##m})*dj- z-g(R_0<4e=NADIg!Lt>}b;BXjJB}fdH>98A#-iX0qCuxt2f7PsNF-T{uJ{ILCuA!) zr3%$zMU{q!mBInvu1yVL1lD`~GXTUG3Gq)bPt@CvN3 z|Fo$6c`d&sjfnVnmU2XwtabdI{*0N>U4fN{qz;DjPt$CM>&kNTVb<*C z3rJe9j&2R=@ea3LR)uy6UtDpA7FWoj!j1GBBaE{r8zlz#Tj~;3*a?{>guQz5ICal!f<(; zek$K0HkvE8<$D56>E7Bd;tyj{hhFtUU|@;vt^P*BBb>NynK8lwvpR`GXuMQ^m*)P- zzcfVOziDAf#fnf`!Tn-)3FHH9-aJKc3iWV>;6g8Bu!4noOx+Co7HIQy1BnlqVZ3&q YTYIQ4)E~|vG~!%so@ + DocumentRoot /var/www/ + + Options FollowSymLinks + AllowOverride None + + ErrorLog /var/log/apache2/error.log + LogLevel warn + CustomLog /var/log/apache2/access.log combined + ServerSignature On + + + DocumentRoot /var/www2/ + + Options FollowSymLinks + AllowOverride None + + ErrorLog /var/log/apache2/error2.log + LogLevel warn + CustomLog /var/log/apache2/access2.log combined + ServerSignature On + diff --git a/blackboard_convert_for_course_exports.sh b/blackboard_convert_for_course_exports.sh new file mode 100755 index 0000000..86f41a7 --- /dev/null +++ b/blackboard_convert_for_course_exports.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# this was created 4/13/12 to convert files from spider.its.utexas.edu:///mnt/archives/course_exports/2009_spring/remove/ to the output +# |||2009__classes +# i pulled the export.csv from courses_main table and ran this awk, i had to create a sed to get rid of all of the " "s + +# course_id = $10 +# batch_uid = $14 +# course_name = $9 + +# select course_id || '|' || batch_uid || '|' || course_name || '|2009_spring_classes' from course_main where course_id like '%2009_spring%' + +# cat 2009_spring_classes.out | sed 's/"//g' >> 2009_spring_classes_sed.out + + +for i in `cat 2009_summer_exports.bbexport` +do + COURSE_ID=`echo $i | awk -F , '{print $1}'` + grep $COURSE_ID export.csv | awk -F , '{print $10 "|" $14 "|" $9 "| 2009_summer_classes" }' >> 2009_summer_classes.out +done + +# added after the script had been completed +cat 2009_summer_classes.out | sed 's/"//g' >> 2009_summer_classes_sed.out \ No newline at end of file diff --git a/catalina_bb_logs_pull.sh b/catalina_bb_logs_pull.sh new file mode 100755 index 0000000..c61d902 --- /dev/null +++ b/catalina_bb_logs_pull.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +USER=asgharje +DATE=`date +%F` +TOMCAT_DATE=`date +%Y%m%d` +BB_DATE=`date +%Y-%m-%d` + +# +# Create the directory +# +mkdir $DATE +cd $DATE + +# +# Pull the files down +# +for i in "spider.its.utexas.edu" "maeve.its.utexas.edu" "nancy.its.utexas.edu" "tristran.its.utexas.edu" "rosie.its.utexas.edu" +do + echo "" + echo "Now pulling from $i" + echo "" + scp -C $USER@$i:/usr/local/blackboard/logs/tomcat/catalina-log.txt $DATE.$i.catalina-log.txt + echo "" + echo "Done with $i" + echo "" +done + +# +# gzip the files +# +gzip * +cd .. + +# +# tar up the directory into a tarball +# +tar zcf catalina_log_pull.$DATE.tar.gz $DATE/ + +# +# Delete the $DATE/ directory +# +rm -rf $DATE/ + +# Complete +echo "Your file name is catalina_log_pull.$DATE.tar.gz" + diff --git a/create_vm_tmp.sh b/create_vm_tmp.sh new file mode 100755 index 0000000..9e515ae --- /dev/null +++ b/create_vm_tmp.sh @@ -0,0 +1,49 @@ +#!/usr/local/bin/bash + +VDI_DIR='/home/asgharje/vdi/' +UBUNTU_GOLD_VDI="ubuntu_11_10_gold.vdi" +REDHAT_GOLD_VDI="centos_6_2_gold.vdi" +HOST_NIC="em0" + + +echo "Name of VM" +read name_of_vm +echo "OS type (Ubuntu, RedHat_64)" +read ostype +cd $VDI_DIR +if [ "$ostype" = "Ubuntu" ]; then + echo "Cloning Ubuntu vdi" + VBoxManage clonehd $UBUNTU_GOLD_VDI ubuntu_11_10_$name_of_vm.vdi +elif [ "$ostype" = "RedHat_64" ]; then + echo "Cloning RedHat vdi" + VBoxManage clonehd $REDHAT_GOLD_VDI centos_6_2_$name_of_vm.vdi +else + clear; + echo "something broke" +fi +VBoxManage createvm --name "$name_of_vm" --ostype "$ostype" -register +echo "Adding 4gigs of memory" +VBoxManage modifyvm "$name_of_vm" --memory 4096 --boot1 dvd +echo "Adding the storage ide controller" +VBoxManage storagectl "$name_of_vm" --name "IDE Controller" --add ide +echo "Attaching vdi to storage controller" +if [ "$ostype" = "Ubuntu" ]; then + VBoxManage storageattach "$name_of_vm" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium ubuntu_11_10_$name_of_vm.vdi +fi +if [ "$ostype" = "RedHat_64" ]; then + VBoxManage storageattach "$name_of_vm" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium centos_6_2_$name_of_vm.vdi +fi +echo "Adding NIC and making it a bridge adapter" +VBoxManage modifyvm "$name_of_vm" --nic1 bridged --nictype1 82543GC --bridgeadapter1 $HOST_NIC +clear +echo "" +echo "" +echo "" +echo "Starting it in headless mode have fun!" +echo "" +echo "" +echo "Check the NIC, it could change and you'll have to edit it via the console, hence the VNC connection here in a sec" +echo "" +echo "" +VBoxHeadless -s "$name_of_vm" -n +cd $HOME \ No newline at end of file diff --git a/foo_out.txt b/foo_out.txt new file mode 100644 index 0000000..44deaf5 --- /dev/null +++ b/foo_out.txt @@ -0,0 +1,2 @@ +This is something becasue i want something +BLah! diff --git a/length.sh b/length.sh new file mode 100755 index 0000000..e237b7f --- /dev/null +++ b/length.sh @@ -0,0 +1,13 @@ +#!/bin/bash +echo "enter the sting: " +read str; + +countStringLength() { + echo `echo -n $1 | wc -c` + + # Or can use the below trick to get the string length + # I prefer to use the first one - easy to use and easy to remember + echo ${#1} +} +countStringLength $str + diff --git a/new_pysysinfo.py b/new_pysysinfo.py new file mode 100755 index 0000000..5f12788 --- /dev/null +++ b/new_pysysinfo.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +#very short script thta reuses pysysinfo + +from pysysinfo_fuction import disk_func +import subprocess + +def tmp_space(): + tmp_usage = 'du' + tmp_arg = '-h' + path = '/tmp/' + print "Space used in /tmp directory" + subprocess.call([tmp_usage, tmp_arg, path]) + +def main(): + disk_func() + + tmp_space() + +if __name__ == "__main__": + main() diff --git a/nuke_vm_tmp.sh b/nuke_vm_tmp.sh new file mode 100755 index 0000000..aad5a63 --- /dev/null +++ b/nuke_vm_tmp.sh @@ -0,0 +1,12 @@ +#!/usr/local/bin/bash + +VDI_DIR='/home/asgharje/vdi/' +UBUNTU_GOLD_VDI="ubuntu_11_10_gold.vdi" +REDHAT_GOLD_VDI="centos_6_2_gold.vdi" + + +echo "Name of VM" +read name_of_vm +VBoxManage unregistervm "$name_of_vm" --delete +cd $VDI_DIR +rm *_$name_of_vm.vdi diff --git a/pull_bb_logs.sh b/pull_bb_logs.sh new file mode 100755 index 0000000..993e7c7 --- /dev/null +++ b/pull_bb_logs.sh @@ -0,0 +1,54 @@ +#!/bin/bash + +USER=asgharje +DATE=`date +%F` +TOMCAT_DATE=`date +%Y%m%d` +BB_DATE=`date +%Y-%m-%d` + +# +# Create the directory +# +mkdir $DATE +cd $DATE + +# +# Pull the files down +# +for i in "spider.its.utexas.edu" "maeve.its.utexas.edu" "nancy.its.utexas.edu" "tristran.its.utexas.edu" "rosie.its.utexas.edu" +do + echo "" + echo "Now pulling from $i" + echo "" + scp -C $USER@$i:/usr/local/blackboard/config/bb-config.properties $DATE.$i.bb-config.properties + scp -C $USER@$i:/usr/local/blackboard/logs/bb-sqlerror-log.$BB_DATE.txt $DATE.$i.bb-sqlerror-log.$BB_DATE.txt + scp -C $USER@$i:/usr/local/blackboard/logs/bb-sqlerror-log.txt $DATE.$i.bb-sqlerror-log.txt + scp -C $USER@$i:/usr/local/blackboard/logs/tomcat/stdout-stderr-$TOMCAT_DATE.log $DATE.$i.stdout-stderr.txt + scp -C $USER@$i:/usr/local/blackboard/logs/httpd/error_log $DATE.$i.error_log + scp -C $USER@$i:/usr/local/blackboard/logs/httpd/mod_jk.log $DATE.$i.mod_jk.log + scp -C $USER@$i:/usr/local/blackboard/config/bb-tasks.xml $DATE.$i.bb-tasks.xml + scp -C $USER@$i:/usr/local/blackboard/config/bb-tasks.unix.xml $DATE.$i.bb-tasks.unix.xml + scp -C $USER@$i:/usr/local/blackboard/logs/tomcat/catalina-log.txt $DATE.$i.catalina-log.txt + echo "" + echo "Done with $i" + echo "" +done + +# +# gzip the files +# +gzip * +cd .. + +# +# tar up the directory into a tarball +# +tar zcf bb_log_pull.$DATE.tar.gz $DATE/ + +# +# Delete the $DATE/ directory +# +rm -rf $DATE/ + +# Complete +echo "Your file name is bb_log_pull.$DATE.tar.gz" + diff --git a/py_kill_all_by_user.py b/py_kill_all_by_user.py new file mode 100755 index 0000000..da16c15 --- /dev/null +++ b/py_kill_all_by_user.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python + +# +# This is an attempt to kill all procs by an owner +# + +import os +import sys +import subprocess + +def main(): + if (len(sys.argv) > 1): + ps_grep(sys.argv[1:]) + else: + print "no args" + +def ps_grep(u): + ps="ps" + psopt="-ej" + grep="grep" + cmd="ps aux |grep " + for i in u: + + ## James suggested this is "cleaner" + #p1=subprocess.Popen([ps,psopt],stdout=subprocess.PIPE) + #p2=subprocess.Popen([grep, i],stdin=p1.stdout,stdout=subprocess.PIPE) + #p1.stdout.close() + #print p2.communicate()[0] + ## + + ## This just "works" + subprocess.call(cmd + i, shell=True) + + +if __name__ == "__main__": + main() diff --git a/py_sys_sdtin_readline.py b/py_sys_sdtin_readline.py new file mode 100755 index 0000000..8dde14a --- /dev/null +++ b/py_sys_sdtin_readline.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python +import sys + +counter = 1 + +while True: + line = sys.stdin.readline() + if not line: + break +print "%s: %s" % (counter, line) +counter += 1 diff --git a/py_wrapper_around_xmlconversion.py b/py_wrapper_around_xmlconversion.py new file mode 100755 index 0000000..7960ed1 --- /dev/null +++ b/py_wrapper_around_xmlconversion.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python + +# Presteps +# export CMI=/usr/local/footprints + +# first i need to call the script +# a) this checks asks for the original "MASTERXX" and confirms this, then asks for what its supposed to be, "MASTERYY" +# b) /usr/footprints_perl/bin/perl mrXMLConversion.pl --project=YY +# var = "/some/file/path/" +# pipe = subprocess.Popen(["perl", "uireplace.pl", var]) + +# second i need to run the script +# a) this includes the options that are asked by the script, "y, n, y, y, y" + +# third takes the data for the failure + +# forth check it against an array of known "good" names + +# fifth if not part of that known good list, grep out the name from the xml file +# a) confirm that the name matches the name and write it to a file + +# sixth delete every entry for that name +# #!/bin/bash +# make a back up! changes in place! +# +#[ -s "$1" ] || (echo "no file $1" && exit) +#if [ ! $# -eq 2 ]; then +# echo "wrong args $# : $@" +# exit +#fi +#sed -ri "s#<$2>(.+)##g" "$1" + +# rerun the script +# a) if successful output the data to a log file and complete the script diff --git a/pyls.py b/pyls.py new file mode 100755 index 0000000..b97730d --- /dev/null +++ b/pyls.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +#Python wrapper for ls + +import subprocess + +subprocess.call(["ls","-l"]) diff --git a/pysysinfo.py b/pysysinfo.py new file mode 100755 index 0000000..5f80019 --- /dev/null +++ b/pysysinfo.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python +# coding: utf-8 + +#A System Information Gathering Script +import subprocess + +#Command 1 +uname = 'uname' +uname_arg = '-a' +print "Gathering system information with %s command:\n" % uname +subprocess.call([uname, uname_arg]) + +#Command 2 +diskspace = 'df' +diskspace_arg = '-h' +print "Gathering diskspace information %s command:\n" % diskspace +subprocess.call([diskspace, diskspace_arg]) +print "also this" +subprocess.call("df -h", shell=True) diff --git a/pysysinfo.pyc b/pysysinfo.pyc new file mode 100644 index 0000000000000000000000000000000000000000..272e9f001984472680a5779b7122a5862846b008 GIT binary patch literal 489 zcmY*VxlRKy5FPK8WJxLzwHu@qBp-kfq6-yBfodCM)|0HkduYcCq~;U(6g~jPfh@_$ zp5uAm91g!G>1X_Um&2b#Y_Iv!J1fmcfCb3d2_O@oL&yTq5ukw6#SH>Hhu+5k)&YD7 z5ITk|0-Zn>gB}1zdwEQY`@A9S_<9671x%PP1UI~&9&vN?&2sBvcDqWINCA5@MRPU_ z0Rr(@zo~c*A1qwPpD4-3!P@{4@sIgC{ z5fhZ9TDrmz`GNFG&Wi15RG_uf0b?#@Mcq@=);SU_IRfXY+vy)wyLSF_b7k!o?i;%a y!+q2zKC~T9`33$JjX7*KytChT-fY~Efy=Vioy99Z7@e>hhlxnUNF491h{X>OIBgUF literal 0 HcmV?d00001 diff --git a/pysysinfo_fuction.py b/pysysinfo_fuction.py new file mode 100755 index 0000000..ddc668c --- /dev/null +++ b/pysysinfo_fuction.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +import subprocess + +def uname_func(): + + uname='uname' + uname_arg = '-a' + print "Gathering data with %s command:\n" % uname + subprocess.call([uname, uname_arg]) + +def disk_func(): + + diskspace = 'df' + diskspace_arg = '-h' + print "Gathering data with %s command:\n" % diskspace + subprocess.call([diskspace, diskspace_arg]) + +def main(): + uname_func() + disk_func() + + +if __name__ == "__main__": + main() diff --git a/pysysinfo_fuction.pyc b/pysysinfo_fuction.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3447336948343da94b6936e047bb81cd3cff57b0 GIT binary patch literal 959 zcmb_a!H&}~5FICNmsZ^iNSrw2f|LUgi6a68;;>w{NLg{=5*gcVv)edP#sO8@J(WM^ z1C}?=0xNMruueQP9(&%{ZzlbIyf}UI<%6M{kwCw}n?`&4Vv)<) zuz=v%oM&_0PI}OgO@=2XEx&d{01=nVPA&x-(AXb#^@xvi*BPN`<&mf=7Pj z^|s~F;9w zSH%Rc(Y1d7&9WeMq=F= /dev/null ; then + ID_FILE="$1" + else + ID_FILE="$1.pub" + fi + shift # and this should leave $1 as the target name + fi +else + if [ x$SSH_AUTH_SOCK != x ] && ssh-add -L >/dev/null 2>&1; then + GET_ID="$GET_ID ssh-add -L" + fi +fi + +if [ -z "`eval $GET_ID`" ] && [ -r "${ID_FILE}" ] ; then + GET_ID="cat ${ID_FILE}" +fi + +if [ -z "`eval $GET_ID`" ]; then + echo "$0: ERROR: No identities found" >&2 + exit 1 +fi + +if [ "$#" -lt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then + echo "Usage: $0 [-i [identity_file]] [user@]machine" >&2 + exit 1 +fi + +# strip any trailing colon +host=`echo $1 | sed 's/:$//'` + +{ eval "$GET_ID" ; } | ssh $host "umask 077; test -d ~/.ssh || mkdir ~/.ssh ; cat >> ~/.ssh/authorized_keys" || exit 1 + +cat <