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
// Here's the app-settings POCO | |
namespace DemoWebApp | |
{ | |
public class DemoAppOptions | |
{ | |
public string BaseAddress { get; set; } | |
public string ContactPageTagline { get; set; } | |
} | |
} |
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
wget http://dist.libuv.org/dist/v1.4.2/libuv-v1.4.2.tar.gz | |
tar -xvf libuv-v1.4.2.tar.gz | |
cd libuv-v1.4.2/ | |
./gyp_uv.py -f make -Duv_library=shared_library | |
make -C out | |
sudo cp out/Debug/lib.target/libuv.so /usr/lib/libuv.so.1.4.2 | |
sudo ln -sf libuv.so.1.4.2 /usr/lib/libuv.so.1 | |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<packageSources> | |
<clear/> | |
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/api/v2" /> | |
<add key="NuGetOrg" value="https://nuget.org/api/v2/" /> | |
</packageSources> | |
</configuration> |
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
[Fact] | |
public void RemoveBom() | |
{ | |
foreach (var file in new DirectoryInfo("..\\..").EnumerateFiles("*", SearchOption.AllDirectories)) | |
{ | |
try | |
{ | |
var allBytes = File.ReadAllBytes(file.FullName); | |
var allText = File.ReadAllText(file.FullName); | |
if (allBytes.Length - allText.Length == 3 && |
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
cd ~ && wget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb | |
sudo dpkg -i puppetlabs-release-pc1-trusty.deb | |
sudo apt-get update | |
sudo apt-get install puppet-agent |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNet.Builder; | |
using Microsoft.AspNet.Hosting; | |
using Microsoft.AspNet.Identity.EntityFramework; | |
using Microsoft.Data.Entity; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; |
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
{ | |
"configurationsetting": { | |
"applicationsettings": { | |
"metadataserviceurl": "http://usg-data.s3-website-us-east-1.amazonaws.com/metadata/getaroom-metadata.json" // can be part of request(supplier configuration) | |
}, | |
"getaroomsettings": { | |
"TestUrl": "https://availability.integration2.testaroom.com/", // can be part of request(supplier configuration), | |
"ProductionUrl": "https://availability.integration2.testaroom1.com/" // can be part of request(supplier configuration) | |
} | |
}, |
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
foo:x=hello | |
foo:bar:y=world |
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 System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Threading.Tasks; | |
namespace readmany | |
{ | |
class Program | |
{ |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp3.0</TargetFramework> | |
</PropertyGroup> | |
</Project> |
OlderNewer