Skip to content

Instantly share code, notes, and snippets.

View hgrimelid's full-sized avatar

Håvard Grimelid hgrimelid

  • Mediebruket
  • Norway
  • 20:27 (UTC +02:00)
View GitHub Profile
@hgrimelid
hgrimelid / log.rb
Last active March 2, 2020 02:00
Append to file with Alfred.app
#!/usr/bin/env ruby
# encoding: utf-8
# Append to file with Alfred.app
# A modified version of: http://agiletortoise.com/blog/2013/03/27/mimic-drafts-append-to-dropbox-using-alfred-on-a-mac/
# How to:
#
# 1. Make sure ActiveSupport is installed: gem install activesupport
#
@hgrimelid
hgrimelid / gravity-forms_bootstrap
Last active December 16, 2015 10:05 — forked from DevinWalker/gravity-forms_bootstrap
Gravity Forms Twitter Bootstrap CSS Styles Turn OFF Gravity Forms CSS.
/* ------------------------------------
Gravity Forms
---------------------------------------*/
.gform_wrapper ul {
padding-left: 0;
list-style: none
}
.gform_wrapper li {
@hgrimelid
hgrimelid / web.config
Created January 12, 2016 10:12 — forked from jonahvsweb/web.config
How to Setup WordPress Permalinks on Windows IIS ======================================= Place this file into the base directory of your WordPress installation to allow permalinks (or "pretty URLs") on Windows IIS.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
@hgrimelid
hgrimelid / web.config
Created January 15, 2016 12:17 — forked from rcnascimento/web.config
Generic configuration file for IIS (+ WordPress rules)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!--
Default file - or directory index - files and their order
Source: Convert Apache .htaccess to IIS web.config <http://www.saotn.org/convert-apache-htaccess-iis-web-config/>
-->
<defaultDocument>
<files>
@hgrimelid
hgrimelid / .ackrc
Created September 15, 2016 11:28
Add twig support to ack
--type-set=twig=.twig
--ignore-dir=node_modules

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:

@hgrimelid
hgrimelid / settings.json
Last active November 8, 2016 07:45
VS Code tasks and settings
// Wordpress project settings
{
"files.exclude": {
"wp-admin": true,
"wp-includes": true,
"wp-content/languages": true,
"wp-content/uploads": true,
"wp-content/upgrade": true,
"wp-content/plugins/timber-library": true,
"wp-content/plugins/admin-columns-pro": true,
@hgrimelid
hgrimelid / acceptance.suite.yml
Created September 20, 2017 11:23
Codeception Chrome Headless configuration for Mac OS
# Codeception Test Suite Configuration
actor: AcceptanceTester
modules:
enabled:
- WebDriver:
url: 'http://localhost/' # Site URL
browser: chrome
window_size: false
capabilities:
@hgrimelid
hgrimelid / Run Playbook
Last active December 14, 2017 13:59
Ansible notes
# Run playbook for
# - group in hosts file
# - extra vars
# - step through tasks
ansible-playbook -i HOSTS_FILE -l HOSTS_GROUP --extra-vars "VAR_1=VALUE_1 VAR_2=VALUE_2" --step
@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: