Skip to content

Instantly share code, notes, and snippets.

View bdukes's full-sized avatar

Brian Dukes bdukes

View GitHub Profile
@bdukes
bdukes / gitignore-filter.js
Created June 1, 2020 17:27
.prettierignore for gulp-plugin-prettier
/* eslint-env node*/
'use strict';
const fs = require('fs');
const path = require('path');
const _ = require('lodash');
const ignore = require('ignore');
const gulpFilter = require('gulp-filter');
const filters = new Map();
@bdukes
bdukes / web.config
Created February 28, 2019 20:33
URL Rewrite rule to redirect from HTTP to HTTPS
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect HTTP to HTTPS" stopProcessing="true">
<match url="(.*)"/>
<conditions>
<add input="{HTTPS}" pattern="^OFF$"/>
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent"/>
</rule>

Keybase proof

I hereby claim:

  • I am bdukes on github.
  • I am bdukes (https://keybase.io/bdukes) on keybase.
  • I have a public key ASCVs2dNc1jhIFUKQJc92LncaJOs71DrhS7Q21JfCzYNQgo

To claim this, I am signing this object:

@@ -1040,7 +1040,8 @@ BEGIN
DECLARE @TabOrder Int
DECLARE @ParentId Int
DECLARE @ContentItemId Int
- SELECT @TabOrder = TabOrder, @ParentId = ParentID, @ContentItemID = ContentItemID FROM {databaseOwner}[{objectQualifier}Tabs] WHERE TabID = @TabId
+ DECLARE @PortalId int
+ SELECT @TabOrder = TabOrder, @ParentId = ParentID, @ContentItemID = ContentItemID, @PortalId = PortalID FROM {databaseOwner}[{objectQualifier}Tabs] WHERE TabID = @TabId
-- Delete Tab --
DELETE FROM {databaseOwner}[{objectQualifier}Tabs] WHERE TabID = @TabId
using System;
using System.Collections.Generic;
using System.Linq;
namespace Engage.MsBuild.Logger.Vso
{
using System.Globalization;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
@bdukes
bdukes / NoDefaultCss.ascx
Created April 11, 2016 21:11
Replace or Remove DNN's Default CSS
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>
<dnn:DnnCssExclude runat="server" Name="dnndefault" />
@bdukes
bdukes / template.cshtml
Created June 1, 2014 18:37
DNN DDR Razor menu template with level checking
@using DotNetNuke.Web.DDRMenu;
@using System.Dynamic;
@inherits DotNetNuke.Web.Razor.DotNetNukeWebPage<dynamic>
@helper RenderNodes(IEnumerable<MenuNode> nodes, int level)
{
if (nodes.Any())
{
var dropdown = level == 0 ? "nav navbar-nav" : "dropdown-menu";
var topLevelId = level == 0 ? Model.ControlID : null;
@bdukes
bdukes / ChocolateyInstall.ps1
Last active August 29, 2015 13:59
Home boxstarter script
try {
Install-WindowsUpdate -acceptEula -criteria "IsAssigned=1 and IsHidden=0 and IsInstalled=0"
Enable-MicrosoftUpdate
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions
Update-ExecutionPolicy
cinst MicrosoftSecurityEssentials
cinst firefox
cinst adblockplusfirefox
cinst googlechrome
@bdukes
bdukes / global.gitignore
Created June 11, 2013 15:06
global gitignore
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
@bdukes
bdukes / skin.ascx
Created June 3, 2013 16:33
Engage: Tell-a-Friend skin object in ascx
<%@ Register TagPrefix="engage" TagName="TellAFriend" Src="~/DesktopModules/EngageTellAFriend/ViewTellAFriend.ascx" %>
<engage:TellAFriend runat="server" ShowInModal="true" />