Skip to content

Instantly share code, notes, and snippets.

View clabnet's full-sized avatar

Claudio Barca clabnet

  • TEORESI Group
  • Turin - Italy
  • X @clabnet
View GitHub Profile
@clabnet
clabnet / install-win10-vm-server-logistica-new.ps1
Created April 1, 2019 15:54
install-win10-vm-server-logistica-new.ps1
# Boxstarter script for development environment
# START http://boxstarter.org/package/nr/url?
# oppure : START http://boxstarter.org/package/nr/url?c:\temp\install-win10-vm-server-logistica.ps1
# oppure : Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/clabnet/517d1220169864294852c64ef918091b/raw/acfa3af99c65aeea7c456854f9afa00f427b3b0a/install-win10-vm-server-logistica.ps1 -DisableReboots
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
@clabnet
clabnet / install-win10-vm-server-logistica.ps1
Last active April 1, 2019 15:41
install-win10-vm-server-logistica
# Boxstarter script for development environment
# START http://boxstarter.org/package/nr/url?
# oppure : START http://boxstarter.org/package/nr/url?c:\temp\install-win10-vm-server-logistica.ps1
# oppure : Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/clabnet/517d1220169864294852c64ef918091b/raw/acfa3af99c65aeea7c456854f9afa00f427b3b0a/install-win10-vm-server-logistica.ps1 -DisableReboots
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
@clabnet
clabnet / App.config
Created February 4, 2019 10:28
Logstash NLog Target
<target name="logstash" xsi:type="Network" address="tcp://host:port" newLine="true">
<layout xsi:type="JsonLayout" includeAllProperties="false">
<attribute name="@timestamp" layout="${date:format=yyyy-MM-ddTHH\:mm\:ss.fffZ}" />
<attribute name="level" layout="${level:upperCase=true}"/>
<attribute name="category" layout="${logger}" />
<attribute name="message" layout="${message}" />
<attribute name="environment" layout="production" />
<attribute name="extra" layout="value" />
</layout>
</target>
# Boxstarter script for development environment
# Set-ExecutionPolicyecution unrestricted
# START http://boxstarter.org/package/nr/url?
# oppure : START http://boxstarter.org/package/nr/url?c:\temp\install-pc-paola.ps1
function SetPowerPlan([string]$PreferredPlan)
{
Write-Host "Setting Powerplan to $PreferredPlan"
$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "ElementName='$PreferredPlan'").InstanceID.tostring()
$regex = [regex]"{(.*?)}$"
@clabnet
clabnet / myboxstarter-dev
Last active February 27, 2019 14:45
Boxstarter script for my development computer
# Boxstarter script for development environment
# START http://boxstarter.org/package/nr/url?
# oppure : START http://boxstarter.org/package/nr/url?c:\temp\install-my-computer.ps1
# oppure : Install-BoxstarterPackage -PackageName https://gist.github.com/clabnet/ea4fc52778333cd7d30cff7e0debd980 -DisableReboots
function SetPowerPlan([string]$PreferredPlan)
{
Write-Host "Setting Powerplan to $PreferredPlan"
$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "ElementName='$PreferredPlan'").InstanceID.tostring()
$regex = [regex]"{(.*?)}$"