Skip to content

Instantly share code, notes, and snippets.

View jrusbatch's full-sized avatar

Justin Rusbatch jrusbatch

View GitHub Profile
#!/usr/bin/env bash
EC_CURVE=secp384r1
SRC=$(pwd)
KEY_FILE="$SRC/$EC_CURVE.private-key"
CSR_FILE="$SRC/localhost.csr"
CERT_FILE="$SRC/localhost.crt"
CONFIG_FILE="$SRC/server.csr.cnf"
OUT_FILE="$SRC/localhost.pfx"
namespace ArgListOutVar
{
class Program
{
static void Main(string[] args)
{
// __arglist(out var x) // Loading a file with this line uncommented crashes Visual Studio
__arglist(out int x) // If the type is explicit, VS doesn't crash
}
}
namespace ArgListOutVar
{
public class Program
{
public static void Main(string[] args)
{
// __arglist(out var x); // Loading a project that contains a file with this line uncommented crashes VS
__arglist(out int x); // If the type is explicit, VS doesn't crash
}
}

Keybase proof

I hereby claim:

  • I am jrusbatch on github.
  • I am jrusbatch (https://keybase.io/jrusbatch) on keybase.
  • I have a public key whose fingerprint is 1248 4DD6 1FA4 5A02 9980 E127 2B6F 7944 A411 9D7A

To claim this, I am signing this object:

[alias]
amend = commit -a --amend
branches = branch -avv
bclean = "!f() { git branch --merged ${1-develop} | grep -v \\* | grep -v master$ | grep -v ${1-develop}$ | xargs -r git branch -d; }; f"
c = clone --recursive
ca = !git add -A && git commit -av
co = checkout
d = diff --patch-with-stat
fetch-pr = "!f() { git fetch -fu $1 refs/pull/$2/head:pull-$2; }; f"
go = checkout -B
function Restore-Packages
{
$nuget = Join-Path $Env:UserProfile 'Tools/nuget.exe'
if (Test-Path $nuget) {
Write-Output "Restoring NuGet packages..."
& $nuget restore -verbosity quiet
}
else {
Write-Output "'$nuget' could not be found."