2017-12-13T15:00:18.059385800-03:00 container create 07b3ae560d416356673e4fa8ae1a2bd4fe6ebf69a3f5e35fd015fb30f3236d52 (image=microsoft/dotnet-framework, name=sleepy_gates)
2017-12-13T15:00:18.066377500-03:00 container attach 07b3ae560d416356673e4fa8ae1a2bd4fe6ebf69a3f5e35fd015fb30f3236d52 (image=microsoft/dotnet-framework, name=sleepy_gates)
2017-12-13T15:00:18.129877400-03:00 network connect e47d6abe799d43547cad0f7bb60ee0ab0525b169af5da925fa2d2fcf789f9afd (container=07b3ae560d416356673e4fa8ae1a2bd4fe6ebf69a3f5e35fd015fb30f3236d52, name=none, type=null)
2017-12-13T15:00:47.920780100-03:00 container start 07b3ae560d416356673e4fa8ae1a2bd4fe6ebf69a3f5e35fd015fb30f3236d52 (image=microsoft/dotnet-framework, name=sleepy_gates)
2017-12-13T15:00:50.979503000-03:00 container die 07b3ae560d416356673e4fa8ae1a2bd4fe6ebf69a3f5e35fd015fb30f3236d52 (exitCode=0, image=microsoft/dotnet-framework, name=sleepy_gates)
2017-12-13T15:00:51.000501000-03:00 network disconnect e47d6abe799d43547cad0f7bb60ee0ab0525b169af5da925fa2d2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
class Nurblizador | |
{ | |
private static string[] _nouns = File.ReadAllText("nouns.txt").Split("\n"); | |
static string Nurble(string text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
namespace Playground | |
{ | |
public class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IUnitOfWork : IDisposable | |
{ | |
#region UoW | |
Database Database { get; } | |
DbChangeTracker ChangeTracker { get; } | |
DbContextTransaction Transaction { get; } | |
DbContextConfiguration Configuration { get; } | |
DbSet Set(Type entityType); | |
DbSet<T> Set<T>() where T : class; | |
int SaveChanges(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXEC sp_msforeachtable 'ALTER TABLE ? NOCHECK CONSTRAINT all' | |
EXEC sp_msforeachtable 'ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all' |
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Data.Entity; | |
using System.Data.SqlClient; | |
using System.Linq; | |
namespace ConsoleApp5 | |
{ | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[regex]$reg = "(?<name>.+?)(\.\d+){3,4}\.nupkg$"; | |
ls *.nupkg | sort -Descending | group { $reg.Match($_.Name).Groups["name"].Value } | where { $_.count -gt 1 } | % { $_.group | select -Skip 5 } | del |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Data.Entity; | |
using System.Dynamic; | |
using System.Linq; | |
namespace EfSqlQueryTree | |
{ | |
class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Sell for futbin value | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Alberto Monteiro | |
// @match https://www.easports.com/fifa/ultimate-team/web-app/* | |
// @match https://www.easports.com/*/fifa/ultimate-team/web-app/* | |
// @updateURL https://gist.github.com/AlbertoMonteiro/273b47dcf656406bd168afb1f8245dcc | |
// @downloadURL https://gist.github.com/AlbertoMonteiro/273b47dcf656406bd168afb1f8245dcc |