Skip to content

Instantly share code, notes, and snippets.

View retohugi's full-sized avatar
👻
Playing with code

Reto Hugi retohugi

👻
Playing with code
View GitHub Profile
@retohugi
retohugi / init.ps1
Created November 16, 2021 22:27
Enhanced init.ps1 to be used as a direct replacement for the original init.ps1 in the Sitecore Docker Examples Repo (https://github.com/Sitecore/docker-examples/blob/develop/getting-started/init.ps1)
[CmdletBinding()]
Param (
[Parameter(Mandatory = $true)]
[string]
[ValidateNotNullOrEmpty()]
$LicenseXmlPath,
[string]
$HostName = "YourProjectDefault",
@retohugi
retohugi / Logging.Extension.config
Last active January 8, 2020 14:26
Sample configuration to enable UDP log output stream in Sitecore. This file is copy and paste ready :)
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"
xmlns:role="http://www.sitecore.net/xmlconfig/role/"
xmlns:set="http://www.sitecore.net/xmlconfig/">
<!--
This configuration enables log output streams to UDP on port 7071, which is the default
port for Log2Console. You can download Log2Console from:
https://github.com/Statyk7/log2console/releases (in the Source code zip, in the ./output folder)
Alternatively you can get a copy of Log4View from https://www.log4view.com/.
@retohugi
retohugi / UpdateAllGitRepositories.ps1
Created December 6, 2018 21:26
Powershell script to update all local Git repositories
Write-host "Start looking for Git repositories in $PWD..."
Get-ChildItem -Recurse -Force |
Where-Object { $_.Mode -match "h" -and $_.FullName -like "*\.git" } |
ForEach-Object {
cd $_.FullName
cd ../
Write-Host "Pull remote from $PWD."
git checkout master
git pull origin master
@retohugi
retohugi / gist:11cf5cff27cbe40e16a1
Created January 14, 2015 15:40
.gitattributes for Sitecore projects
## Github for Windows default .gitattributes for VS Repos ##
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
# Standard to msysgit
*.doc diff=astextplain