Skip to content

Instantly share code, notes, and snippets.

View mpociot's full-sized avatar

Marcel Pociot mpociot

View GitHub Profile

Running Your Company Like a Band: A Different Approach to Business

In today's business world, there's no shortage of advice on how to grow your company, delegate tasks, and maximize profits. But what if you want to run your business in a way that prioritizes your passions, creativity, and personal fulfillment? In this blog post, we'll discuss a unique approach to running a business: treating it like a band.

Band Metaphor: Embracing Your Inner Artist

The band metaphor is an interesting response to the traditional business advice that often doesn't resonate with creative, product-driven entrepreneurs. As a founder or CEO, it's important to recognize that you can still maintain creative control and make your business successful without necessarily following the conventional path.

One key takeaway from the band metaphor is to bring on a "band manager" to handle the operational side of the business. This frees up your time and energy to focus on the product and creative side of things. Having someone resp

@mpociot
mpociot / README.md
Last active December 6, 2022 22:45
A Scriptable widget to show the upcoming Laracon talks

Laracon Scriptable Widget

Usage

  1. Install and download the free Scriptable app on your iOS device.
  2. Inside the app, press the "Plus" icon to create a new script
  3. Paste the content of the JS file into the script
  4. Place a Scriptable widget on your home screen
@mpociot
mpociot / Paddle.php
Created August 23, 2022 09:34
Retrieve Paddle transactions and overview
<?php
namespace App;
use Symfony\Component\BrowserKit\HttpBrowser;
use Symfony\Component\HttpClient\HttpClient;
class Paddle
{
protected HttpBrowser $browser;
@mpociot
mpociot / vite.config.js
Last active May 7, 2023 22:11
Using Vite in combination with Valet's secured sites
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import fs from 'fs';
import { resolve } from 'path';
import { homedir } from 'os';
let host = 'sendstack.test';
let homeDir = homedir();
let serverConfig = {};
@mpociot
mpociot / README.md
Last active December 6, 2022 22:46
console.style

Use Tailwind classes in console.log

This script adds a new method called console.style to the global console object, that allows you to style a string - followed by Tailwind CSS classes to apply to this string.

For example:

console.style("I am styled", "p-4 bg-black text-white text-2xl");
@mpociot
mpociot / composer.json
Last active January 20, 2021 05:00
Simple ReactPHP chat server - connect to it: nc laracon.beyondco.de 8000
{
"require": {
"react/event-loop": "^1.1",
"react/stream": "^1.1",
"react/promise": "^2.8",
"react/socket": "^1.6",
"react/http": "^1.2",
"nubs/random-name-generator": "^2.2"
}
}
@mpociot
mpociot / State.php
Created July 28, 2020 19:17
Laravel Playground Sushi example
<?php
use Illuminate\Database\Eloquent\Model;
class State extends Model
{
use \Sushi\Sushi;
protected $rows = [
[
@mpociot
mpociot / guestbook.gif
Last active November 1, 2022 11:55
My Guestbook
guestbook.gif
@mpociot
mpociot / HelloWorld.php
Created June 30, 2020 10:51
livewire test
<?php
use Livewire\Component;
class HelloWorld extends Component
{
public $name = 'Jelly';
public $loud = false;
public $greeting = ['Hello'];
@mpociot
mpociot / expose.php
Created June 2, 2020 14:01
The expose configuration file.
<?php
return [
/*
|--------------------------------------------------------------------------
| Host
|--------------------------------------------------------------------------
|
| The expose server to connect to. By default, expose is using the free