Skip to content

Instantly share code, notes, and snippets.

@Thealexbarney
Thealexbarney / AesContext.cs
Last active September 17, 2022 22:05
C# AES-NI 128-bit
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace LibHac.Crypto
{
public class AesContext : IAesContext
{
@Thealexbarney
Thealexbarney / PqCrypt.cs
Last active June 5, 2018 14:10
Pokemon Quest save decrypter and encrypter
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace PqCrypt
{
public static class Program
{
public static readonly byte[] Key = Encoding.UTF8.GetBytes("C7PxX4jPfPQ2SmzB");
using System;
using System.Collections.Generic;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace Bench
{
class Program
{
static void Main(string[] args)
@Thealexbarney
Thealexbarney / mab.bt
Created February 1, 2018 22:06
010 Editor template for Square Enix MABF files
//------------------------------------------------
//--- 010 Editor v8.0 Binary Template
//
// File: Square Enix MABF
// Authors:
// Version:
// Purpose:
// Category:
// File Mask: *.mab
// ID Bytes: mabf
@Thealexbarney
Thealexbarney / IListPerformance.cs
Created January 25, 2017 06:25
Simple IList performance benchmark
using System;
using System.Collections.Generic;
using System.Collections;
using System.Diagnostics;
namespace IListPerformance
{
public class Program
{
public static void Main(string[] args)
@Thealexbarney
Thealexbarney / 1_Non-Nightlies
Last active April 21, 2024 10:34
CyanogenMod Downloads
http://oss.reflected.net/jenkins/146436/cm-12.1-20160127-SNAPSHOT-YOG7DAO3J1-obake.zip
http://oss.reflected.net/jenkins/129246/cm-12.1-20151007-SNAPSHOT-YOG4PAO332-flounder.zip
http://oss.reflected.net/jenkins/124145/cm-12.1-20150901-SNAPSHOT-YOG4PAO23E-vs985.zip
http://oss.reflected.net/jenkins/115613/cm-11-20150626-SNAPSHOT-XNG3CAO1L6-acclaim.zip
http://oss.reflected.net/jenkins/175002/cm-13.0-20160819-SNAPSHOT-ZNH5YAO0IA-klteduos.zip
http://oss.reflected.net/jenkins/153948/cm-13.0-20160316-SNAPSHOT-ZNH0EAO1QD-kipper.zip
http://oss.reflected.net/jenkins/174534/cm-13.0-20160816-SNAPSHOT-ZNH5YAO0F9-huashan.zip
http://oss.reflected.net/jenkins/124006/cm-11-20150901-SNAPSHOT-XNG3CAO3G2-tf701t.zip
http://oss.reflected.net/jenkins/124146/cm-12.1-20150901-SNAPSHOT-YOG4PAO23E-xt897.zip
http://oss.reflected.net/jenkins/135180/cm-12.1-20151117-SNAPSHOT-YOG7DAO1KI-d800.zip
using System;
using System.Linq;
using Microsoft.Data.Entity;
namespace Test
{
public static class Program
{
static void Main(string[] args)
{