Skip to content

Instantly share code, notes, and snippets.

View perandre's full-sized avatar

Per André Rønsen perandre

View GitHub Profile
@perandre
perandre / jekyll-config
Created March 13, 2012 10:15
Jekyll URL config
permalink: /blog/:year/:month/:day/:title
test
@perandre
perandre / subregex
Created April 23, 2013 08:40
Sublime search and replace using regex
href="(.*?)"
@perandre
perandre / drupal modules
Last active December 16, 2015 14:59
drush dl these modules
xmlsitemap webform workbench workbench_access workbench_moderation email ds fences flag google_analytics google_analytics_reports entityreference backup_migrate imageapi field_permissions field_group diff date oembed scald plupload field_collection metatag workbench_email scheduler_workbench scheduler picture features habitat styleguide link linkit advagg date_popup_authored jquery_update schema navbar magic
@perandre
perandre / gist:5820737
Created June 20, 2013 06:50
RVM ruby with ZSH
export PATH=$PATH:/Users/pesh/.rvm/gems/ruby-1.9.3-p286/bin:/Users/pesh/.rvm/gems/ruby-1.9.3-p286@global/bin:/Users/pesh/.rvm/rubies/ruby-1.9.3-p286/bin:/Users/pesh/.rvm/bin:/Applications/MAMP/bin/php5.3/bin:/Applications/MAMP/Library/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
@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>
@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 / 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",
# LOCALLY
$ git fetch
$ git checkout development
$ git pull origin development
$ git flow release start W1.5.2
## 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;
<?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"/>