Skip to content

Instantly share code, notes, and snippets.

View aamortimer's full-sized avatar
:octocat:

Andy Mortimer aamortimer

:octocat:
View GitHub Profile
@aamortimer
aamortimer / input.scss
Created January 25, 2021 14:13
Generated by SassMeister.com.
// Colour - General
$color-white: #fff;
$color-black: #000;
// Colour - Primary
$color-plantation: #294638; // Regular
$color-como: #44745e; // Accent
$color-nebula: #dae3df; // light
// Colour - Secondary
@aamortimer
aamortimer / input.scss
Created January 25, 2021 13:00
Generated by SassMeister.com.
// Colour - General
$color-white: #fff;
$color-black: #000;
// Colour - Primary
$color-plantation: #294638; // Regular
$color-como: #44745e; // Accent
$color-nebula: #dae3df; // light
// Colour - Secondary
@aamortimer
aamortimer / localhost-ssl.md
Created February 5, 2018 23:16 — forked from ethicka/localhost-ssl.md
Local virtualhost SSL websites on Mac OS Sierra

Local virtualhost SSL websites on Mac OS Sierra

These instructions will guide you through the process of setting up a wildcard SSL for your local virtualhosts for offline development. Most importantly, this configuration will give you the happy, green lock in Chrome.

These instructions have only been tested on Mac OS Sierra using the pre-installed Apache and PHP versions. These instructions also assume you have virtualhosts set up locally already.


Configuring SSL

Keybase proof

I hereby claim:

  • I am aamortimer on github.
  • I am aamortimer (https://keybase.io/aamortimer) on keybase.
  • I have a public key ASAL9EUJ4K8J5cRRinonnncDuj7GP0bhCDVFq7WznXsLHwo

To claim this, I am signing this object:

@aamortimer
aamortimer / HTACCESS: Set Timezone
Created July 23, 2013 20:03
HTACCESS: Set Timezone
# set timezone
php_value date.timezone 'Europe/London'
@aamortimer
aamortimer / HTACCESS: Error Logging
Created July 23, 2013 20:00
HTACCESS: Error Logging
# suppress PHP errors from displaying in the browser
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
# log PHP errors to a file
php_flag log_errors on
php_value error_reporting 32767
php_value error_log "path/to/log"
@aamortimer
aamortimer / CSS: Breakpoints
Created July 21, 2013 15:01
CSS: Breakpoints
@mixin breakpoint($point) {
@if $point == large {
@media (max-width: 1600px) { @content; }
}
@else if $point == medium {
@media (max-width: 1250px) { @content; }
}
@else if $point == small {
@media (max-width: 650px) { @content; }
}
@aamortimer
aamortimer / CSS: rem font-size
Created July 21, 2013 15:01
CSS: rem font-size
@mixin font-size($size: 1.6, $line: $size * 1.5) {
font-size: ($size * 10) + px;
line-height: ($line * 10) + px;
font-size: $size + rem;
line-height: $line + rem;
}