Skip to content

Instantly share code, notes, and snippets.

Writting every day lines fo happy code

Alberto Monteiro AlbertoMonteiro

Writting every day lines fo happy code
Block or report user

Report or block AlbertoMonteiro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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
AlbertoMonteiro /
Created Aug 10, 2017
Collation Sql Server ignorar acentos, cedilha e case
AlbertoMonteiro / delete_order_version_elastic_beanstalk.js
Last active Sep 6, 2017
Script to delete order version of Elastic Beanstalk in AWS Console
View delete_order_version_elastic_beanstalk.js
jQuery("table").find("input[type=checkbox]").each((i,e) => { setTimeout(() => { if(i >= 100) jQuery(e).click(); }, 0); })
Danielku15 / Example.html
Created Feb 25, 2016
A MediaTypeFormatter for WebApi for multipart/form-data including file uploads
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)
AlbertoMonteiro / IgnoreCertificate.cs
Last active Jun 19, 2017
Ignorar certificado no WebClient (IgnoreCertificate)
View IgnoreCertificate.cs
ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, errors) => true;
AlbertoMonteiro / Windows Context Menus.reg
Last active Nov 8, 2015
Set of Windows Context Menu helpers
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"
AlbertoMonteiro / Migration from Moq to
Last active Nov 30, 2015
Migration from Moq to NSubstitute
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
You can’t perform that action at this time.