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
View comandos.md
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
AlbertoMonteiro / collations.md
Created Aug 10, 2017
Collation Sql Server ignorar acentos, cedilha e case
View collations.md
@AlbertoMonteiro
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
Danielku15 / Example.html
Created Feb 25, 2016
A MediaTypeFormatter for WebApi for multipart/form-data including file uploads
View Example.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>File Upload example</title>
<link href="/Content/bootstrap.css" rel="stylesheet" />
</head>
<body>
<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
AlbertoMonteiro / IgnoreCertificate.cs
Last active Jun 19, 2017
Ignorar certificado no WebClient (IgnoreCertificate)
View IgnoreCertificate.cs
ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, errors) => true;
@AlbertoMonteiro
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
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\vs14cmd]
@="Visual Studio 2015 Command Line"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\vs14cmd\command]
@="cmd.exe /s /k pushd \"%V\" && call \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\vs14cmd]
@="Visual Studio 2015 Command Line"
@AlbertoMonteiro
AlbertoMonteiro / Migration from Moq to NSubstitute.md
Last active Nov 30, 2015
Migration from Moq to NSubstitute
View Migration from Moq to NSubstitute.md

Migration from Moq to NSubstitute

Using

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

Instance

  • Find: new Mock<(.+?)>\((.*?)\)
  • Replace: Substitute.For<$1>($2)
View .gitconfig
[user]
name = Alberto Monteiro
email = alberto.monteiro@live.com
[core]
preloadindex = true
fscache = true
autocrlf = true
editor = code -n -w
[alias]
fetchall = fetch --all --prune
View gist:969e190dcb21d9814c57
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst 1password
cinst 7zip
cinst 7zip.install
cinst AdobeAIR
cinst adobereader
cinst Atom
cinst markdownpad2
You can’t perform that action at this time.