Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.


I may be slow to respond.
  • Robots & Data
Block or report user

Report or block rafis

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
View asa-ga4.pml
mtype { READY, COMPLETE };
chan taskBus = [128] of { mtype };
active proctype TaskClient() {
taskBus ! LOAD_TASK;
:: taskBus ? TASK_READY ->
taskBus ? HELO_CLIENT;
:: taskBus ? HELO_CLIENT ->
rafis / compiling-phantomjs-on-raspberry-pi.txt
Created Mar 9, 2017
Compiling Phantomjs on Raspberry Pi
View compiling-phantomjs-on-raspberry-pi.txt
There is an excellent article about compiling Phantomjs on Raspberry Pi 2:
But I would like to emphasize attention on one part which is RAM usage. RAM usage of cc1plus on this project is really huge. If you will
compile with `./ --jobs=N` where N is greater or equal 2 then you will propably run into issues:
g++ -c -Wall -Wextra -Wreturn-type -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -pipe -ffunction-sections -fdata-sections -fno-strict-aliasing -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -D_REENTRANT -MMD -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_GRAPHICSVIEW -DQT_NO_GRAPHICSEFFECT -DQT_NO_STYLESHEET -DQT_NO_STYLE_CDE -DQT_NO_STYLE_CLEANLOOKS -DQT_NO_STYLE_MOTIF -DQT_NO_STYLE_PLASTIQUE -DQT_NO_PRINTPREVIEWDIALOG -DBUILDING_QT__=1 -
rafis / wsapi.fcgi
Last active Dec 25, 2015
This is unrolled version of wsapi.fcgi, so the only dependency is `lfcgi`. Beware! Unlike WSAPI in this implementation call to assumes that it returns a string as third parameter, not an iterator. I have renamed it to `body` from `res_iter`. Also there is MobDebug (something like analog of Zend XDebug) being included and logging to `wsap…
View wsapi.fcgi
#!/usr/bin/env luajit
local jit = rawget(_G or _ENV, "jit")
--#if ENV ~= "PRODUCTION" then, true)
if jit.arch == "x64" then
package.cpath = package.cpath .. ";/usr/lib/x86_64-linux-gnu/lua/5.1/?.so"
You can’t perform that action at this time.