Xslt mediator allows specifying special parameters which are used for the transformation process:
<?XsltMediator inputitemname="*package name*" outputitemname="*package name*" extensionsTbbId="*tcm:223-123123-2048*"?>The output methods defined are:
| <system.webServer> | |
| <httpProtocol> | |
| <customHeaders> | |
| <clear/> | |
| <add name="X-UA-Compatible" value="IE=edge,chrome=1"/> | |
| </customHeaders> | |
| </httpProtocol> | |
| </system.webServer> |
| public static void SaveMonochromeTIFF(Bitmap bitmap, String outputFile) | |
| { | |
| if (bitmap == null) | |
| throw new ArgumentNullException("bitmap"); | |
| imageCodecInfo = ImageCodecInfo.GetImageEncoders().FirstOrDefault(ici => ici.MimeType == "image/tiff"); | |
| if (imageCodecInfo == null) | |
| throw new NotSupportedException("No image codec for tiff found.") | |
Update: https://github.com/phracker/MacOSX-SDKs hosts the direct SDK folders already extracted.
Xcode 4.3.3Show Package Content/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs| Sub StartService(Computer, ServiceName, Wait) | |
| Dim cimv2, oService, Result | |
| ' Get the WMI administration object | |
| Set cimv2 = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & Computer & "\root\cimv2") | |
| ' Get the service object | |
| Set oService = cimv2.Get("Win32_Service.Name='" & ServiceName & "'") | |
| ' Check base properties |
| <VirtualMachine> | |
| <Options> | |
| <Option Name="-Xmx" Value="1024M" /> | |
| <Option Name="-Dfile.encoding" Value="UTF-8" /> | |
| <Option Name="-Djava.io.tmpdir" Value="D:\Temp" /> | |
| <Option Name="-Xms" Value="50M" /> | |
| </Options> | |
| <Classpath> | |
| <Include LibraryPath="D:\Apps\Tridion\lib" /> | |
| <Include LibraryPath="D:\Apps\ActiveMQ\lib" /> |
| -- This query uses the default stored procedure to set the publish state for any published items to unpublished | |
| -- Note: Do NOT run this on a production SDL Tridion instance, as this activity is not officially supported by SDL Tridion. | |
| DECLARE @publicationTargetId INT | |
| DECLARE @publicationId INT | |
| DECLARE @referenceId INT | |
| DECLARE @itemType INT | |
| DECLARE @state INT | |
| DECLARE @trusteeId INT | |
| DECLARE @templateReferenceId INT |
| # Generate a self-signed certificate in a Java keystore as a single line command | |
| # Note this generates a SAN certificate for machine.domain, localhost & 127.0.0.1 | |
| keytool -genkeypair \ | |
| -keyalg RSA \ | |
| -keysize 2048 \ | |
| -alias "machine.domain" \ | |
| -keystore /discovery-service/config/keystore.jks \ | |
| -keypass "key-password" \ | |
| -storepass "store-password" \ | |
| -validity 1095 \ |
| #!/bin/bash | |
| BUCKET_NAME="<bucket>" | |
| BUCKET_PATH="<path>/" | |
| PROFILE="<profile>" | |
| ### S3 Bulk Delete by File Size ### | |
| aws s3 ls "s3://${BUCKET_NAME}/${BUCKET_PATH}" --profile "${PROFILE}" --recursive | awk -F ' ' '{print $3,$4}' | awk -F ' ' '$1 < 1 {print $2}' | xargs -IP echo '{"Key": "P"}' > delete.txt | |
| # Because bulk delete limit is 1000 per api call. |