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
// Перезапуск модульного теста, второй шанс. Visual Studio, C#, test. | |
// Автор: Алексей Пантюхин, 29.12.2014. | |
// Для перезапуска модульных тестов на Selenium, которые упали из-за зависаний браузера. | |
[TestCleanup] | |
public void StopTest() | |
{ | |
if (TestContext.CurrentTestOutcome != UnitTestOutcome.Passed) | |
{ | |
ConstructorInfo objConst = this.GetType().GetConstructor(Type.EmptyTypes); | |
object objMass = objConst.Invoke(new object[]{}); |
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
Dim ADSysInfo | |
Dim sUserName | |
Dim objWMIService | |
Set ADSysInfo = CreateObject("ADSystemInfo") | |
Set sUserName = GetObject("LDAP://" & ADSysInfo.UserName) | |
strComputer = "." | |
strResult = "" | |
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") |
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
Set FSO = CreateObject("Scripting.FileSystemObject") | |
Set Report=FSO.CreateTextFile("getProducts.txt") 'report file | |
strComputer = "." 'local computer | |
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") | |
For Each objProduct in objWMIService.InstancesOf("Win32_Product") | |
echoStr = objProduct.AssignmentType & vbTab & _ | |
objProduct.Caption & vbTab & _ | |
objProduct.Description & vbTab & _ | |
objProduct.IdentifyingNumber & vbTab & _ | |
objProduct.InstallDate & vbTab & _ |
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
'#command line: @cscript getUserSID.vbs //NoLogo | |
WScript.Echo "****************************************************************" | |
WScript.Echo "* Отображение списка локальных пользователей, с указанием SID *" | |
WScript.Echo "* При написании использовалась информация с сайта: *" | |
WScript.Echo "* http://www.alexr.me/index.php/articles/2-wondows/111-sid-sid *" | |
WScript.Echo "****************************************************************" | |
Set FSO = CreateObject("Scripting.FileSystemObject") | |
Set Report=FSO.CreateTextFile("getUserSID.txt") | |
strComputer = "." | |
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") |
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
@rem %~dp0 - current directory | |
@rem /L*v - log verbose | |
@rem 7z920.msi - install package | |
@rem 7z920.log - install log | |
msiexec.exe /i "%~dp07z920.msi" /L*v "%~dp07z920.log" |
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
Private Sub Workbook_Open() | |
sOpenFile = Application.GetOpenFilename("Files soapUI (*.txt), *.txt") | |
With ActiveSheet.QueryTables.Add(Connection:="TEXT;" & sOpenFile, Destination:=Range("$A$1")) | |
.Name = "soapUI Data" | |
.FieldNames = True | |
.RowNumbers = False | |
.FillAdjacentFormulas = False | |
.PreserveFormatting = True | |
.RefreshOnFileOpen = False | |
.RefreshStyle = xlInsertDeleteCells |
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
$fso = New-Object -ComObject scripting.filesystemobject | |
$f = $fso.GetFolder("C:\Users\Administrator\") | |
$folders = Foreach($folder in $f.SubFolders) | |
{ | |
New-Object -TypeName psobject -Property @{ | |
name=$folder.path; | |
size=$folder.size | |
} | |
} |
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
# за 20-30 минут до начала прогрузки запустить сбор всех метрик (-A) | |
# с частотой раз в 10 сек, на 6 часов: 6 * 60 * 60 / 10 == 2160 циклов сбора метрики | |
timestamp=`date "+%s"`; nohup sar -A -o sar_`hostname`_${timestamp}.out 10 2160 & | |
# через 6 часов, полученный файл можно сразу переконвертировать в формат csv | |
LC_ALL=C sar -A -f sar_`hostname`_${timestamp}.out > sar_`hostname`_${timestamp}.csv |
This file has been truncated, but you can view the full file.
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
filestat,file=/home/x1337/Project/playframework/logs/*.log,host=CodeRHost exists=0i 1536533195000000000 | |
filestat,file=/home/x1337/Project/playframework/logs/*.json,host=CodeRHost exists=0i 1536533195000000000 | |
system,host=CodeRHost load5=1.75,load15=1.21,n_cpus=8i,n_users=1i,load1=0.79 1536533195000000000 | |
net,host=CodeRHost,interface=enp2s0 bytes_recv=229141i,packets_sent=306i,packets_recv=274i,err_in=0i,err_out=0i,drop_in=0i,drop_out=0i,bytes_sent=46857i 1536533195000000000 | |
net,host=CodeRHost,interface=lo err_out=0i,drop_in=0i,drop_out=0i,bytes_sent=1400820i,bytes_recv=1400820i,packets_sent=8922i,packets_recv=8922i,err_in=0i 1536533195000000000 | |
kernel,host=CodeRHost boot_time=1536532732i,processes_forked=5928i,entropy_avail=3569i,interrupts=334535i,context_switches=801547i 1536533195000000000 | |
interrupts,device=2-edge\ timer,host=CodeRHost,irq=0,type=IR-IO-APIC CPU0=9i,CPU1=0i,CPU2=0i,CPU4=0i,CPU5=0i,CPU6=0i,total=9i,CPU7=0i,CPU3=0i 1536533195000000000 | |
interrupts,device=1-edge\ i8042,host=CodeRHost,irq=1,type= |
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
https://repo.maven.apache.org/maven2/com/github/scribejava/scribejava-apis/2.5.3/scribejava-apis-2.5.3.jar | |
https://repo.maven.apache.org/maven2/com/github/scribejava/scribejava-core/2.5.3/scribejava-core-2.5.3.jar | |
https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.6.2/gson-2.6.2.jar | |
https://repo.maven.apache.org/maven2/com/sun/xml/bind/jaxb-osgi/2.2.10/jaxb-osgi-2.2.10.jar | |
https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.9/commons-codec-1.9.jar | |
https://repo.maven.apache.org/maven2/io/rest-assured/json-path/4.0.0/json-path-4.0.0.jar | |
https://repo.maven.apache.org/maven2/io/rest-assured/rest-assured-common/4.0.0/rest-assured-common-4.0.0.jar | |
https://repo.maven.apache.org/maven2/io/rest-assured/rest-assured/4.0.0/rest-assured-4.0.0.jar | |
https://repo.maven.apache.org/maven2/io/rest-assured/xml-path/4.0.0/xml-path-4.0.0.jar | |
https://repo.maven.apache.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1.jar |
OlderNewer