Skip to content

Instantly share code, notes, and snippets.

Govert Verschuur verschuur

Block or report user

Report or block verschuur

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Heroku env export & import
# Instructions:
# Make sure you have the Heroku CLI installed and configured (https://devcenter.heroku.com/articles/heroku-cli)
# Replace source-heroku-app and target-heroku-app with your app name
# 1. Export existing app’s variables to config.txt.
heroku config -s -a source-heroku-app > config.txt
# 2. Review and push to another app
cat config.txt | tr '\n' ' ' | xargs heroku config:set -a target-heroku-app
@verschuur
verschuur / PreventSEOIndexingHeaders.php
Created Nov 16, 2017
Laravel middleware code to add response headers to prevent SEO indexing.
View PreventSEOIndexingHeaders.php
<?php
namespace App\Http\Middleware;
use Closure;
class PreventSEOIndexingHeaders
{
/**
* Handle an incoming request.
@verschuur
verschuur / ViewComposerServiceProvider.php
Last active Nov 16, 2017
Laravel ViewComposerServiceProvider example with several registering options
View ViewComposerServiceProvider.php
<?php
namespace App\Providers;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
class ViewComposerServiceProvider extends ServiceProvider
{
/**
@verschuur
verschuur / .htaccess
Created Jan 16, 2017
Handy dandy complete .htaccess
View .htaccess
# ----------------------------------------------------------------------
# | Basic rewrite settings
# ----------------------------------------------------------------------
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
You can’t perform that action at this time.