Instantly share code, notes, and snippets.

Writting every day lines fo happy code

Alberto Monteiro AlbertoMonteiro

View GitHub Profile
docker run -it --mount source=my-vol,target=c:/app microsoft/dotnet-framework powershell
docker network ls
docker volume create my-vol
docker volume inspect my-vol
View delete_order_version_elastic_beanstalk.js
jQuery("table").find("input[type=checkbox]").each((i,e) => { setTimeout(() => { if(i >= 100) jQuery(e).click(); }, 0); })
View Example.html
<!DOCTYPE html>
<meta charset="utf-8" />
<title>File Upload example</title>
<link href="/Content/bootstrap.css" rel="stylesheet" />
<form action="api/Upload" method="post">
<div class="form-group">
View DecompileMigrationScript.csx
#r "System.Xml"
#r "System.Xml.Linq"
#r "System.IO.Compression"
#r "System.Data"
using System.Xml.Linq;
using System.IO.Compression;
using System.Data.SqlClient;
public void DecompressDatabaseMigration(string migrationName, string databaseName)
View IgnoreCertificate.cs
ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, errors) => true;
View Windows Context Menus.reg
Windows Registry Editor Version 5.00
@="Visual Studio 2015 Command Line"
@="cmd.exe /s /k pushd \"%V\" && call \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat\""
@="Visual Studio 2015 Command Line"
View Migration from Moq to

Migration from Moq to NSubstitute


  • Find: using Moq;
  • Replace: using NSubstitute;


  • Find: new Mock<(.+?)>\((.*?)\)
  • Replace: Substitute.For<$1>($2)
View .gitconfig
name = Alberto Monteiro
email =
preloadindex = true
fscache = true
autocrlf = true
editor = code -n -w
fetchall = fetch --all --prune
View gist:969e190dcb21d9814c57
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
cinst 1password
cinst 7zip
cinst 7zip.install
cinst AdobeAIR
cinst adobereader
cinst Atom
cinst markdownpad2