Skip to content

Instantly share code, notes, and snippets.

@pingec
pingec / DumpHttpRequests.cs
Created November 14, 2017 20:35
C# Simple http server to dump requests to console (HttpListener)
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text;
namespace DumpHttpRequests
{
internal class Program
{
@ScriptingPro
ScriptingPro / find dupe files by hash.ps1
Created October 25, 2017 23:57
powershell find duplicate files
# powershell find duplicate files md5
# powershell get childitem filter duplicates
# script to find duplicate files windows
# powershell duplicate files md5
gci * -Recurse | get-filehash -Algorithm MD5 | Group-Object hash | ?{$_.count -gt 1} | select @{n='DupeCount';e={$_.Count}}, @{n='DupeFiles';e={$_.Group.Path -join [System.Environment]::NewLine}} | Out-GridView
@zezba9000
zezba9000 / HTTPServer.cs
Last active March 13, 2023 11:52
HTTP C# server
// Modified from: https://gist.github.com/aksakalli/9191056
using System;
using System.Collections.Generic;
using System.Net;
using System.IO;
using System.Threading;
namespace MyNamespace
{