Skip to content

Instantly share code, notes, and snippets.

View klakegg's full-sized avatar

Erlend Klakegg Bergheim klakegg

  • The Norwegian Agency for Public and Financial Management (DFØ)
  • Oslo, Norway
  • X @klakegg
View GitHub Profile

Keybase proof

I hereby claim:

  • I am klakegg on github.
  • I am klakegg (https://keybase.io/klakegg) on keybase.
  • I have a public key whose fingerprint is B773 A9DA 50BE 0E92 475B 07A0 776D 41CA EEC7 8C9B

To claim this, I am signing this object:

@klakegg
klakegg / application.properties
Created August 28, 2016 18:23
Load Thymeleaf templates outside jar #spring
spring.thymeleaf.prefix=file:./templates_override/
# Opprette mappe for nytt repo
mkdir -p ~/Dropbox/git/prosjekt.git
# Initiere et "bare" repo
git init --bare ~/Dropbox/git/prosjekt.git
# Kloning
git clone file://~/Dropbox/git/prosjekt.git prosjekt
<?php
/**
* Implements hook_url_outbound_alter().
*
* Make sure to hide site_frontpage from urls. Useful when having pager on frontpage.
*/
function MODULE_url_outbound_alter(&$path, &$options, $original_path) {
if ($path == variable_get('site_frontpage'))
$path = '';
<?php
/**
* Implements hook_module_implements_alter().
*
* Make sure to call hooks with the same prefix as this hook after all other hooks.
*/
function MODULE_module_implements_alter(&$implementations, $hook) {
$prefix = array_shift(explode('_', __FUNCTION__));
$found = array();