Skip to content

Instantly share code, notes, and snippets.

View jjaramillo's full-sized avatar

Jaime Jaramillo jjaramillo

  • Globant
  • Bogotá, Colombia
View GitHub Profile
@jjaramillo
jjaramillo / gist:255e3da0fe261071c5ce
Created April 16, 2015 18:52
Reduce NodeRunner.exe resource consumption...
Use Set-SPEnterpriseSearchService -PerformanceLevel Reduced to reduce the CPU impact the search service
Modify the C:\Program Files\Microsoft Office Servers\15.0\Search\Runtime\1.0\noderunner.exe.config so that it can only consume X amount of RAM. Change the value at to any amount of RAM you like to contain the memory leak.
Do not forget to restart the search service so the modification could be effective.
@jjaramillo
jjaramillo / gist:565af749e0d3c91c06da
Created February 25, 2015 19:35
Awesome caml generator extesion for sharepoint >= 2010 and Chrome
https://camljs.codeplex.com
@jjaramillo
jjaramillo / query.sql
Created July 4, 2014 04:32
If you ever get "Restore-SPSite : The operation that you are attempting to perform cannot be completed successfully. No content databases in the web application were available to store your site collection. The existing content databases may have reached the maximum number of site collections, or be set to read-only, or be offline, or may alread…
SELECT [DeletionTime]
,[Id]
,[SiteId]
,[InDeletion]
,[Restorable]
FROM [content_database_name].[dbo].[SiteDeletion]
@jjaramillo
jjaramillo / inicio.aspx
Created April 22, 2014 19:49
sample page for provisioning
<%@ Page Inherits="Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %>
<%@ Reference VirtualPath="~TemplatePageUrl" %> <%@ Reference VirtualPath="~masterurl/custom.master" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><head>
<title>Inicio</title>
<!--[if gte mso 9]><SharePoint:CTFieldRefs runat=server Prefix="mso:" FieldList="FileLeafRef,Comments,PublishingStartDate,PublishingExpirationDate,PublishingContactEmail,PublishingContactName,PublishingContactPicture,PublishingPageLayout,PublishingVariationGroupID,PublishingVariationRelationshipLinkFieldID,PublishingRollupImage,Audience,PublishingIsFurlPage,PublishingPageImage,PublishingPageContent,SummaryLinks,Art
@jjaramillo
jjaramillo / copytogac.ps1
Last active August 29, 2015 13:56
How to copy a dll to GAC in windows server 2012 using powershell
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
$publish = New-Object System.EnterpriseServices.Internal.Publish
$publish.GacInstall("mydllpath")
iisreset