Skip to content

Instantly share code, notes, and snippets.

Freek Van der Herten freekmurze

Block or report user

Report or block freekmurze

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
freekmurze / nginx config
Created Aug 31, 2019
Nginx config sendy
View nginx config
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
root /home/forge/;
ssl_certificate /etc/nginx/ssl/;
ssl_certificate_key /etc/nginx/ssl/;
View ci.yml
on: push
name: Run phpunit testsuite
runs-on: ubuntu-latest
image: lorisleiva/laravel-docker:7.3 # Change this to 7.1/7.2/7.3 to specify the PHP Version
View HorizonDatabaseQueue.php
namespace App\Libraries\Queue;
use Illuminate\Events\Dispatcher;
use Illuminate\Queue\DatabaseQueue;
use Illuminate\Support\Str;
use Laravel\Horizon\Events\JobDeleted;
use Laravel\Horizon\Events\JobPushed;
use Laravel\Horizon\Events\JobReleased;
freekmurze / bookmarklet
Last active Feb 22, 2019
Oh Dear! Reachable bookmarklet
View bookmarklet
freekmurze / DiscordChannel.php
Last active Sep 24, 2018
How to use Discord webhooks
View DiscordChannel.php
namespace App\Services\NotificationChannels\Discord;
use GuzzleHttp\Client;
use GuzzleHttp\RequestOptions;
use Illuminate\Notifications\Notification;
class DiscordChannel
freekmurze / Check.php
Last active May 15, 2018
Refactored Oh Dear! code
View Check.php
class Check
public function needsToRun(): bool
if (!$this->belongsToTeamOnActiveSubscriptionOrOnGenericTrial()) {
return false;
freekmurze / GitHub.icls
Created May 7, 2018
GitHub PhpStorm colorscheme
View GitHub.icls
<scheme name="GitHub" version="142" parent_scheme="Default">
<option name="FONT_SCALE" value="1.0" />
<property name="created">2018-05-07T11:01:49</property>
<property name="ide">PhpStorm</property>
<property name="ideVersion">2018.1.0.0</property>
<property name="modified">2018-05-07T11:02:04</property>
<property name="originalScheme">GitHub</property>
<option name="LINE_SPACING" value="1.4" />
View subscriptions.opml
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<title>Subscriptions -</title>
<outline text="PHP" title="PHP">
<outline htmlUrl="" title="" xmlUrl="" type="rss" text=""/>
<outline htmlUrl="" title="" xmlUrl="" type="rss" text=""/>
<outline title="" xmlUrl="" type="rss" text=""/>
freekmurze / Envoy.blade.php
Created Mar 23, 2017
Multi server zero downtime Envoy script
View Envoy.blade.php
require __DIR__.'/vendor/autoload.php';
(new \Dotenv\Dotenv(__DIR__, '.env'))->load();
$appName = "";
$repository = "spatie/{$appName}";
$baseDir = "/home/forge/{$appName}";
$releasesDir = "{$baseDir}/releases";
$currentDir = "{$baseDir}/current";
$newReleaseName = date('Ymd-His');
View curry.php
function curry($f, $argument)
return function (...$arguments) use ($f, $argument) {
return $f(...array_merge([$argument], $arguments));
function add(...$numbers)
You can’t perform that action at this time.