Skip to content

Instantly share code, notes, and snippets.

@funnythingz
funnythingz / gist:dcbc2d326b6a5572963e
Last active December 7, 2015 08:34
Nginx + FastCGI daemon + goji
package main
import (
"fmt"
"github.com/zenazn/goji"
"github.com/zenazn/goji/web"
"net"
"net/http"
"net/http/fcgi"
"os"
package main
import (
"fmt"
"github.com/zenazn/goji"
"github.com/zenazn/goji/web"
"net/http"
"os"
"syscall"
)
package main
import (
"fmt"
"html"
"net/http"
"os"
"syscall"
)
Style/NumericLiterals:
Enabled: false
@funnythingz
funnythingz / gulpfile
Created January 17, 2015 08:04
React with jsx
var gulp = require('gulp');
var react = require('gulp-react');
gulp.task('jsx', function() {
return gulp.src('src/jsx/**/*.jsx')
.pipe(react())
.pipe(gulp.dest('dist'));
});
gulp.task('watch', function() {
root@edison:~# reboot ota
Unmounting /factory...
Unmounting /home...
[ OK ] Stopped target Sound Card.
[ OK ] Removed slice system-systemd\x2dfsck.slice.
Stopping Watchdog sample daemon...
[ OK ] Stopped target Multi-User System.
Stopping Edison RM button handler...
[ OK ] Unmounted Mount for SDCard.
Stopping Kernel Logging Service...
Unmounting /factory...
Unmounting /home...
[ OK ] Stopped target Sound Card.
[ OK ] Removed slice system-systemd\x2dfsck.slice.
Stopping Watchdog sample daemon...
[ OK ] Stopped target Multi-User System.
Stopping Edison RM button handler...
Stopping Kernel Logging Service...
Stopping Bluetooth rf kill event daemon...
Stopping Daemon to handle arduino sketches...
******************************
PSH KERNEL VERSION: b0182727
WR: 20104000
******************************
SCU IPC: 0x800000d0 0xfffce92c
PSH miaHOB version: TNG.B0.VVBD.0000000c
microkernel built 23:15:13 Apr 24 2014
brew install -f openssl
RUBY_CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" rbenv install 2.1.3
brew install vim --HEAD --with-lua --with-luajit