Skip to content

Instantly share code, notes, and snippets.

View hgrimelid's full-sized avatar

Håvard Grimelid hgrimelid

  • Mediebruket
  • Norway
  • 09:45 (UTC +02:00)
View GitHub Profile
@hgrimelid
hgrimelid / stache.php
Created April 5, 2024 08:20
Statamic Stache - store content outside repo
<?php
/*
* Requires config setting `custom.content_path` to be set
*/
return [
/*
|--------------------------------------------------------------------------
@hgrimelid
hgrimelid / svgo.config.js
Created September 5, 2023 12:08
Svgo config
module.exports = {
js2svg: {
pretty: true
},
plugins: [
{
name: 'prefixIds',
params: {
prefixIds: true,
prefixClassNames: true
@hgrimelid
hgrimelid / .tmux.conf
Created June 30, 2021 11:49
Tmux config for server
# Requires Fish
# Rebind prefix key to C-a
unbind C-b
set -g prefix C-a
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
@hgrimelid
hgrimelid / .gitignore
Last active January 31, 2021 11:45
Laravel files
/node_modules
/public/hot
/public/storage
/storage/*.key
/storage/debugbar
/vendor
.env
.env.testing
.env.backup
.phpunit.result.cache
@hgrimelid
hgrimelid / functions.php
Created December 8, 2020 21:51
Wordpress: Remove access to and hide theme editor
<?php
/**
* This comes in handy in cases where you can't set `DISALLOW_FILE_MODS` to `true`
*/
/**
* Remove access to page for all users
*/
add_action('current_screen', function () {
@hgrimelid
hgrimelid / php-dyld.md
Created August 17, 2018 07:36
php: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib

After upgrading to Node v.10.9.0 via Homebrew the following error message was thrown from PHP:

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found

Reinstall PHP to fix, for me that's:

Keybase proof

I hereby claim:

  • I am hgrimelid on github.
  • I am hgrimelid (https://keybase.io/hgrimelid) on keybase.
  • I have a public key whose fingerprint is D524 D2B9 9831 CE6A C5B6 CB86 85D8 46E8 38BF D928

To claim this, I am signing this object: