Skip to content

Instantly share code, notes, and snippets.

View Gh0stWalk3r's full-sized avatar
⚔️
Always build before commit

Gregor Dostal Gh0stWalk3r

⚔️
Always build before commit
View GitHub Profile

Keybase proof

I hereby claim:

  • I am Gh0stWalk3r on github.
  • I am gregsstack (https://keybase.io/gregsstack) on keybase.
  • I have a public key whose fingerprint is 4F0C ED14 114C CF8C 6A0E 0C80 E043 ADDD 2512 6735

To claim this, I am signing this object:

@Gh0stWalk3r
Gh0stWalk3r / Directory.Build.targets
Created March 10, 2020 11:33
Add InternalsVisibleTo to new csproj SDK format
<Project>
<Target Name="AddInternalsVisibleTo" BeforeTargets="CoreCompile">
<!-- Add default suffix if there is no InternalsVisibleTo or InternalsVisibleToSuffix defined -->
<ItemGroup Condition="@(InternalsVisibleToSuffix->Count()) == 0 AND @(InternalsVisibleTo->Count()) == 0">
<InternalsVisibleToSuffix Include=".Tests" />
</ItemGroup>
<!-- Handle InternalsVisibleTo -->
<ItemGroup Condition="'@(InternalsVisibleTo->Count())' &gt; 0">
@Gh0stWalk3r
Gh0stWalk3r / NuGet package version and package ID regex.md
Last active February 24, 2020 10:17
Regex for getting version and package ID of NuGet packages with SemVer2

^(?.*?)\.(?(?:\.?[0-9]+){3,}(?:[-a-z]+)?(?:\.\d+)?)\.nupkg$

@Gh0stWalk3r
Gh0stWalk3r / Windows Server 2016 time sync.md
Last active February 24, 2020 08:51
W32TM sync configuration for Windows Server

W32TM configuration for Windows Server 2016 with time.google.com

  • Run all commands as administrator
    • w32tm /config /manualpeerlist:time.google.com,0x9 /syncfromflags:MANUAL
    • net stop w32time && net start w32time
    • w32tm /resync
    • w32tm /query /status
  • Status should look like
@Gh0stWalk3r
Gh0stWalk3r / signApiGatewayAngular2HttpRequest.ts
Created August 13, 2018 19:53 — forked from ckimrie/signApiGatewayAngular2HttpRequest.ts
How to use AWS Cognito to sign an http request to a custom AWS Api Gateway using IAMs Authorization.
//---- Angular 2 Http Service Example ----
import {Injectable} from "@angular/core";
import {Http, Headers} from "@angular/http";
const AWS = require("aws-sdk");
@Injectable()
export class ApiGatewayService {
constructor(private http:Http){