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
/** | |
* | |
*/ | |
package net.croz.jms.test; | |
import java.util.Date; | |
import java.util.Hashtable; | |
import javax.jms.JMSException; | |
import javax.jms.MessageProducer; |
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
import javax.mail.*; | |
import javax.mail.internet.*; | |
@GrabConfig(systemClassLoader=true) | |
@Grapes( | |
@Grab(group='javax.mail', module='mail', version='1.4.4') | |
) | |
// setup connection | |
Properties props = new Properties(); | |
def host = "localhost"; |
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
# lookup the failed event manager | |
objstr = AdminControl.completeObjectName('WebSphere:*,type=FailedEventManager') | |
obj = AdminControl.makeObjectName(objstr) | |
# create filter and return filtered events | |
import com.ibm.wbiserver.manualrecovery.QueryFilters | |
filter1 = com.ibm.wbiserver.manualrecovery.QueryFilters() | |
#filter1.setFilterArray('EVENT_TYPE', ['SCA','JMS','BPC','MQ']) | |
filter1.setFilterArray('EVENT_TYPE', ['SCA']) | |
dateFilter = java.util.Date("12/1/2016"); |
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
# lookup the failed event manager | |
objstr = AdminControl.completeObjectName('WebSphere:*,type=FailedEventManager') | |
obj = AdminControl.makeObjectName(objstr) | |
# count the overall number of failed events | |
fecount = AdminControl.invoke(objstr, "getFailedEventCount") | |
print "Before discarding failed events" | |
print fecount | |
# create filter and return filtered events |
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
# lookup the failed event manager | |
objstr = AdminControl.completeObjectName('WebSphere:*,type=FailedEventManager') | |
obj = AdminControl.makeObjectName(objstr) | |
# count the overall number of failed events | |
fecount = AdminControl.invoke(objstr, "getFailedEventCount") | |
print "Total number of failed events" | |
print fecount |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<wsdl:definitions xmlns:primjer="http://www.croz.net/StanjeRacunaServis/" | |
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="StanjeRacunaServis" | |
targetNamespace="http://www.croz.net/StanjeRacunaServis/"> | |
<wsdl:types> | |
<xsd:schema targetNamespace="http://www.croz.net/StanjeRacunaServis/"> | |
<xsd:element name="StanjeRacunaRequest" type="primjer:StanjeRacunaRequestType" /> |
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
<xs:schema attributeFormDefault="unqualified" targetNamespace="http://www.example.org/vjezba2" | |
elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:element name="recipe"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element type="xs:string" name="title" /> | |
<xs:element name="ingredient" maxOccurs="unbounded" | |
minOccurs="0"> | |
<xs:complexType> | |
<xs:simpleContent> |
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
<?xml version="1.0" ?> | |
<recipe xmlns="http://www.example.org/vjezba2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.example.org/vjezba2 vjezba2.xsd" name="bread" | |
prep_time="5 mins" cook_time="3 hours"> | |
<title>Basic bread</title> | |
<ingredient amount="8" unit="dL">Flour</ingredient> | |
<ingredient amount="10" unit="grams">Yeast</ingredient> | |
<ingredient amount="4" unit="dL" state="warm">Water</ingredient> | |
<ingredient amount="1" unit="teaspoon">Salt</ingredient> | |
<instructions> |
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
<?xml version="1.0" ?> | |
<recipe name="bread" prep_time="5 mins" cook_time="3 hours"> | |
<title>Basic bread</title> | |
<ingredient amount="8" unit="dL">Flour</ingredient> | |
<ingredient amount="10" unit="grams">Yeast</ingredient> | |
<ingredient amount="4" unit="dL" state="warm">Water</ingredient> | |
<ingredient amount="1" unit="teaspoon">Salt</ingredient> | |
<instructions> | |
<step>Mix all ingredients together.</step> | |
<step>Knead thoroughly.</step> |
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
@echo off | |
set ffmpeg_dir=e:\portable\ffmpeg\bin | |
for /F "delims=" %%I in ('"dir /B | findstr -E -I "P[0-9][0-9]*.*\.avi""') do ( | |
%ffmpeg_dir%\ffmpeg.exe -i %%I -c:v libx264 -preset slow -crf 18 -b:a 128k Converted_%%I | |
) |
NewerOlder