Skip to content

Instantly share code, notes, and snippets.

View sp9usb's full-sized avatar

Kamil Myśliwiec sp9usb

View GitHub Profile
@sp9usb
sp9usb / windbg.md
Created October 12, 2025 14:42 — forked from MangaD/windbg.md
Comprehensive Guide to Using WinDbg (Windows Debugger)

📌 Comprehensive Guide to Using WinDbg (Windows Debugger)

CC0

Disclaimer: ChatGPT generated document.

WinDbg (Windows Debugger) is a powerful debugging tool for Windows that can be used for kernel-mode and user-mode debugging, crash dump analysis, reverse engineering, and performance analysis.

This guide will cover:

@sp9usb
sp9usb / ProcessDumpCreationService.cs
Last active August 18, 2020 09:37
Dump process from C#
public class ProcessDumpCreationService
{
private readonly string _dumpFile;
private readonly DumpType _dumpType;
public enum DumpType
{
MiniDumpNormal = 0x00000000,
MiniDumpWithDataSegs = 0x00000001,
MiniDumpWithFullMemory = 0x00000002,
@sp9usb
sp9usb / ffmpeg-cheatsheet.md
Created August 13, 2020 17:20 — forked from nickkraakman/ffmpeg-cheatsheet.md
FFmpeg cheat sheet for 360 video

FFmpeg Cheat Sheet for 360º video

Brought to you by Headjack

 
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.

 
Let's start with some basics:

  • ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file
@sp9usb
sp9usb / c#-to-rust.md
Created July 9, 2020 17:19 — forked from carols10cents/c#-to-rust.md
C# to Rust Cheat Sheet

Thanks to @seejee for making this for me!!!

C# to Rust Cheat Sheet

The goal of this is to have an easily-scannable reference for the most common syntax idioms in C# and Rust so that programmers most comfortable with C# can quickly get through the syntax differences and feel like they could read and write basic Rust programs.

What do you think? Does this meet its goal? If not, why not?

Variables

@sp9usb
sp9usb / disablestrongname.ps1
Created January 15, 2020 07:54 — forked from rvjykmr/disablestrongname.ps1
Powershell script for disabling Strong Name Validation
Function DisableStrongSignValidation
{
reg DELETE "HKLM\Software\Microsoft\StrongName\Verification" /f
reg ADD "HKLM\Software\Microsoft\StrongName\Verification\*,*" /f
if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64")
{
reg DELETE "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification" /f
reg ADD "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification\*,*" /f
}

Sometimes distribution providers (such as UCS) only give you VirtualBox .ova files to test their software. Here is how you can easily and non-interactively import a .ova file into a .box for use with Vagrant.

$ VBoxManage import ./UCS-Virtualbox-Demo-Image.ova --vsys 0 --eula accept                                                                                                                                   
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /home/crohr/dev/ucs/./UCS-Virtualbox-Demo-Image.ova...                                                                                                                       
OK.                                                                                                                                                                                                        
Disks:  vmdisk1 53687091200     -1      http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized       UCS-Demo-Image-virtualbox-d
@sp9usb
sp9usb / group-objects-by-property.md
Created March 26, 2019 06:37 — forked from JamieMason/group-objects-by-property.md
Group Array of JavaScript Objects by Key or Property Value

Group Array of JavaScript Objects by Key or Property Value

Implementation

const groupBy = key => array =>
  array.reduce((objectsByKeyValue, obj) => {
    const value = obj[key];
    objectsByKeyValue[value] = (objectsByKeyValue[value] || []).concat(obj);
    return objectsByKeyValue;
[root@IS ~]# ssh -g localhost -L 8080:172.28.217.207:8080 -L 49187:172.28.217.207:49187
@sp9usb
sp9usb / NLog.config
Created October 12, 2018 12:34
NLog example config
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
autoReload="true"
throwExceptions="false"
internalLogLevel="Off" internalLogFile="logs/nlog-internal.log" >
<!--
See https://github.com/nlog/nlog/wiki/Configuration-file
@sp9usb
sp9usb / gist:300ac791d9fa618c8346420270dec297
Created April 26, 2018 09:11
[git] merge last commits into one
git rebase -i HEAD~5