Skip to content

Instantly share code, notes, and snippets.

@glucaci
glucaci / VisualStudioSolutionFinder.ps1
Last active May 22, 2019 13:00
PowerShell funtion to display all Visual Studio Solution in directory and open specific one
# This function can be places in C:\Users\<YourUser>\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
function s {
$solutionFiles = Get-ChildItem -Path .\ -Filter *.sln -Recurse
if ($solutionFiles.Count -lt 1) {
Write-Host "Coudn't find any solution file in the current directory."
return
}
@glucaci
glucaci / elasticsearch_cluster.yml
Last active March 11, 2019 14:33
Elasticsearch cluster with 2 nodes and Kibana build with docker-compose
version: '3.7'
services:
elasticsearch-01-master:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.6.1
container_name: elasticsearch-01-master
environment:
- cluster.name=a-esl
- node.data=true
- node.ingest=false
- node.master=true
@glucaci
glucaci / Roslyn.CodeGeneration.Program.cs
Created June 13, 2018 11:06 — forked from cmendible/Roslyn.CodeGeneration.Program.cs
Create a class with dotnet core and roslyn with using statements outside the namespace
using System;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Roslyn.CodeGeneration
{
public class Program
{
public static void Main(string[] args)