Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
/// <summary> | |
/// Represents a domain | |
/// </summary> | |
public class Domain | |
{ | |
/// <summary> | |
/// Gets the unique domain id | |
/// </summary> | |
public int DomainId { get; set; } | |
using System; | |
using umbraco.BusinessLogic; | |
using umbraco.cms.presentation.Trees; | |
public class SecrectContent : ApplicationBase | |
{ | |
public SecrectContent() | |
{ | |
BaseContentTree.AfterNodeRender += BaseContentTree_AfterNodeRender; | |
} |
<!-- SEO rules (from: http://www.seomoz.org/blog/what-every-seo-should-know-about-iis#chaining) --> | |
<!-- SEO | Section 1 | Whitelist --> | |
<rule name="Whitelist - Resources" stopProcessing="true"> | |
<match url="^(?:css/|scripts/|images/|install/|config/|umbraco/|umbraco_client/|base/|webresource\.axd|scriptresource\.axd|__browserLink|[^/]*/arterySignalR/.*)" /> | |
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> | |
<action type="None" /> | |
</rule> | |
<!-- SEO | Section 2 | Rewrites (chaining) --> | |
<rule name="SEO - Remove default.aspx" stopProcessing="false"> | |
<match url="(.*?)/?default\.aspx$" /> |
public class Args : Dictionary<string,object>{} | |
public class MyIoc | |
{ | |
private Dictionary<Type, Dictionary<string, Func<Args, object>>> _registry | |
= new Dictionary<Type, Dictionary<string, Func<Args, object>>>(); | |
public void Register<T>(Func<Args, T> factory, string name = "") where T : class | |
{ | |
Type t = typeof(T); |
declare @RowCount int, @tablename varchar(100) | |
declare @Tables table ( | |
PK int IDENTITY(1,1), | |
tablename varchar(100), | |
processed bit | |
) | |
INSERT into @Tables (tablename) | |
SELECT TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_TYPE = 'BASE TABLE' and TABLE_NAME not like 'dt%' order by TABLE_NAME asc | |
declare @Space table ( | |
name varchar(100), rows nvarchar(100), reserved varchar(100), data varchar(100), index_size varchar(100), unused varchar(100) |
using Umbraco.Core; | |
using Umbraco.Core.Events; | |
using Umbraco.Core.IO; | |
using Umbraco.Core.Services; | |
namespace Startup | |
{ | |
public class MediaEventHandler : ApplicationEventHandler | |
{ | |
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) |
Here's how to disable the package that is responsible for loading the Git source control support in Visual Studio. Use at your own risk!
devenv.exe
in you Visual Studio's Common7\IDE
(you'll need elevation for this)[$RootKey$\Packages\{7fe30a77-37f9-4cf2-83dd-96b207028e1b}]
[$RootKey$\SourceControlProviders\{11b8e6d7-c08b-4385-b321-321078cdd1f8}]
devenv /updateconfiguration
using System; | |
using System.Collections; | |
using System.Configuration; | |
using System.Reflection; | |
using System.Web; | |
[assembly: PreApplicationStartMethod(typeof(EnvSettings.SettingsProcessor), "Start")] | |
namespace EnvSettings | |
{ |
DELETE FROM umbracoUser2NodeNotify WHERE umbracoUser2NodeNotify.nodeId IN (SELECT TB1.nodeId FROM umbracoUser2NodeNotify as TB1 INNER JOIN umbracoNode as TB2 ON TB1.nodeId = TB2.id WHERE TB2.trashed = '1' AND TB2.nodeObjectType = 'c66ba18e-eaf3-4cff-8a22-41b16d66a972') | |
DELETE FROM umbracoUser2NodePermission WHERE umbracoUser2NodePermission.nodeId IN (SELECT TB1.nodeId FROM umbracoUser2NodePermission as TB1 INNER JOIN umbracoNode as TB2 ON TB1.nodeId = TB2.id WHERE TB2.trashed = '1' AND TB2.nodeObjectType = 'c66ba18e-eaf3-4cff-8a22-41b16d66a972') | |
DELETE FROM umbracoAccessRule WHERE umbracoAccessRule.accessId IN ( | |
SELECT TB1.id FROM umbracoAccess as TB1 | |
INNER JOIN umbracoNode as TB2 ON TB1.nodeId = TB2.id | |
WHERE TB2.trashed = '1' AND TB2.nodeObjectType = 'c66ba18e-eaf3-4cff-8a22-41b16d66a972') | |
DELETE FROM umbracoAccess WHERE umbracoAccess.nodeId IN (SELECT TB1.nodeId FROM umbracoAccess as TB1 INNER JOIN umbracoNode as TB2 ON TB1.nodeId = TB2.id WHERE TB |