View IUnitOfWork.cs
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();
View disableconstraints.sql
EXEC sp_msforeachtable 'ALTER TABLE ? NOCHECK CONSTRAINT all'
EXEC sp_msforeachtable 'ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all'
View docker events output.md
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
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
View Program.cs
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Data.SqlClient;
using System.Linq;
namespace ConsoleApp5
{
class Program
View run.ps1
[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
View Program.cs
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Dynamic;
using System.Linq;
namespace EfSqlQueryTree
{
class Program
{
View index.js
// ==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
View Program.cs
using System;
namespace ConsoleApp2
{
class Program
{
private static readonly Type StringType = typeof(string);
static void Main(string[] args)
{
View SelectCertificate.cs
var store = new X509Store("MY");
store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);
var collection2 = store.Certificates.Find(X509FindType.FindByKeyUsage, X509KeyUsageFlags.DigitalSignature, false);
var scollection = X509Certificate2UI.SelectFromCollection(collection2, "Certificado(s) Digital(is) disponível(is)", "Selecione o certificado digital para uso no aplicativo", X509SelectionFlag.SingleSelection);