Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| var http = require("http"), | |
| url = require("url"), | |
| path = require("path"), | |
| fs = require("fs") | |
| port = process.argv[2] || 8888; | |
| http.createServer(function(request, response) { | |
| var uri = url.parse(request.url).pathname | |
| , filename = path.join(process.cwd(), uri); |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
false as "0", so you want to typecast them.$hidden array then OOPS!/users/id/5/active/true. Your API does not need to be SEO optimised.?format=xml is stupid, use an Accept: application/xml header. I added this to the CodeIgniter Rest Server once for lazy people, and now people think it's a thing. It's not.| cat ~/.ssh/id_rsa.pub | ssh forge@yourserverIP "cat >> ~/.ssh/authorized_keys" | |
| ssh 'forge@yourserverIP' | |
| mkdir vips | |
| cd vips | |
| wget -c http://www.vips.ecs.soton.ac.uk/supported/current/vips-7.38.5.tar.gz | |
| tar xzvf vips-7.38.5.tar.gz | |
| cd vips-7.38.5/ |