Skip to content

Instantly share code, notes, and snippets.

View txdv's full-sized avatar

Andrius Bentkus txdv

View GitHub Profile

Upcoming Features in C#

Mads Torgersen, MSFT

This document describes the C# language features currently featured in the March CTP. There's also discussion of a few of the VB features in the preview, where those are intended to be eventually implemented in C# as well.

Note that we have more language features planned that are not yet implemented. So look out for more to come in future CTPs and eventually a shipping version of C#.

@txdv
txdv / README.md
Last active August 29, 2015 14:05
Install script for mono for debian based distributions.

Install latest and newest mono!

So you want to install mono on Debian/Ubuntu?

But doing all the steps on your own is hard?

Just run the scripts and everything will be done for you!

./install-mono.sh
@txdv
txdv / README.MD
Created September 1, 2014 21:40
valve information

Read me please

@txdv
txdv / info.md
Created September 1, 2014 21:41
dota2 crash
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:        12.04
Codename:       precise

I am using the AWM

@txdv
txdv / install.sh
Last active August 29, 2015 14:06
Build script for pam_ssh_agent_auth
#!/bin/bash
# site: https://sites.google.com/site/trevelyansmisc/tech-stuff/sudo-ssh-keyagent-authentication
LINK="pam_ssh_agent_auth-0.10.2.tar.bz2 http://downloads.sourceforge.net/project/pamsshagentauth/pam_ssh_agent_auth/v0.10.2/pam_ssh_agent_auth-0.10.2.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpamsshagentauth%2F&ts=1410869486&use_mirror=netcologne"
wget -O $LINK
tar xvf pam_ssh_agent_auth-0.10.2.tar.bz2
sudo apt-get install -y autotools-dev libssl-dev libpam0g-dev
@txdv
txdv / README.md
Last active August 29, 2015 14:10
A description of what I am trying to plan to do with Mono Coroutines.

I have written a wrapper for libuv in C#. libuv is the IO abstraction for node.js.

libuv basically exposes an event loop for IO (it abstracts all the different platforms away).

Now the problem that I face is that I have a callback based API everywhere and that sucks, because of the constant indentation and rather hard programming against the API:

var server = new TcpListener();
server.Bind("127.0.0.1", 8000);
server.Connection += () => {
@txdv
txdv / test.cs
Last active August 29, 2015 14:11
Test example
using System;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using SharpTox.Core;
using SharpTox.Av;
using Xunit;
namespace SharpTox.Tests
@txdv
txdv / code.cs
Last active August 29, 2015 14:15
Cruel code
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using LibuvSharp;
using LibuvSharp.Threading;
using LibuvSharp.Threading.Tasks;
@txdv
txdv / Example.cs
Last active August 29, 2015 14:22
Strange behaviour on mono
using System;
using System.Linq;
public class Example
{
public static void Main(string[] args)
{
Console.WriteLine(string.Join("\r\n", typeof(string[]).GetInterfaces().Select(i => i.Name)));
}
}
@txdv
txdv / bridge.diff
Last active August 29, 2015 14:27 — forked from anonymous/-
diff --git a/Bridge/Resources/bridge.js b/Bridge/Resources/bridge.js
index 3d92710..0da0eb1 100755
--- a/Bridge/Resources/bridge.js
+++ b/Bridge/Resources/bridge.js
@@ -1,4 +1,4 @@
-/*
+/*
* @version : 1.8.0 - Bridge.NET
* @author : Object.NET, Inc. http://bridge.net/
* @date : 2015-08-17