Nginx Server Blocks configuration to run more than one Laravel 5.1 web-app off of a single Linux server
- PHP package: php5-fpm php5-mcrypt php5-mysql
- Laravel 5.1
- Nginx 1.8
<style> | |
body { display: flex; align-items: center; justify-content: center; } | |
h1 { font-size: 60px; font-family: Helvetica; } | |
</style> | |
<script type="module"> | |
import { innerHTML, html, use } from 'https://diffhtml.org/master/diffhtml'; | |
import createLogger from 'https://diffhtml.org/master/diffhtml-middleware-logger'; | |
import inlineTransitions from 'https://diffhtml.org/master/diffhtml-middleware-inline-transitions'; |
#!/bin/bash | |
################################################################################ | |
# Rather than run postgres in its own container, we want to run it on | |
# the (Ubuntu) host and allow: | |
# | |
# + peer connections on the host | |
# + local md5 connections from any docker container | |
# | |
# THIS IS COPY/PASTED FROM COMMAND LINE INPUT AND IS UNTESTED AS A SINGLE SCRIPT | |
################################################################################ |
version: "3.1" | |
services: | |
vscode: | |
container_name: vscode | |
image: codercom/code-server | |
ports: | |
- "8080:8080" | |
volumes: | |
- ./.config:/home/coder/.config |
mostly in the realm of creative coding and graphics programming
lots of these are my own :)
https://www.npmjs.org/package/wzrd (browserify dev server)
https://www.npmjs.org/package/budo (like wzrd but with incremental watching & LiveReload)
https://www.npmjs.org/package/beefy (more fully-featured dev server)
I have managed to install this… and make it work. I implemented it for Facebook and Google, but you can extend it. My solution it is mostly as described in #116, with a bit of more code presented. The key aspects that lack in the #116 presentation (IMO) are:
oauth_user_provider
in the security.yml
with your custom created serviceHere are the steps:
routing.yml
I have added all the routes for both bundles.config.yml
mostly as it is presented in the HWIOAuthBundle.security.yml
mostly as it is presented in the HWIOAuthBundle (though my routes are using /login
pattern, not /connect
). Also, the oauth_user_provider
is set for my custom service.var ffmpeg = require('ffmpeg'); | |
try { | |
var process = new ffmpeg('example.mp4'); | |
process.then(function (video) { | |
console.log('The video is ready to be processed'); | |
var watermarkPath = 'watermark-suissa.png', | |
newFilepath = './video-com-watermark.mp4', | |
settings = { | |
position : "SE" // Position: NE NC NW SE SC SW C CE CW |
<?php | |
namespace My\Custom\Doctrine2\Function; | |
/** | |
* RandFunction ::= "RAND" "(" ")" | |
*/ | |
class Rand extends FunctionNode | |
{ | |
public function parse(\Doctrine\ORM\Query\Parser $parser) |
After you made some cool games or apps with Pythonista, you may want to make it run as a standaone app on iPad/iPhone and possibly share it on the AppStore. This how-to tells you how to do it.
If you are reading this, you have been introduced to something called the Terminal on your Mac by one of your overly pushy developer friends/colleagues.
I am thinking that the conversation went something like this?
You: How can I get to that file?
Them: Just open Terminal and then
$ cd ~/Projects/boilerplate/ && vi .gitignore