Skip to content

Instantly share code, notes, and snippets.

View richstandbrook's full-sized avatar

Rich richstandbrook

View GitHub Profile
Verifying my Blockstack ID is secured with the address 17Xqumod14ypF4Z2TXoGVf9oyWhsqRoTUg https://explorer.blockstack.org/address/17Xqumod14ypF4Z2TXoGVf9oyWhsqRoTUg

Keybase proof

I hereby claim:

  • I am richstandbrook on github.
  • I am richstandbrook (https://keybase.io/richstandbrook) on keybase.
  • I have a public key ASBSJIKC-OVOsAvCsLRtOwLRhk9C2ihUN2WNYSrVQNTfjgo

To claim this, I am signing this object:

@richstandbrook
richstandbrook / RecordTypes.php
Created October 28, 2015 14:28
Trying to get Global Scope to work, and currently getting `segmentation fault phpunit tests/TicketTest.php`. I'm using https://github.com/jarektkaczyk/laravel-global-scope but was getting the same problems implementing it myself.
<?php
namespace App\Contracts;
use App\TypeScope;
trait RecordTypes
{
/**
* Assign the global scope on boot
# Reset
Color_Off='\033[0m' # Text Reset
# Regular Colors
Black='\033[0;30m' # Black
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
Blue='\033[0;34m' # Blue
Purple='\033[0;35m' # Purple
@richstandbrook
richstandbrook / Modern-Google-Loader-in-Pure-CSS.markdown
Created January 20, 2015 09:54
Modern Google Loader in Pure CSS
@richstandbrook
richstandbrook / hosting.md
Last active August 28, 2021 08:58
Hosting paragraph for Contract Killer

Hosting

We provide hosting for our own built websites on our preferred hosting provider {hosting provider name}. Based on their SLA we endeavor to have 99.9% uptime on our servers measured annually.

There may of course times when the server will not be available, this can be scheduled or unscheduled.

Scheduled downtime is when we know it is going to happen and tell you about it in advance. Scheduled downtime will wherever possible, almost certainly be outside of normal office hours. We'll do our stuff in the evening or at weekend to minimize impact on your business.

There may be very rare occasions when we need to restart the server during normal office hours and it is not possible to inform you before hand. We don’t make these decisions lightly and if this does happen we apologise.

Website Contract [month] [year]

Description of this Contract

This contract is not meant to trick or deceive you; the intention is purely to protect both parties. I have tried to keep the wording as plain as possible, but if anything is unclear, please let me know and I will be more than happy to clarify it with you. Also, until you sign it, please feel free to request to change bits of it to suit your requirements.

In short, [client name] is contracting me, [my name], to [description of my role] between [start date and finish date].

By signing this, you are confirming that you have the power and ability to enter into this contract on behalf of [client's company].

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@richstandbrook
richstandbrook / Absolute centring
Created March 12, 2014 12:33
CSS centre vertical and horisontal
.absolute-center(@width: 300px, @height: @width) {
margin: auto;
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
height: @height;
width: @width;
}