I hereby claim:
- I am daniefer on github.
- I am daniefer (https://keybase.io/daniefer) on keybase.
- I have a public key ASA1L3JYbSShLgj2LJNSHhhKZMRS_HVi0dtvXrNSZkwi2go
To claim this, I am signing this object:
static Lazy<(IDictionary, Func<object, string>, Func<object, ICollection>)> ReflectionShit = new Lazy<(IDictionary, Func<object, string>, Func<object, ICollection>)>(() => | |
{ | |
var SqlConnectionFactoryType = typeof(System.Data.SqlClient.SqlConnection).Assembly.GetType("System.Data.SqlClient.SqlConnectionFactory"); | |
var SqlConnectionFactoryInstanceField = SqlConnectionFactoryType.GetRuntimeField("SingletonInstance"); | |
var instance = SqlConnectionFactoryInstanceField.GetValue(null); | |
var DbConnectionFactoryType = AppDomain.CurrentDomain.GetAssemblies().Select(a => a.GetType("System.Data.ProviderBase.DbConnectionFactory")).FirstOrDefault(x => x != null); | |
var DbConnectionPoolGroupType = AppDomain.CurrentDomain.GetAssemblies().Select(a => a.GetType("System.Data.ProviderBase.DbConnectionPoolGroup")).FirstOrDefault(x => x != null); | |
var DbConnectionPoolKeyType = AppDomain.CurrentDomain.GetAssemblies().Select(a => a.GetType("System.Data.Common.DbConnectionPoolKey")).FirstOrDefault(x => x != null); | |
var connecti |
private void Template<T>(T _ = default) | |
{ | |
typeof(T).GetProperties().ToList().ForEach(p => | |
{ | |
switch (true) | |
{ | |
case true when (typeof(decimal).IsAssignableFrom(p.PropertyType)): | |
_testOutputHelper.WriteLine($"Assert.Equal(0m, result.{p.Name});"); | |
break; | |
case true when (typeof(int).IsAssignableFrom(p.PropertyType)): |
# ASP.NET Core | |
# Build and test ASP.NET Core projects targeting .NET Core. | |
# Add steps that run tests, create a NuGet package, deploy, and more: | |
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core | |
pool: | |
vmImage: 'Ubuntu 16.04' | |
variables: | |
buildConfiguration: 'Release' |
[Path] | |
PathModified=/var/www/<your service publish directory here> | |
[Install] | |
WantedBy=multi-user.target |
I hereby claim:
To claim this, I am signing this object:
msiexec /a PathToMSIFile /qb TARGETDIR=DirectoryToExtractTo |
hg log -r 0:tip --template "{files % '{rev} - {file}\n'}" | find "$1" |
[alias] | |
# Shows all users and the number of commits user has made since the creation of the branch you provide; ordered ascending. | |
# $1 = All ancestors of the first commit of the branch you specify | |
active-users = !hg log -r "min(branch('$1')):" --template "{author}\r\n" | sort | uniq -c | sort -n | |
# Shows all files that this use has touched since the creation of the branch you provide; ordered ascending. | |
# $1 = All ancestors of the first commit of the branch you specify | |
# $2 = User you want to filter on | |
# $3 = Extra filter options for hg log | |
active-files = !hg log -r "min(branch('$1')):" -u '$2' $3 --template "{files % '{file}\n'}" | sort | uniq -c | sort -n |