Skip to content

Instantly share code, notes, and snippets.

View concatime's full-sized avatar

Issam Maghni concatime

  • Montréal, QC.
View GitHub Profile
@concatime
concatime / .sh
Last active July 12, 2018 13:27
Pretty Useless Bleeding Edge OpenResty — Latest NGiИX, OpenSSL, LuaJIT & PCRE + LuaRocks & Lapis webframework » bash <(curl -s https://gist.githubusercontent.com/concatime/04127487894c522cb240e0f95bdd92e7/raw)
OPENSSL=openssl-1.0.2o
OPENRESTY=openresty-1.13.6.2
LUAROCKS=2.4.4
LUAJIT=LuaJIT-2.1.0-beta3
NGX=nginx-1.15.1
PCRE=8.42
# OpenSSL 1.1 & PCRE2 (10.0) aren't _yet_ supported.
# https://github.com/openresty/lua-nginx-module/issues/852
# https://stackoverflow.com/a/34795745
# Conf
RUST=1.21.0
LUAJIT=2.1.0-beta3
CC=gcc
CFLAGS+=-pipe
MAKEFLAGS+=-j`nproc`
export CFLAGS MAKEFLAGS
# Exit if any exit 1
set -e
@concatime
concatime / -.md
Last active September 27, 2018 02:12
Toolbox for compilation!

Global dependencies: git cc c++ ld unzip

cmake ninja autotools(m4 autoconf[autoreconf] automake[aclocal])

Package Repology Minimal dependencies (optional)
NGiИX jemalloc pcre libressl zlib
cURL c-ares mbedtls nghttp2 (libssh2)
LibreSSL
mbedTLS zlib
@concatime
concatime / .ngx_wizard.md
Last active April 19, 2018 21:42
[DEPRECATED] ngx_wizard.sh

DEPRECATED, evolved to this.

#!/bin/sh
#Adding sources for NodeJS
cat <<EOT | sudo cp /dev/stdin /etc/apt/sources.list.d/nodesource.list
deb https://deb.nodesource.com/node_7.x yakkety main
deb-src https://deb.nodesource.com/node_7.x yakkety main
EOT
#Adding NodeJS's public key
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add