Skip to content

Instantly share code, notes, and snippets.

@hibiyasleep
hibiyasleep / GodDrinksJava.java
Last active July 18, 2024 18:57
world.execute(me);
package goddrinksjava;
/**
* The program GodDrinksJava implements an application that
* creates an empty simulated world with no meaning or purpose.
*
* @author momocashew
* @lyrics hibiyasleep
*/
@angelovescio
angelovescio / gist:84551fa3e9a49df2f036
Last active May 10, 2017 14:41
C# NTFS EA Example
[StructLayout(LayoutKind.Sequential, Pack = 0)]
public struct IO_STATUS_BLOCK
{
public uint status;
public IntPtr information;
}
[DllImport("ntdll.dll", ExactSpelling = true)]
public static extern uint NtQueryEaFile(
SafeFileHandle handle,
out IO_STATUS_BLOCK ioStatus,