Skip to content

Instantly share code, notes, and snippets.

View felnne's full-sized avatar

Felix Fennell felnne

View GitHub Profile
@felnne
felnne / README.md
Last active March 23, 2023 10:12
QGIS layer_styles table

Exploring layer_styles table

Saving styles from QGIS

  • setting a style for a layer as a default asks where to save, 'local database' or 'data source database'.
  • opting for 'data source database', creates a layer_styles table in the DB

layer_styles table

Description

@felnne
felnne / bounding-boxes.md
Last active June 30, 2020 18:15
Bounding box

A bounding box is two coordinate pairs defining the bottom-left and top-right corners of a box (south/west and north/east of an area).

I.e.:

                 + ------------- + Top Right (NE)
                 |               |
                 |       N       |
                 |     W x E     |
 | S |
@felnne
felnne / geoserver.md
Last active December 5, 2019 14:30
GeoServer experiments
@felnne
felnne / bas-draft-api-privacy-policy.md
Last active August 14, 2016 12:36
BAS Draft API Privacy Policy

API Privacy Policy

Note: This is a draft template and has not been approved for use within BAS.

A sign off process is currently underway with the relevant sections of BAS and NERC, after which this policy can be applied to websites that do not exceed the elements this policy covers.

More information is available here: https://jira.ceh.ac.uk/browse/BASIS-96

Last updated: August 15th 2016

@felnne
felnne / keybase.md
Last active August 29, 2015 14:21
Keybase claim

Keybase proof

I hereby claim:

  • I am felnne on github.
  • I am felnne (https://keybase.io/felnne) on keybase.
  • I have a public key whose fingerprint is CF78 0376 E6BC AB06 1744 2B1B 440A C9D7 F619 3A70

To claim this, I am signing this object:

@felnne
felnne / public-key-fingerprint.md
Last active August 29, 2015 14:16
Generating a public key fingerprint

Generate a public key fingerprint

A public key fingerprint looks like: c5:e6:e5:aa:07:de:2a:ca:2e:7f:c3:a8:1c:ed:cc:b1 and is dervived from a public key (e.g. a personal public key or a host public key).

A public key fingerprint can be generated using ssh-keygen:

ssh-keygen -lf [path-to-public-key] | awk '{print $2}'
@felnne
felnne / ExpiredTokenException.php
Created December 1, 2014 17:29
Lions - Expired Token Exception
<?php
namespace Lions\Exception\Token;
class ExpiredTokenException extends TokenException {
protected $statusCode = 401;
protected $exceptionType = 'expired_authentication_token';
}
@felnne
felnne / TokenException.php
Created December 1, 2014 17:28
Lions BASE Token Exception
<?php
namespace Lions\Exception\Token;
use Lions\Exception\HttpException;
class TokenException extends HttpException {
protected $exceptionType = 'unknown_authentication_token_fault';
}
@felnne
felnne / HttpException.php
Created December 1, 2014 17:25
Lions - Base HTTP exception
<?php
namespace Lions\Exception;
use Symfony\Component\HttpKernel\Exception\HttpException as BaseHttpException;
class HttpException extends BaseHttpException {
protected $statusCode = 500;
protected $exceptionType = 'Exception';
@felnne
felnne / AuthFilter.php
Created November 27, 2014 18:34
Auth.combined filter
<?php
private function isUserTokenAuthenticated($request)
{
$token = $this->tokenAuth->getToken($request);
if ($token === false || $token === null)
{
return '400-no-token';
}