Skip to content

Instantly share code, notes, and snippets.

View juanluelguerre's full-sized avatar
:octocat:
Developing...

Juan Luis Guerrero Minero juanluelguerre

:octocat:
Developing...
View GitHub Profile
@juanluelguerre
juanluelguerre / Install WinGet Stuff
Last active December 9, 2022 13:29 — forked from paulyuk/Install WinGet Stuff
Install WinGet Stuff
Winget install "Windows Terminal Preview"
Winget install "Microsoft .NET SDK" # assume .NET SDK 7.0+ (the latest one)
Winget install "Microsoft.dotnetRuntime.3-x64" #for Tye
Winget install "Python.Python.3"
Winget install "Node.js"
Winget install "Git"
# Winget install "Company Portal"
Winget install "Microsoft Azure Storage Explorer"
Winget install "Microsoft Azure CLI"
# Winget install "Discord"
@juanluelguerre
juanluelguerre / start.ps1
Last active November 20, 2021 15:12
[BLOG] Windows Terminal Scripts Execution
$orchestration = '--title "Workflow Orchestration" -- pwsh.exe -Interactive -NoExit -WorkingDirectory ../../MicroServices/Workflow/Orchestration -Command dapr run --app-id subpla-workflow-orchestration --dapr-grpc-port 50000 --app-port 3001'
$TechValidation = '--title "Techical Validation" -- pwsh.exe -Interactive -NoExit -WorkingDirectory ../../MicroServices/Workflow/Processes\TechnicalValidation -Command dapr run --app-id techvalidation-worker --dapr-grpc-port 50001 --app-port 5050 --app-protocol grpc'
#$cmd = '-M -w -1 nt ' + $orchestration + '; nt ' + $TechValidation
$cmd = '-w -1 nt ' + $orchestration + '; split-pane ' + $TechValidation
Start-Process wt $cmd
# Remove node_modules
npm install rimraf -g
rimraf node_modules
rimraf .\**\node_modules
@juanluelguerre
juanluelguerre / Windows CMD
Created April 28, 2020 14:29
Windows CMD
**Generate ls command **
echo @dir %* > %systemroot%\system32\ls.bat
@juanluelguerre
juanluelguerre / Ubuntu-WSL
Created November 27, 2019 12:12
Ubuntu WSL Install Docker, Kubernetes, ....
#!/bin/bash
sudo apt-get update
sudo apt install docker.io
sudo service docker start
# Configure docker daemon
# https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly
@juanluelguerre
juanluelguerre / Ubuntu-WSL
Created November 27, 2019 12:12
Ubuntu WSL Install Docker, Kubernetes, ....
#!/bin/bash
sudo apt-get update
sudo apt install docker.io
sudo service docker start
# Configure docker daemon
# https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly
@juanluelguerre
juanluelguerre / Del-dotNet-Sdk
Created November 24, 2019 21:22
Remove DotNet SDK on MAC
sudo rm -rf /usr/local/share/dotnet/sdk/#VERSION#
sudo rm -rf /usr/local/share/dotnet/shared/Microsoft.NETCore.App/#VERSION#
sudo rm -rf /usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/#VERSION#
sudo rm -rf /usr/local/share/dotnet/host/fxr/#VERSION#
@echo off
setlocal
set /p TOKEN=<sonar.token
IF [%1]==[] SET SLN="./ElGuerre.Taskin.Api.sln"
IF NOT [%1]==[] SET SLN=%1
dotnet build-server shutdown
del .\.sonarqube /S /Q
clear
TOKEN=$(<sonar.token)
if [ -z "$1" ]
then
SLN="ElGuerre.Taskin.Api.sln"
else
SLN="$1"
fi
@juanluelguerre
juanluelguerre / CodeCoverage
Last active November 27, 2018 23:14
Runing Tests & CodeCoverage without Visual Studio
@echo off
SETLOCAL
IF [%1]==[] SET SOLUTION_NAME=ElGuerre.Taskin.Api.sln
IF NOT [%1]==[] SET SOLUTION_NAME=%1
IF [%2]==[] SET TEST_PROJECT=./test/ElGuerre.Taskin.Api.Tests/ElGuerre.Taskin.Api.Tests.csproj
IF NOT [%2]==[] SET TEST_PROJECT=%2