Skip to content

Instantly share code, notes, and snippets.

View EgorBo's full-sized avatar
🛠️
Working from home

Egor Bogatov EgorBo

🛠️
Working from home
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
make all-local
make[7]: Entering directory '/cygdrive/c/prj/mono/mcs/jay'
make[7]: Nothing to be done for 'all-local'.
make[7]: Leaving directory '/cygdrive/c/prj/mono/mcs/jay'
make[6]: Leaving directory '/cygdrive/c/prj/mono/mcs/jay'
make[6]: Entering directory '/cygdrive/c/prj/mono/mcs/class'
make[7]: Entering directory '/cygdrive/c/prj/mono/mcs/class/corlib'
make all-local
make[8]: Entering directory '/cygdrive/c/prj/mono/mcs/class/corlib'
mono C:/prj/mono/external/roslyn-binaries/Microsoft.Net.Compilers/Microsoft.Net.Compilers.2.6.0/tools/csc.exe /codepage:65001 /nologo /noconfig -unsafe -nostdlib -nowarn:612,618,1635 -d:INSIDE_CORLIB,MONO_CULTURE_DATA -d:LIBC -d:FEATURE_PAL,GENERICS_WORK,FEATURE_LIST_PREDICATES,FEATURE_SERIALIZATION,FEATURE_ENCODINGNLS,FEATURE_ASCII,FEATURE_LATIN1,FEATURE_UTF7,FEATURE_UTF32,MONO_HYBRID_ENCODING_SUPPORT,FEATURE_ASYNC_IO,NEW_EXPERIMENTAL_ASYNC_IO,FEATURE_UTF32,FEATURE_EXCEPTIONDISPATCHINFO,FEATURE_CORRUPTING_EXCEPTIONS,FEATURE_EXCEPTION_NOTIFICATIONS,FEATURE_STRONGNAME_MI
@EgorBo
EgorBo / test
Created January 22, 2018 13:51
using System;
using System.Data.SqlClient;
namespace Test
{
class Program
{
static void Main(string[] args)
{
var sqlCommandLength = 1024*16; // 702 works as expected, 703 does not.
@EgorBo
EgorBo / test
Created January 22, 2018 13:51
using System;
using System.Data.SqlClient;
namespace Test
{
class Program
{
static void Main(string[] args)
{
var sqlCommandLength = 1024*16; // 702 works as expected, 703 does not.
@EgorBo
EgorBo / log.log
Created January 29, 2018 16:03
log.log
Unhandled Exception:
System.Net.WebException: Error: TrustFailure (The authentication or decryption has failed.) ---> System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server. Error code: 0xffffffff800b010a
at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) [0x00046] in <09af3a583f1447f5a66593046455324a>:0
at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) [0x00001] in <09af3a583f1447f5a66593046455324a>:0
at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) [0x00075] in <09af3a583f1447f5a66593046455324a>:0
@EgorBo
EgorBo / cert.cs
Last active February 14, 2018 00:45
using System;
using System.IO;
using System.Security.Cryptography.X509Certificates;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
using System;
using System.Runtime.CompilerServices;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace MyBenchmarks
{
public class Tests
{
private const int N = 10000;
@EgorBo
EgorBo / FindDups.cs
Created March 16, 2018 09:30
FindDups.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace ConsoleApp13
{
class Program
{
@EgorBo
EgorBo / yield bug.cs
Created March 19, 2018 16:29
yield bug.cs
using System;
using System.Collections.Generic;
using System.Linq;
public class Program
{
public static void Main()
{
Console.WriteLine(MyLinqTest.LinqTest.Test());
}
@EgorBo
EgorBo / yield.cs
Last active March 19, 2018 16:49
yield.cs
using System;
using System.Collections.Generic;
using System.Linq;
public static class Program
{
public static void Main()
{
var slots = GetSlots().Concat(new[] { new Slot("q") });
var flatten = slots.Flatten(container => container.AllParentSlots).ToArray();