Skip to content

Instantly share code, notes, and snippets.

View wildbook's full-sized avatar

wildbook

  • 07:30 (UTC +01:00)
View GitHub Profile
// Origin: https://gist.github.com/wildbook/5025d6f9688f08a7cf1d4b9f75bb106c
// -------------------------------------------------------------------
// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
// Version 2, December 2004
//
// Copyright (C) 2021 Wildbook
//
// Everyone is permitted to copy and distribute verbatim or modified
// copies of this license document, and changing it is allowed as long
@wildbook
wildbook / WebSocketServer.cs
Last active March 1, 2022 11:10
websocket stuff
// Copyright 2019 Wildbook
// MIT License:
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
@wildbook
wildbook / Reflection.cs
Last active May 15, 2019 03:28
A simple C# reflection class
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
/**
* Reflection.cs - a class used for working with reflections in .Net
*
* Written in 2019 by Wildbook (Wildbook#2203)
*
@wildbook
wildbook / corrode.py
Last active January 24, 2019 23:38
Ports moonshadow565's SiphoningStrike structs from C# to Rust
import re
import os
import sys
# Version 1
# USAGE:
# corrode.py
# MISSING:
using System;
namespace BDODecryptFramework
{
public static class BdoDecryptCores
{
public static int LolReplayCore(byte[] source, int startPos, out byte[] destination, int decompressedSize)
{
destination = new byte[decompressedSize];
@wildbook
wildbook / WebSocketServer.cs
Created November 24, 2018 21:37
Very simple websocket server in C#
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using System.Threading;
public class WebSocketServer
{
public readonly List<WebSocketSession> Clients = new List<WebSocketSession>();
#include <Misc.au3>
#include <WinAPIGdi.au3>
#include <WinAPISys.au3>
HotKeySet("§", "TempAllow")
; Hotkey --^
While (True)
Local $tPos = _WinAPI_GetMousePos() ;Get mouse position
Local $hMonitor = _WinAPI_MonitorFromPoint($tPos) ;Get which monitor the mouse is on
@wildbook
wildbook / Utility.cs
Last active June 28, 2017 08:36
Vector utilities for Unity3D
using System;
using UnityEngine;
namespace Wildbook.Utilities
{
public static class VectorUtilities
{
#region Modify existing variable
/// <summary>
/// Modifies the specified axis of a Vector4 variable.