Skip to content

Instantly share code, notes, and snippets.

View image72's full-sized avatar

image72 image72

View GitHub Profile
@image72
image72 / index.html
Last active July 5, 2016 06:46 — forked from anonymous/index.html
JS Bin// source http://jsbin.com/naguhi / file upload preview
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style>
#container > img {
width: 200px;
@image72
image72 / build_nginx.sh
Created March 2, 2016 08:28 — forked from Belphemur/build_nginx.sh
Compiling Nginx with LibreSSL (and http2) & RTMP module & PageSpeed (optional)
#!/usr/bin/env bash
# names of latest versions of each package
export NGINX_VERSION=1.9.12
export VERSION_PCRE=pcre-8.38
export VERSION_LIBRESSL=libressl-2.3.2
export VERSION_NGINX=nginx-$NGINX_VERSION
#export NPS_VERSION=1.9.32.10
#export VERSION_PAGESPEED=v${NPS_VERSION}-beta
@image72
image72 / handler.js
Last active May 23, 2016 06:57 — forked from jeffrafter/handler.js
Simple HTTP Server and Router in node.js
exports.createHandler = function (method) {
return new Handler(method);
}
Handler = function(method) {
this.process = function(req, res) {
params = null;
return method.apply(this, [req, res, params]);
}
}
@image72
image72 / eval.stripper.js
Created January 22, 2016 18:50 — forked from ChiChou/eval.stripper.js
Hook eval to deobfuscate javascript
/**
* requires node.js with ES6 support, or babel
*/
'use strict';
const vm = require('vm');
const fs = require('fs');
const __loggers__ = {};
function log(tag) {