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
| # Using the web automation driver (watir-webdriver) through the tor network | |
| # Automates webpage actions & bypasses the voting limit on polldaddy | |
| # Casts a vote every 3 seconds for a total of 1000 votes | |
| require 'watir-webdriver' | |
| profile = Selenium::WebDriver::Firefox::Profile.new | |
| profile.proxy = Selenium::WebDriver::Proxy.new :http => '127.0.0.1:8118' | |
| b = Watir::Browser.new :firefox, :profile => profile | |
| #b = Watir::Browser.new :firefox | |
| b.goto 'speakimge.wordpress.com/2012/01/25/under-the-covers/' |
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
| require 'open-uri' | |
| pollNumber = '5876349' | |
| ourPick = '26523547' | |
| uriString = 'http://polldaddy.com/n/64270c358614e8ef9383968590e82f73/'.concat(pollNumber).concat('?').concat(Time.now.to_i.to_s()) | |
| puts uriString | |
| # Headers | |
| HEADERS = { | |
| 'Host' => 'polldaddy.com', | |
| 'User-Agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7', |
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
| xcopy "c:\DIR_TO_BKUP\*.*" c:\Backup\*.* /e /h /r /y | |
| 7za a -tzip ourdatafile.zip "c:\Backup" | |
| rename ourdatafile.zip ourdatafile.%Date:~-4,4%%Date:~-10,2%%Date:~-7,2%.zip | |
| move ourdatafile.%Date:~-4,4%%Date:~-10,2%%Date:~-7,2%.zip "c:\ProgramData\bkups" | |
| forfiles -p "c:\ProgramData\bkups" -s -m *.* -d 30 -c "cmd /c del @path" |
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
| runas /user:REQUIREDUSERNAME /savecred c:\SECONDBATCH.BAT |
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
| okay...I think visit number, patient name, order info, reason, comment, request dt/tm, | |
| View: | |
| request prsnl, patient Name, unit/room/bed | |
| Edit: | |
| request prsnl query from cerner | |
| code_Value is in our data mart |
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
| $(document.getElementsByName("Lic")).click(function () { | |
| //this.checked; | |
| //$('#ShiftID').html('<option value="TEST">TEST</option>') | |
| $.getJSON("/ResourcePoolND/NurseRequest/UpdateShifts?Value=" + this.checked, function (data) { | |
| $("#ShiftID").html(data); | |
| }); | |
| }); |
NewerOlder