Skip to content

Instantly share code, notes, and snippets.

🤔
"What the f*ck have you done lately?"

Alex Bouma stayallive

🤔
"What the f*ck have you done lately?"
Block or report user

Report or block stayallive

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
@stayallive
stayallive / ImprovedMorphTo.php
Created May 28, 2019
Laravel Improved MorphTo relation
View ImprovedMorphTo.php
<?php
namespace App\Support\Database\Eloquent;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Relations\MorphTo;
class ImprovedMorphTo extends MorphTo
{
/**
@stayallive
stayallive / SentryFacade.php
Created Jul 12, 2016
Sentry Laravel with different IoC namespace
View SentryFacade.php
<?php
namespace App\Spport;
use Illuminate\Support\Facades\Facade;
class SentryFacade extends Facade
{
protected static function getFacadeAccessor()
{
@stayallive
stayallive / verify.secure
Created Jan 8, 2016
Verifying that +stayallive is my blockchain ID. https://onename.com/stayallive
View verify.secure
Verifying that +stayallive is my blockchain ID. https://onename.com/stayallive
@stayallive
stayallive / cache.php
Created Dec 8, 2014
Super simple dirty flirty cache
View cache.php
<?php
/**
* Get a cached file, if not expired.
*
* @param string $file The cached filename.
* @param callable $prime A function used to prime the cache.
* @param int $expires After how many seconds the file expires.
*
* @return array|null Null if expired or unavailable.
View keybase.md

Keybase proof

I hereby claim:

  • I am stayallive on github.
  • I am stayallive (https://keybase.io/stayallive) on keybase.
  • I have a public key whose fingerprint is E2A8 4016 58D1 6621 2FA5 6FA9 B2E4 9FA1 09DF 99AD

To claim this, I am signing this object:

@stayallive
stayallive / install.sh
Last active Aug 29, 2015
Install PHP 5.4.39 on Plesk 11.5 & 12 (CentOS 6)
View install.sh
#!/bin/bash
# Make sure you are up to date
yum -y update && yum -y install wget
# Install EPEL repository
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# Get us a clean working directory
mkdir /php
@stayallive
stayallive / install.sh
Last active May 4, 2018
Install PHP 5.6.7 on Plesk 11.5 & 12 (CentOS 6)
View install.sh
#!/bin/bash
# Make sure you are up to date
yum -y update && yum -y install wget
# Install EPEL repository
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# Get us a clean working directory
mkdir /php
@stayallive
stayallive / install.sh
Last active Oct 31, 2016
Install PHP 5.5.23 on Plesk 11.5 and 12 (CentOS 6)
View install.sh
#!/bin/bash
# Make sure you are up to date
yum -y update && yum -y install wget
# Install EPEL repository
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# Get us a clean working directory
mkdir /php
You can’t perform that action at this time.