Skip to content

Instantly share code, notes, and snippets.


Duncan Ogilvie mrexodia

View GitHub Profile
View scrollbars.cpp
//scrollbar style (
horizontalScrollBar()->setStyleSheet("QScrollBar:horizontal{border:1px solid grey;background:#f1f1f1;height:10px}QScrollBar::handle:horizontal{background:#aaa;min-width:20px;margin:1px}QScrollBar::add-line:horizontal,QScrollBar::sub-line:horizontal{width:0;height:0}");
verticalScrollBar()->setStyleSheet("QScrollBar:vertical{border:1px solid grey;background:#f1f1f1;width:10px}QScrollBar::handle:vertical{background:#aaa;min-height:20px;margin:1px}QScrollBar::add-line:vertical,QScrollBar::sub-line:vertical{width:0;height:0}");
View checksum.cpp
#include <stdio.h>
#include <stdint.h>
#include <windows.h>
int MAGIC = 91717;
int g_dwSeed = 0;
int8_t getCharIndex(char c)
mrexodia / undocumented.h
Last active Jun 5, 2021
universal PEB structure
View undocumented.h
#include <windows.h>
namespace Undocumented
#pragma pack(push)
#pragma pack(1)
mrexodia / main.cpp
Created Oct 17, 2014
Template Header/Source
View main.cpp
#include <iostream>
#include <vector>
#include "Test.h"
#include "Test.cpp"
int main()
int n;
The MIT License (MIT)
Copyright (c) 2014
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:
mrexodia / Encrypted iTunes Library.grammar
Created Dec 16, 2014
Encrypted iTunes Library File Format
View Encrypted iTunes Library.grammar
<?xml version="1.0" encoding="UTF-8"?>
<ufwb version="1.9">
<grammar name="Encrypted iTunes Library" start="id:4" author="Mr. eXoDia" email="" fileextension="itl" uti="">
<description>Grammar for encrypted iTunes Library files.</description>
<structure name="Defaults" id="5" encoding="ISO_8859-1:1987" endian="little" signed="no"/>
<structure name="iTunes Library" id="4" extends="id:5">
<structref name="hdfm" id="8" structure="id:7"/>
<binary name="encryptedData" id="9" length="remaining">
<description>This chunk of data is encrypted using AES/ECB/NoPadding with the key &quot;BHUILuilfghuila3&quot;. After decryption, you have to inflate the data using ZLIB.
mrexodia / Decrypted iTunes Library.grammar
Created Dec 27, 2014
Decrypted iTunes Library File Format
View Decrypted iTunes Library.grammar
<?xml version="1.0" encoding="UTF-8"?>
<ufwb version="1.9">
<grammar name="Decrypted iTunes Library" start="id:148" author="Mr. eXoDia" email="" fileextension="itl" uti="">
<description>Grammar for decrypted iTunes Library files.</description>
<structure name="Defaults" id="149" repeatmin="0" repeatmax="-1" encoding="ISO_8859-1:1987" endian="little" signed="no"/>
<structure name="iTunes Library" id="148" repeatmin="0" repeatmax="-1" extends="id:149" order="variable">
<structref name="hdfm" id="152" repeatmin="0" repeatmax="-1" structure="id:151"/>
<structref name="msdh" id="154" repeatmin="0" repeatmax="-1" structure="id:153"/>
<structure name="hdfm" id="151" length="this.headerLength" repeatmin="0" repeatmax="-1" extends="id:149" endian="big">
View FindPattern.cpp
#include "FindPattern.h"
#include <algorithm>
#include <cctype>
#include <string>
using namespace std;
struct PatternByte
struct PatternNibble
mrexodia / ClipboardTest.cs
Created Jan 17, 2015
ClipboardTest for GitExtensions
View ClipboardTest.cs
using System;
using System.Windows.Forms;
using System.Drawing;
namespace ClipboardTest
public class Form1 : Form
public Form1()
View command.cpp
#include "command.h"
Command::Command(const String & command)
ParseState state = Default;
int len = command.length();
for(int i=0; i<len; i++)
char ch = command[i];