Skip to content

Instantly share code, notes, and snippets.

View brettgoss's full-sized avatar

Brett Goss brettgoss

View GitHub Profile
@brettgoss
brettgoss / class-order.php
Last active May 15, 2024 17:10 — forked from hkdobrev/class-order.php
PHP convention for the order in a class.
<?php
namespace Vendor\Library;
use Another\Vendor\Library\ClassName;
abstract class ClassName extends AnotherClass implements Countable, Serializable
{
// Traits at the top
use someTrait, anotherTrait {
@brettgoss
brettgoss / unifi.docker-compose.yml
Created December 19, 2020 21:19
UniFi Controller Docker Compose
version: "3.9"
services:
unifi-controller:
image: jacobalberty/unifi:6.0.23-arm32v7
container_name: unifi-controller
restart: unless-stopped
user: unifi
environment:
- TZ='America/Vancouver'
- JVM_MAX_HEAP_SIZE=1024M
@brettgoss
brettgoss / bitbucket-highlight.user.js
Last active August 28, 2020 21:18 — forked from lephuongbg/bitbucket-highlight.user.js
Bitbucket Highlighter User Script
// ==UserScript==
// @name Bitbucket Highlighter
// @namespace https://github.com/lephuongbg
// @version 0.7
// @description Stop-gap solution for highlighting bitbucket pull request
// @author You
// @match https://bitbucket.org/*
// @grant GM_addStyle
// @grant GM_getResourceText
// @require https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/highlight.min.js
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
</head>