- Install composer-patches plugin
composer require cweagans/composer-patches
-
Download all the files (
*.diff
&*.json
) topatches
subdirectory of your project -
Add the following to your
composer.json
:
"extra": {
composer require cweagans/composer-patches
Download all the files (*.diff
& *.json
) to patches
subdirectory of your project
Add the following to your composer.json
:
"extra": {
# Install wget | |
yum install wget -y | |
# Install certbot-auto | |
wget https://dl.eff.org/certbot-auto | |
chmod a+x certbot-auto | |
# Obtain SSL certificate with Nginx plugin for the domain | |
sudo ./certbot-auto --nginx -d app.com --debug |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /your/root/path; | |
index index.html; | |
server_name website.com; |
<?php | |
// app/AppKernel.php | |
use Symfony\Component\Config\Loader\LoaderInterface; | |
use Symfony\Component\HttpKernel\Kernel; | |
class AppKernel extends Kernel | |
{ | |
public function registerBundles() | |
{ |
/* WebKit */ | |
-webkit-filter: invert(); | |
/* Firefox */ | |
filter: url("data:image/svg+xml;utf8,<svg height='0' xmlns='http://www.w3.org/2000/svg'><filter id='negative'><feColorMatrix values='-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0'/></filter></svg>#negative"); | |
/* IE 6-7 */ | |
filter: progid:DXImageTransform.Microsoft.BasicImage(invert=1); | |
/* IE 8 */ | |
-ms-filter: 'progid:DXImageTransform.Microsoft.BasicImage(invert=1)'; |
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
#!/bin/sh | |
# Fix NTP/Time | |
# https://github.com/boot2docker/boot2docker/issues/290 | |
boot2docker ssh -- sudo killall -9 ntpd | |
boot2docker ssh -- sudo ntpclient -s -h pool.ntp.org | |
boot2docker ssh -- sudo ntpd -p pool.ntp.org |
This is an example of using laravel 4.1 CookieGuard middleware with silex. This demonstrates the composability of stack middlewares.
All of the outgoing cookies are encrypted. If decryption of incoming cookies fails, the application will ignore them.
Just clone the gist and install the dependencies via composer.
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.