View Convert-DocumentsToMachineReadable.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$popplerPath = ".\poppler\bin\pdftotext.exe" | |
$maxDocs = 1000 | |
$inputPath = ".\source" | |
$outputPath = ".\dest" | |
function Convert-FilesToMarkdown { | |
param( | |
[string]$inputFolderPath, | |
[string]$outputFolderPath | |
) |
View pnp-list-copy.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# authored @alirobe for @sopewebtech 2022-06-17 | |
# pnp-list-copy.ps1 : https://gist.githubusercontent.com/alirobe/4187b0f073dc2eba5207f312a01ddab6/ | |
# this copies list values from source to target | |
# before using this script, create a new list 'from existing list' in the same site | |
# then, plug values in below and run. should work for most field types. any issues let me know. | |
# todo: add batching, add field types | |
# licensed under GPL V2 | |
$Site = "https://notproduction.sharepoint.com/sites/not-sproket-4/" |
View SecureMediaController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Mvc; | |
using Umbraco.Cms.Core.Services; | |
using MimeKit; | |
using Umbraco.Cms.Core.Models; | |
using Umbraco.Cms.Core.IO; | |
namespace UmbracoProject.Controllers | |
{ | |
public class SecureMediaController : Controller | |
{ |
View export-umbraco-redirects-for-seochecker.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT replace(umbracoRedirectUrl.url, '1075/', '') as url | |
,umbracoNode.id | |
,umbracoRedirectUrl.contentKey | |
FROM umbracoRedirectUrl | |
INNER JOIN umbracoNode on umbracoRedirectUrl.contentKey = umbracoNode.uniqueID | |
# Run in SSMS, right click results and export to CSV. Import CSV to SEOChecker. | |
# NB replace 1075 with your root node ID |
View PostToUrlAsJson.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.Dynamic; | |
using System.Net; | |
using System.Text.RegularExpressions; | |
using Umbraco.Core.Logging; | |
using Umbraco.Forms.Core; | |
using Umbraco.Forms.Core.Attributes; |
View SP2013-video-cewp-ios-restrictions.txt.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
via: https://www.linkedin.com/pulse/play-video-file-from-sharepoint-document-library-mobile-hai-nguyen | |
alt: https://threewill.com/sharepoint-videos-in-ios-safari-iphone-ipad-unforgiving/ | |
--> | |
<video controls="true" style="min-height:360px;width:100%;"> | |
<source src="/PublishingImages/your-video.mp4"> | |
Sorry, your browser does not support playback of this video. | |
</video> | |
<script> | |
if (/iPhone|iPad|iPod/i.test(navigator.userAgent) || document.location.search.indexOf('video-ios-test') != -1) { |
View dotVscodeDir-extensions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"recommendations": [ | |
"eg2.tslint", | |
"rbbit.typescript-hero", | |
"pmneo.tsimporter", | |
"esbenp.prettier-vscode", | |
"christian-kohler.path-intellisense", | |
"CoenraadS.bracket-pair-colorizer", | |
"eamodio.gitlens", | |
"ryu1kn.partial-diff", |
View reduceCrmv9Spacing.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!window.parent.document.querySelector('style#v9removepadding')) { | |
var style = window.parent.document.createElement('style'); | |
style.id = "v9removepadding"; | |
style.innerText = ".acwallEmailView .emailexpandedaccordion { margin:0; width:100% } TABLE.ms-crm-FormSection td { padding: 4px 1px 1px 16px !important; min-height: 26px; }"; | |
window.parent.document.body.appendChild(style); | |
} |
View setupWindowsServer2016.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########## | |
# Tweaked Win10 Initial Setup Script | |
# Primary Author: Disassembler <disassembler@dasm.cz> | |
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences. | |
# Version: 2.6.1, 2017-08-02 | |
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/ | |
# Tweak difference: | |
# | |
# @alirobe's version is a subset focused on safely disabling telemetry, 'smart' features, and 3rd party bloat ... |
View MyContentFinder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Umbraco.Core; | |
using Umbraco.Core.Services; | |
using Umbraco.Web; | |
using Umbraco.Web.Routing; | |
using umbraco; | |
using System.Linq; | |
namespace MyUmbraco | |
{ |
NewerOlder