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
0.0.0.0 reddit.com | |
0.0.0.0 www.reddit.com |
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
Write-Output "Pulling in latest changes for all repositories..." | |
# Find all git repositories and update it to the master latest revision | |
Get-ChildItem -Directory -Recurse -Force -Filter ".git" | ForEach-Object { | |
Write-Output "Checking " $_.FullName | |
Push-Location -Path $_ | |
# We have to go to the .git parent directory to call the pull command | |
Set-Location .. |
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> | |
<PropertyGroup> | |
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | |
<LangVersion>latest</LangVersion> | |
</PropertyGroup> | |
<!-- SourceLink starts here --> | |
<PropertyGroup> | |
<PublishRepositoryUrl>true</PublishRepositoryUrl> |
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
#!/bin/bash | |
# store the current dir | |
CUR_DIR=$(pwd) | |
# Let the person running the script know what's going on. | |
echo -e "\n\033[1mPulling in latest changes for all repositories...\033[0m\n" | |
# Find all git repositories and update it to the master latest revision | |
for i in $(find . -name ".git" | cut -c 3-); do |
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 NodaTime; | |
using NodaTime.Extensions; | |
using Xunit; | |
namespace DaylightSavingTimeTests | |
{ | |
public class DstCalculationsTests | |
{ |
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 Xunit; | |
namespace DaylightSavingTimeTests | |
{ | |
public class DstCalculationsTests | |
{ | |
[Theory] | |
[MemberData(nameof(DstTestCases))] |
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
name: Run .NET Core tests | |
on: [push] | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-dotnet@v1 | |
- run: dotnet test |
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
name: Build and publish NuGet package to GPR | |
on: [push] | |
jobs: | |
nuget-publish: | |
name: Publish package to GPR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: einaregilsson/build-number@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} |
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
name: Run .NET Core tests | |
on: [push] | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-dotnet@v1 | |
- run: dotnet test |
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
namespace XUnitTestProject1 | |
{ | |
using System; | |
using Xunit; | |
using Microsoft.AspNetCore.WebUtilities; | |
// https://tools.ietf.org/html/rfc4648#page-7 Base64 URL-safe Alphabet | |
// uses Microsoft.AspNetCore.WebUtilities.Base64UrlTextEncoder from | |
// https://www.nuget.org/packages/Microsoft.AspNetCore.WebUtilities | |
// the same implementation also exists as Microsoft.IdentityModel.Tokens.Base64UrlEncoder, |
NewerOlder