Skip to content

Instantly share code, notes, and snippets.

@stilliard
stilliard / github-projects-col-widths-userscript.js
Created June 5, 2018 00:08
Slightly decrease widths of github project board columns
// ==UserScript==
// @name Decrease GitHub projects column widths
// @namespace https://www.wildfireinternet.co.uk/
// @version 0.1
// @description By default the column widths on project boards on github are too big, this decreases them a little
// @author Andrew
// @match https://github.com/*/*/projects/*
// @grant none
// ==/UserScript==
@cee-chen
cee-chen / .htaccess
Last active February 23, 2022 23:33
Apache .htaccess / https / barba.js / Jekyll workaround
# Apache servers throw content mismatch errors with XMLHttpRequests (used by barba.js)
# because links without a trailing slash didn't know to look for a subdir/index.html.
# See:
# https://discuss.emberjs.com/t/mixed-content-the-page-was-loaded-over-https-but-requested-an-insecure-xmlhttprequest-endpoint/13876/10
# https://stackoverflow.com/questions/43696438/strange-mixed-content-issue
# https://serverfault.com/a/817023
# https://webmasters.stackexchange.com/questions/105111
# Disable the default directory slash behavior and handle that ourselves below
@odan
odan / xampp_php7_xdebug.md
Last active April 17, 2024 05:36
Installing Xdebug for XAMPP
@ryansechrest
ryansechrest / php-style-guide.md
Last active April 21, 2024 18:50
PHP style guide with coding standards and best practices.

PHP Style Guide

All rules and guidelines in this document apply to PHP files unless otherwise noted. References to PHP/HTML files can be interpreted as files that primarily contain HTML, but use PHP for templating purposes.

The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Most sections are broken up into two parts:

  1. Overview of all rules with a quick example
  2. Each rule called out with examples of do's and don'ts