Skip to content

Instantly share code, notes, and snippets.

View dhei's full-sized avatar

Di Hei dhei

  • GitHub Staff
  • Seattle
  • 08:32 (UTC -07:00)
View GitHub Profile
@dhei
dhei / gitcheatsheet.md
Last active April 25, 2024 15:03
Git cheetsheet
undo git merge
git reset --hard HEAD~1
delete a tag in remote
git tag -d mytag
git push origin :refs/tags/mytag
Remove local branches no longer on remote
@dhei
dhei / common-tasks.md
Last active October 14, 2022 15:03
PowerShell and Batch Cheatsheet
@dhei
dhei / azure-cli-login.ps1
Created November 4, 2015 18:08
Azure CLI cheatsheet
# switch to azure service manager
azure config mode asm
# list all your azure account
azure account list
# download you publishsettings file from azure portal
azure account download
# import publishsettings file
@dhei
dhei / AuthProviders.md
Last active July 20, 2016 22:42
Azure Mobile Apps documentation and references

MSDN: Live SDK Scopes and permissions

Scope Description
wl.offline_access The ability of an app to read and update a user's info at any time. Without this scope, an app can access the user's info only while the user is signed in to Live Connect and is using your app.
wl.signin Single sign-in behavior. With single sign-in, users who are already signed in to Live Connect are also signed in to your website.
wl.basic Read access to a user's basic pr
@dhei
dhei / windows-chrome-shortcuts.md
Last active August 17, 2016 21:47
Chrome Keyboard Shortcuts on Windows
Goal Keyboard Shortcut
Jump to the Address Bar Alt + d or F6
Search from anywhere on the page Ctrl + k or Ctrl + e
Open the Menu Alt + f or Alt + e orF10
Open a link in new background tab Ctrl + Click a link
Open a link, and jump to it Ctrl + Shift + Click a link
Download the target of a link Alt + Click a link
@dhei
dhei / Objective-C-dev-resource.md
Last active August 10, 2016 17:39
Objective-C stuff
@dhei
dhei / readme.md
Last active August 28, 2016 19:21
C# HttpClient
@dhei
dhei / readme.md
Created September 13, 2016 23:44
Nuget Framework Assembly Reference

Specifying Framework Assembly References (GAC)

In some cases, a package may depend on an assembly that’s in the .NET Framework. Strictly speaking, it’s not always necessary that the consumer of your package reference the framework assembly. But in some cases, it is important, such as when the developer needs to code against types in that assembly in order to use your package. The element, a child element of the metadata element, allows you to specify a set of frameworkAssembly elements pointing to a Framework assembly in the GAC. Note the emphasis on Framework assembly. These assemblies are not included in your package as they are assumed to be on every machine as part of the .NET Framework.

<frameworkAssemblies>
  <frameworkAssembly assemblyName="System.ServiceModel" targetFramework="net40" />
  <frameworkAssembly assemblyName="System.SomethingElse"  />
</frameworkAssemblies>
@dhei
dhei / readme.md
Created October 10, 2016 22:02
Windows App Development cheatsheet

Windows 8 Store App and Windows UWP App location: C:\Users<user>\AppData\Local\Packages

@dhei
dhei / readme.md
Last active August 28, 2017 02:48
NuGet location and configuration cheatsheet

NuGet Cache

Stores downloaded NuGet packages (.nupkg).

Mac

~/.local/share/NuGet/Cache ~/.nuget/packages

Windows