Skip to content

Instantly share code, notes, and snippets.

@zHaytam
zHaytam / Socks5.cs
Last active November 5, 2024 07:51
A Socks5 implementation in .NET Core (C# 8)
using System;
using System.Globalization;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace Socks
{
public static class Socks5
@ahancock1
ahancock1 / DouglasPeuckerReduction.cs
Last active June 1, 2023 09:00
Ramer–Douglas–Peucker algorithm is a line simplification algorithm for reducing the number of points used to define its shape. Implemented in C# 7
namespace Interpolation
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
/// <summary>
/// Douglas Peucker Reduction algorithm.
/// </summary>
Z420 http://technofaq.org/posts/2014/09/installing-mac-osx-10-9-4-mavericks-on-hp-z420-workstation/
Z620 http://sixflow.net/osx86/System/86380
https://support.hp.com/us-en/product/hp-z620-workstation/5225037/document/c03270936#AbT2
### z620 hackintosh, Sierra, 10.12.4
#### Partial hardware info of z620:
- Intel 82579LM Ethernet
- ALC262 audio
@steve-jansen
steve-jansen / MsDepSvc.Port.cmd
Created February 28, 2013 21:37
Windows batch script to modify the TCP/IP port binding for the Microsoft Web Deployment Agent Service
:: Name: MsDepSvc.Port.cmd
:: Purpose: Modifies the TCP/IP port that the Web Deployment Agent Service
:: (MsDepSvc) listens on. Tested on Win7 Enterprise 32-bit.
:: Author: [email protected]
:: Revision: January 2013
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION
@sayedihashimi
sayedihashimi / msbuild-get-date.proj
Created March 23, 2012 03:02
MSBuild how to get a good formatted date
<Project
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="4.0"
DefaultTargets="Demo" >
<Target Name="Demo">
<PropertyGroup>
<CurrentDate>$([System.DateTime]::Now.ToString(yyyyMMdd-mmss))</CurrentDate>
</PropertyGroup>