Skip to content

Instantly share code, notes, and snippets.

monolifed

Block or report user

Report or block monolifed

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@monolifed
monolifed / mdb_barriers.h
Created Jul 18, 2019 — forked from evandromillian/mdb_barriers.h
memory barriers for wide range of C compilers - for public review, feedback and comments are welcome
View mdb_barriers.h
/*****************************************************************************
* Properly compiler/memory/coherence barriers
* in the most portable way for ReOpenLDAP project.
*
* Feedback and comments are welcome.
* https://gist.github.com/leo-yuriev/ba186a6bf5cf3a27bae7 */
#if defined(__mips) && defined(__linux)
/* Only MIPS has explicit cache control */
# include <asm/cachectl.h>
@monolifed
monolifed / PrintNoteCryptDB.java
Last active May 27, 2017
Supposed to print NoteCrypt Database. Mostly copy/paste from "notecrypt/utils"
View PrintNoteCryptDB.java
//package test_domain.testlib;
import java.io.ByteArrayInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectStreamClass;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
You can’t perform that action at this time.