Skip to content

Instantly share code, notes, and snippets.

View jbrinkman's full-sized avatar

Joseph Brinkman jbrinkman

View GitHub Profile
@jbrinkman
jbrinkman / CmdKeyExample.bat
Created March 22, 2019 11:27
Manually add Git Credential to Credential Manager
# to add a new Git credential to the Credential Manager:
cmdkey /generic:LegacyGeneric:target=git:https://tfs.etg-inc.net /user:domain\username /pass:"mypassword"
@jbrinkman
jbrinkman / gist:6608972
Created September 18, 2013 13:14
This example shows how to do jQuery UI dialogs in DNN.
/*
* The magic to make dialogs work in DNN is to use the dialogClass option. Set it to dnnFormPopup and it will
* be styled using the standard DNN styles.
*/
<script>
$(function() {
$( "#dialog-modal" ).dialog({
height: 140,
modal: true,
dialogClass: "dnnFormPopup"
@jbrinkman
jbrinkman / Simple Menu
Created July 17, 2013 14:52
This is a simple template for the DDRMenu
<ul class="dnnNav">
[*>NODE]
</ul>
[>NODE]
<li data-submenu-id="SubMenuID[=ID]" [?FIRST]class="first"[/?] [?LAST]class="last"[/?]>
[?ENABLED]
<a href="[=URL]" galabel="Header | [=TITLE]" class="[?SELECTED] current [/?] [?BREADCRUMB]breadcrumb [/?]" id="PageID[=ID]" target="[=TARGET]">[=TEXT]</a>
[?ELSE]
<span>[=TEXT]</span>
[/?]
@jbrinkman
jbrinkman / DNN Manifest Config Component
Last active December 19, 2015 02:09
This is a short DNN Manifest configuration section that allows you to register an HTTPModule in your web.config file.
<component type="Config">
<config>
<configFile>web.config</configFile>
<install>
<configuration>
<nodes>
<node path="/configuration/system.webServer/modules" action="update" key="name" collision="overwrite">
<add name="MyModuleAPI" type="DotNetNuke.Modules.MyModule.Components.InitializeApplication, MyModule" preCondition="managedHandler"/>
</node>
</nodes>
@jbrinkman
jbrinkman / HttpModuleBase
Created June 27, 2013 21:50
This is a simple base implementation for HTTPModules to inherit from. It exposes the application start and module initialization methods.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace DotNetNuke.Components
{
public abstract class HttpModuleBase : IHttpModule
{
#region Static privates