Skip to content

Instantly share code, notes, and snippets.

@marktheunissen
marktheunissen / mymodule.drush.php
Last active September 28, 2015 21:59
Examine frequency of characters in Drupal code
<?php
/**
* Implements hook_drush_command().
*/
function mymodule_drush_command() {
$items['text-analysis'] = array(
'description' => 'Analyse text.',
'aliases' => array('ta'),
);
@marktheunissen
marktheunissen / htmlfiles_migration.inc.php
Created May 4, 2012 18:32
HTML Files Migration into Drupal using Migrate
<?php
class MyMigration extends Migration {
public $base_dir;
/**
* Constructor.
*/
public function __construct() {
parent::__construct();
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active September 24, 2024 14:52 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.
@marktheunissen
marktheunissen / gist:3194848
Created July 28, 2012 21:22 — forked from clintel/gist:1155906
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
@marktheunissen
marktheunissen / gist:3628666
Created September 5, 2012 00:57 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@marktheunissen
marktheunissen / gist:3758037
Created September 20, 2012 20:06
Mac Productivity Brown Bag

Mac Productivity

Apple OSX General

System

  • Hide the dock. It's valuable screen space. At least move it to the left or right side, as vertical is more valuable.
  • Use Spotlight / Quicksilver to quickly open applications, search machine.
@marktheunissen
marktheunissen / ember.js
Last active December 11, 2015 02:39
Ember.js 2013-01-13 21:57:54 -0800
// Version: v1.0.0-pre.2-395-ge4af09e
// Last commit: e4af09e (2013-01-13 21:57:54 -0800)
(function() {
/*global __fail__*/
/**
Ember Debug
@marktheunissen
marktheunissen / ember.js
Created January 15, 2013 20:53
Ember.js 2013-01-13 21:57:54 -0800
// Version: v1.0.0-pre.2-395-ge4af09e
// Last commit: e4af09e (2013-01-13 21:57:54 -0800)
(function() {
/*global __fail__*/
/**
Ember Debug
@marktheunissen
marktheunissen / ember.js
Created January 15, 2013 20:57
Ember.js 2013-01-15 10:06:03 -0800
// Version: v1.0.0-pre.2-398-g1051f2f
// Last commit: 1051f2f (2013-01-15 10:06:03 -0800)
(function() {
/*global __fail__*/
/**
Ember Debug
@marktheunissen
marktheunissen / VagrantFile.rb
Last active June 9, 2017 00:10
Running Ansible on a Vagrant machine without a plugin
Vagrant::Config.run do |config|
config.vm.define :default do |tw_config|
tw_config.vm.box = "precise64"
tw_config.vm.box_url = "http://files.vagrantup.com/precise64.box"
tw_config.vm.provision :shell, :path => "provision/ansible-setup.sh"
tw_config.vm.provision :shell, :path => "provision/controller-setup.sh"
# Load a local setup file if it exists, so you can use it to
# provide additional provisioning steps.