Skip to content

Instantly share code, notes, and snippets.

View andrecarlucci's full-sized avatar

Andre Carlucci andrecarlucci

View GitHub Profile

Keybase proof

I hereby claim:

  • I am andrecarlucci on github.
  • I am andrecarlucci (https://keybase.io/andrecarlucci) on keybase.
  • I have a public key ASB72fOAPn6wi0hL5FhgGdOqE6j3C9WKfMyMRg6dbmx5zgo

To claim this, I am signing this object:

@andrecarlucci
andrecarlucci / gist:fb1ad3caf46af7eea33cc3bf67d264d9
Created January 3, 2018 13:17
Tampermonkey script tp add #gratidao to all messages on whatsapp web #ironic
// ==UserScript==
// @name MVP Gratidao
// @namespace http://tampermonkey.net/
// @version 0.1
// @description add #gratidao to all messages on whatsapp web
// @author You
// @match https://web.whatsapp.com/
// @grant none
// ==/UserScript==
@andrecarlucci
andrecarlucci / SitesController.cs
Created July 12, 2017 20:46
NSwag error generating endpoint address
namespace nswagtest.Controllers {
[Produces("application/json")]
[Route("/api/{subscriptionId}/[controller]")]
public class SitesController : Controller {
[HttpGet]
[ProducesResponseType(typeof(Array), StatusCodes.Status200OK)]
public IActionResult List(string searchString) {
return Ok(new[] {"with", "parameter"});
}
@andrecarlucci
andrecarlucci / publishiis.bat
Created March 28, 2017 20:47
Script for publishing an asp.net microservice on my local IIS
@echo off
SETLOCAL
SET project=%1
SET service=%2
SET dir=%3
IF [%1] == [] GOTO ERROR_USAGE
IF [%2] == [] GOTO ERROR_USAGE
IF [%3] == [] GOTO ERROR_USAGE
SET cmd=C:\Windows\System32\inetsrv\appcmd.exe
SET dns=%project%-%service%
@andrecarlucci
andrecarlucci / configureiis.bat
Created March 28, 2017 20:46
Script for configuring IIS for my microservices
@echo off
SETLOCAL
SET project=%1
SET service=%2
SET dir=%3
IF [%1] == [] GOTO ERROR_USAGE
IF [%2] == [] GOTO ERROR_USAGE
IF [%3] == [] GOTO ERROR_USAGE
SET cmd=C:\Windows\System32\inetsrv\appcmd.exe
[console]::Beep(659, 125)
[console]::Beep(659, 125)
Start-sleep -m 125
[console]::Beep(659, 125)
Start-sleep -m 167
[console]::Beep(523, 125)
[console]::Beep(659, 125)
Start-sleep -m 125
[console]::Beep(784, 125)
Start-sleep -m 375
Set-ExplorerOptions -showHidenFilesFoldersDrives -showFileExtensions
Enable-RemoteDesktop
cinst Microsoft-Hyper-V-All -source windowsFeatures
cinst IIS-WebServerRole -source windowsfeatures
cinst nuget.commandline
cinst fiddler4
cinst sublimetext2