Skip to content

Instantly share code, notes, and snippets.

View cggos's full-sized avatar
🌴
On vacation

Gavin Gao cggos

🌴
On vacation
View GitHub Profile
@cggos
cggos / numpy_include_error.sh
Last active March 25, 2019 03:29
fatal error: numpy/arrayobject.h: No such file or directory
#!/usr/bin/env sh
# python console
import numpy
numpy.get_include()
sudo ln -s /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy /usr/include/numpy
@cggos
cggos / InterestingCode.c
Created November 30, 2017 15:07
a piece of interesting code
#include <stdio.h>
#include <stdlib.h>
#define unix 1
int main(int argc, char **argv)
<%
printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);
return 0;
%>