Skip to content

Instantly share code, notes, and snippets.

View Neo-Desktop's full-sized avatar
🙃

Neo Neo-Desktop

🙃
  • San Diego, CA
View GitHub Profile
@notwa
notwa / halokey.c
Last active February 15, 2024 21:13
Halo CE product key, reverse engineered
/*
most of this code was reverse engineered from PidGen.dll, with hashes:
MD5: 3e275cb6c964ad9e3bffa3f37e1eef1e
SHA-1: 325d4bc9b603075ba96c48bfaf31588cb57026c6
SHA-256: 62361c9b86f7899d736986829d7a8529573e030c6656f04f3244f3b792a6b291
how to debug:
* ensure Halo is not installed OR temporarily rename the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft Games\Halo
* run the Halo CE installer off the CD
@bonniss
bonniss / github-search-cheatsheet.md
Last active April 23, 2024 15:22
Github search cheatsheet from official docs.

Github Search Cheat Sheet

GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.

For more information, visit our search help section.

Basic search

@JerryLokjianming
JerryLokjianming / Crack Sublime Text Windows and Linux.md
Last active April 25, 2024 04:03
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
  3. Open file select sublime_text.exe
  4. Offset 0x8545: Original 84 -> 85
  5. Offset 0x08FF19: Original 75 -> EB
  6. Offset 0x1932C7: Original 75 -> 74 (remove UNREGISTERED in title bar, so no need to use a license)
@snarkbait
snarkbait / BitStream.java
Created August 9, 2015 00:45
Huffman Tree example
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
@echo off
SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@snarkbait
snarkbait / BinaryHeap.java
Last active December 10, 2022 22:45
Generic Min/Max Binary Heap
/* Generic Min/Max Binary Heap
* for /r/javaexamples
*
*/
import java.util.Arrays;
@SuppressWarnings("unchecked")
/**
* Creates an array-based binary heap. Defaults to 'min' (Priority Queue)
@going-digital
going-digital / fast_trig.frag
Created December 17, 2012 17:21
OpenGL ES Fast sin/cos functions. Double the speed of native on Raspberry Pi / Videocore IV
// Language is OpenGL ES, but gist.github.com doesn't know that language
//
// Approximation is based on multiply/accumulate, because thats the only
// thing Videocore can do quickly!
precision highp float;
float sinf(float x)
{
x*=0.159155;
@swdunlop
swdunlop / mp3collect.go
Created January 31, 2011 23:29
a simple utility to hardlink mp3 files to a hash of their non-ID3 contents
package main
import "io"
import "os"
import "fmt"
import "encoding/hex"
import "crypto/sha256"
import "path"
import "strings"