Skip to content

Instantly share code, notes, and snippets.

View jongalloway's full-sized avatar

Jon Galloway jongalloway

View GitHub Profile
@jongalloway
jongalloway / aspnetcore-one-hour-makeover.md
Last active April 30, 2022 08:24
ASP.NET Core One Hour Makeover
@jongalloway
jongalloway / FunctionalTests.cs
Last active June 4, 2019 03:41
ASP.NET Core 2.1 Functional Testing
using Microsoft.AspNetCore.Mvc.Testing;
using System;
using System.Threading.Tasks;
using Xunit;
namespace WebApp.Tests
{
public class BasicTests
: IClassFixture<WebApplicationFactory<Startup>>
{
@jongalloway
jongalloway / barrys-user-secrets.json
Created September 17, 2018 23:36
Barry is a terrible person
{
"twitter:consumerSecret": "sPiigZdUtlrYTY2wmZurNcxZza0gnwVwFw9AGiL9tm5Mns6vzY",
"twitter:consumerKey": "eFqGFPAG9VbcKXi13NoiNfqcl",
"google:clientID": "{your-client-ID-here}",
"google:clientSecret": "{your-key-here}"
}

Keybase proof

I hereby claim:

  • I am jongalloway on github.
  • I am jon_galloway (https://keybase.io/jon_galloway) on keybase.
  • I have a public key ASARz-IGrH5DyRsKyXz_OHgLO5jk40W4OYScG5GFJx7KHAo

To claim this, I am signing this object:

@jongalloway
jongalloway / itkonekt 2018 - What's New in .NET Core - Jon Galloway.md
Last active April 21, 2018 10:12
Links from What's New in .NET Core presentation at it-Konekt 2018
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jongalloway
jongalloway / gist:f3bf135ac60b742caee73c22fdca0765
Last active September 23, 2017 08:03
Saving / Loading a Docker Image
D:\Users\Jon> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
microsoft/dotnet latest b10593e780a5 39 hours ago 1.64GB
D:\Users\Jon> docker save -o d:\dotnet-docker-image.tar microsoft/dotnet
D:\Users\Jon> docker rmi microsoft/dotnet
Error response from daemon: conflict: unable to remove repository reference "microsoft/dotnet" (must force) - container 40bf430d0282 is using its referenced image b10593e780a5
D:\Users\Jon> docker rmi microsoft/dotnet -f
Untagged: microsoft/dotnet:latest
@jongalloway
jongalloway / frmKeyboard.cs
Created August 30, 2017 06:14
OnscreenKeyboard
/*
REFERENCES:
http://210.58.99.179/flyup2005/textview.php?file=0000001034&txtdate=2005/08/19 (main code)
http://www.vbaccelerator.com/home/NET/Code/Controls/Popup_Windows/Floating_Controls/article.asp (preventing a window from getting focus)
http://www.codeproject.com/dotnet/DesktopWidget.asp (hide title, unused)
*/
using System;
using System.Drawing;
using System.Windows.Forms;