Skip to content

Instantly share code, notes, and snippets.

View odenijs's full-sized avatar
🏠

Okke de Nijs odenijs

🏠
View GitHub Profile
@davidfowl
davidfowl / MinimalAPIs.md
Last active October 24, 2024 13:39
Minimal APIs at a glance
@pbering
pbering / Performance.config
Last active January 29, 2023 12:20
Sitecore Performance (Docker friendly)
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<initialize>
<processor type="Sitecore.Pipelines.Loader.ShowVersion, Sitecore.Kernel">
<patch:delete />
</processor>
<processor type="Sitecore.Pipelines.Loader.ShowHistory, Sitecore.Kernel">
<patch:delete />
</processor>
@zulhfreelancer
zulhfreelancer / send_email_on_mac_mamp_hotmail.md
Last active January 16, 2023 10:22
How to send e-mail on Mac using MAMP (not PRO version) and Hotmail SMTP

How to send e-mail on Mac using MAMP (not PRO version) and Hotmail SMTP

Requirements

  1. A Mac running OSX 10.11.6
  2. MAMP v3.5
  3. PHP 7.0.0 (comes inside the MAMP v3.5 above)

Note

@odenijs
odenijs / Email Server (Windows Only).md
Created September 5, 2016 20:12 — forked from raelgc/Email Server (Windows Only).md
Setup a Local Only Email Server (Windows Only)
@Adamsimsy
Adamsimsy / Sitecore Powershell change item template.ps1
Last active April 20, 2023 10:07
Sitecore Powershell examples
$item = Get-Item master:/content/home
$newTemplate = [Sitecore.Configuration.Factory]::GetDatabase("master").Templates["Sample/Sample Item"];
$item.ChangeTemplate($newTemplate)
@mobzystems
mobzystems / 7-zip.psm1
Last active September 21, 2024 03:31
7-Zip commands for PowerShell
<#
Powershell Module 7-Zip - 7-Zip commands for PowerShell
The functions in this module call 7za.exe, the standAlone version of 7-zip to perform various tasks on 7-zip archives.
Place anywhere, together with 7za.exe and 7zsd.sfx. 7za.exe is required for all operations; 7zsd.sfx for creating self
extracting archives.
http://www.7-zip.org
Import-Module [Your path\]7-Zip
@hatifnatt
hatifnatt / removeOlderThanDays.sh
Last active July 1, 2022 11:25
Simple script to delete files older than specific number of days from FTP
#!/bin/bash
# Simple script to delete files older than specific number of days from FTP. Provided AS IS without any warranty.
# This script use 'lftp'. And 'date' with '-d' option which is not POSIX compatible.
# FTP credentials and path
FTP_HOST="ftp.host.tld"
FTP_USER="usename"
FTP_PASS="password"
FTP_PATH="/ftp/path"
# Full path to lftp executable
@nul800sebastiaan
nul800sebastiaan / gist:8641249
Last active December 24, 2018 09:53
What's this Umbraco route hijacking all about? (more info in this blog post: http://cultiv.nl/blog/whats-this-umbraco-route-hijacking-all-about/)
// MODEL
using System.Collections.Generic;
using System.Linq;
using Umbraco.Core.Models;
using Umbraco.Web;
using Umbraco.Web.Models;
namespace Cultiv.Models
{
public class BlogOverview : RenderModel
@bavington
bavington / eu_cookie_banner.js
Last active May 17, 2022 06:22
Simple EU Cookie Law Banner JavaScript