Skip to content

Instantly share code, notes, and snippets.

@nilportugues
nilportugues / react-lumen.php
Last active December 8, 2018 18:33
React+Lumen
<?php
// bootstrap/react.php
// Remember, we need to do first: composer require react/react!
$app = include('app.php');
$host = 'localhost';
$port = 9000;
$reactApp = function (\React\Http\Request $request, \React\Http\Response $response) use ($app, $host, $port) {
@padcom
padcom / install-git.sh
Created June 19, 2011 10:23
Automated install of Git host on Ubuntu 10.04 with authorization and web interface for browsing
#!/bin/sh
#
# install required packages
#
apt-get install apache2 git-core gitweb
#
# create folder to host the repositories
#