Skip to content

Instantly share code, notes, and snippets.

View okaufmann's full-sized avatar

Oliver Kaufmann okaufmann

View GitHub Profile
viezel /
Last active April 22, 2023 00:47
Quick Laravel Octane test - UPDATED


I wanted to quickly take Laravel Octane beta for a spin, as we have been using Swoole for some time and wanted to see how official support performs vs what we have.

Test 2: Forge server

Next test is more real world as we now have a web server and database server within a VPC.

Using Laravel Forge

PierreThiollent /
Last active March 26, 2024 19:14
iTerm2 and Oh-my-zsh config

Setup iTerm2 and oh-my-zsh

Enjoy ! 😄

Install iTerm 2

Download iTerm2 here.

mpociot / tinker
Last active March 21, 2024 18:30
Python script to open Tinkerwell from your current working directory -
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
RUN_PATH = '/Applications/'
def process_args(argv):
args = []
Mecanik / gist:d2314fbc860b9c68eac4b101127b738e
Created November 4, 2019 11:58
Install and configure PHP 7.3 ev/event PECL extension on Ubuntu Linux 18.04.3
# For phpize
apt install php7.3-dev
# Install extensions
pecl install ev
pecl install event
# Create configurations
sudo echo '' > /etc/php/7.3/mods-available/ev.ini
sudo echo '' > /etc/php/7.3/mods-available/event.ini
motion-work / TransitionExpand.vue
Last active April 29, 2020 14:12
export default {
name: `TransitionExpand`,
functional: true,
render(createElement, context) {
const data = {
props: {
name: `expand`,
on: {
laravel-shift / .php-cs-fixer.php
Last active April 9, 2024 14:08
PHP CS Fixer - Laravel Coding Style Ruleset
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
DevInTheTrenches / kubia.yaml
Created March 16, 2019 17:31
Simple Hands-on Introduction to K3S - Lightweight Kubernetes
apiVersion: extensions/v1beta1
kind: Deployment
name: whoareyou-deployment
namespace: default
replicas: 2
app: whoareyou
pmunin / FormattableStringExtensions.cs
Created March 4, 2019 21:31
C# FormattableStringExtensions.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
public static class FormattableStringExtensions
public static FormattableString AsFormattable(this string str) {
return FormattableStringFactory.Create(str);
davidpiesse / Schedulable.php
Last active September 7, 2023 15:22
Laravel Custom Class/Model Scheduling
//Don't forget to change the namespace!
namespace App\Traits;
use Cron\CronExpression;
use Illuminate\Support\Carbon;
use Illuminate\Console\Scheduling\ManagesFrequencies;
trait Schedulable{
okaufmann /
Last active October 29, 2019 11:00
Remove fkng one drive!

Remove OneDrive from Windows 10


Group Policies

Press Win + R keyboard accelerator to open Run dialog box. Type GPedit.msc and hit Enter or OK to open Local Group Policy Editor. Navigate to Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> OneDrive. In the right pane, double click on policy named Prevent the usage of OneDrive for file storage.