Skip to content

Instantly share code, notes, and snippets.

View perandre's full-sized avatar

Per André Rønsen perandre

View GitHub Profile
core:
download:
version: 4.9.*
locale: en_US
plugins:
gutenberg:
version: 2.2.0
wp-super-cache:
version: '*'
themes:
# START WP-CLI BUILD BLOCK
# ------------------------------------------------------------
# This block is generated everytime you run 'wp build generate'
# Rules: Exclude everything from git except for your custom plugins/themes
# ------------------------------------------------------------
/*
!.gitignore
!build.yml
!wp-content
wp-content/*
@perandre
perandre / bakeri-grid
Last active October 3, 2017 11:31
Bakeri grid
<h2>3 kolonner</h2>
<div class="l-row grid-three">
<div class="grid-item">Col 1</div>
<div class="grid-item">Col 2</div>
<div class="grid-item">Col 3</div>
</div>
<h2>2 kolonner</h2>
@perandre
perandre / wp-vagrant
Last active August 29, 2015 14:23
Vagrant setup for WP core dev
- Install latest version of Vagrant + VirtualBox
- Download https://github.com/Varying-Vagrant-Vagrants/VVV and unzip VVV-folder
- cd into VVV/ and run:
- $ vagrant plugin install vagrant-hostsupdater
- $ vagrant box add ubuntu/trusty64 contributor.box
- $ vagrant up
- Wait for it
- Visit one of the local URLs here https://github.com/Varying-Vagrant-Vagrants/VVV
<?xml version="1.0" encoding="UTF-8" ?>
<schema name="newsfront" version="1.3">
<types>
<fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true"/>
<fieldtype name="binary" class="solr.BinaryField"/>
<fieldType name="integer" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="float" class="solr.TrieFloatField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
## Head
<script type='text/javascript'>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function() {
var gads = document.createElement('script');
gads.async = true;
gads.type = 'text/javascript';
var useSSL = 'https:' == document.location.protocol;
# LOCALLY
$ git fetch
$ git checkout development
$ git pull origin development
$ git flow release start W1.5.2
@perandre
perandre / desk-config.json
Created July 21, 2014 07:42
Desk config file
{
"grids": [
{
"layout": "8-4double",
"items": [
{
"type": "article",
"title": "<strong>HP ut mot Microsoft:</strong> – Vi er konkurrenter!",
"teaser": "Hvem eier overleppa med it-bransjens aller beste hårpryd? Se bildene!",
"path": "artikler/demo",
@perandre
perandre / pesh-terminal
Created July 18, 2014 10:43
Terminal short cuts
# pesh stuff
alias a="open -a Atom"
alias vhost="open -a Atom /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf /etc/hosts"
alias zsh="open -a Atom ~/.zshrc"
alias log="open -a Atom ~/Sites/log"
alias c="bundle exec compass watch"
# alias clone="echo 'git clone git@github.com:front/'| pbcopy"
## NF settings
alias nfa='cd ~/Sites/front/newsfront-drupal/sites/all && open ~/Sites/front/newsfront-drupal/sites/all'
@perandre
perandre / mailchimp-signup
Created October 25, 2013 07:36
Mailchimp signup with Email + Firstname + Lastname
<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="http://arbeidoghelse.us2.list-manage.com/subscribe/post?u=f22925cc24e9487c57dde4afa&amp;id=693d9a0faa" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank">
<div class="mc-field-group">
<label for="mce-EMAIL">E-post <span class="asterisk">*</span>
</label>
<input type="email" value="" name="EMAIL" class="form-text required email" id="mce-EMAIL">
</div>
<div class="mc-field-group">
<label for="mce-FNAME">Fornamn </label>