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"?> | |
<!-- Excerpt from the "VECTORIALIMAGES" file that defines | |
all the lines and boxes in the PDF version of the NYT Crossword from 2021-08-06. | |
One of the two files generated by pdftoxml on the file Aug0621.pdf --> | |
<VECTORIALIMAGES> | |
<!-- This clipping region defines the page size --> | |
<CLIP sid="p1_s1" x="0" y="0" width="612" height="792" idClipZone="p1_c1"> | |
<GROUP sid="p1_s2" closed="true"> | |
<M x="0" y="792" /> | |
<L x="612" y="792" /> |
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"?> | |
<!-- This is an excerpt from the output of pdftoxml against the NYT crossword PDF download from 2021-08-06. | |
--> | |
<!-- the XML header. Get the page width from PAGE; you can use it to separate clues from boxes. | |
Note that all PDF coordinates are in points (72 points to the inch). --> | |
<DOCUMENT> | |
<METADATA> | |
<PDFFILENAME>Aug0621.pdf</PDFFILENAME> | |
<PROCESS name="pdftoxml" cmd=""> | |
<VERSION value="2.0"> |
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
<# | |
.Synopsis | |
"take in a variable JSON file from a drop target, a web.config, and a web.foo.config transform file and spit out a transformed file with the final substitutions." | |
.DESCRIPTION | |
This script is for previewing the common workflow of substituting OctopusDeploy variables within a *.foo.config transform file, then applying that transform file | |
to a *.config file. | |
.NOTES | |
Name: Transform-OctopusConfig |
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
class foo | |
{ | |
public string Name { get; set; } | |
public string description { get; set; } | |
} | |
void Main() | |
{ | |
List<foo> coll = new List<foo>(); | |
coll.Add(new foo() { Name = "ross", description = "me" }); |
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
// This is C# code meant for use in LINQPad. | |
// Add nuget reference to Octopus.Client. | |
// Provide your OctopusDeploy server URL and APIKEY in environment variables (see the first line below), | |
// or hardcode them, or whatever you wish. | |
var endpoint = new OctopusServerEndpoint(Environment.GetEnvironmentVariable("OCTOPUS_SERVER"),Environment.GetEnvironmentVariable("OCTOPUS_CLI_API_KEY")); | |
var repository = new OctopusRepository(endpoint); | |
string taskID = "ServerTasks-104598"; | |
var task = repository.Tasks.Get(taskID); |