Skip to content

Instantly share code, notes, and snippets.

View lhutyra's full-sized avatar
🎯
Focusing

lhutyra lhutyra

🎯
Focusing
View GitHub Profile
@lhutyra
lhutyra / LinuxUtil.cs
Created November 11, 2019 20:36 — forked from xoofx/LinuxUtil.cs
Run the same Linux command transparently from Windows (via WSL) and Linux
// Copyright 2019 - Alexandre MUTEL - License MIT
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;
// Example of running a Linux command from .NET that can run transparently on Windows (via WSL) or Linux
// Assuming you are running on the same distribution, you can integrate this in your tests for example.
namespace YourNameSpace.Tests
@lhutyra
lhutyra / vpn.md
Created October 21, 2019 18:43 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

A Russian translation of this article can be found here, contributed by Timur Demin. There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.

Why not?

@lhutyra
lhutyra / BloomFilter.cs
Created September 30, 2019 19:34 — forked from richardkundl/BloomFilter.cs
Bloom filter implementation in c#.
namespace BloomFilter
{
using System;
using System.Collections;
/// <summary>
/// Bloom filter.
/// </summary>
/// <typeparam name="T">Item type </typeparam>
public class Filter<T>
@lhutyra
lhutyra / robot.js
Created December 4, 2012 12:59
Tobor
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);