Skip to content

Instantly share code, notes, and snippets.

View derhasi's full-sized avatar
💚
Life is green!

Johannes Haseitl derhasi

💚
Life is green!
  • Nuremberg, Germany
  • 07:39 (UTC +01:00)
View GitHub Profile
UPDATE_NAME="test";
UPDATE_DIR="/www/drupal-test";
UPDATE_BRANCH="test"
cd $UPDATE_DIR;
git fetch origin;
git status;
read -p $'\e[34mPull new code from '$UPDATE_BRANCH$'? [y] \e[0m';
if [[ $REPLY =~ ^[Yy]$ ]]
(function($, d3) {
console.clear();
$(document).ready(function() {
d3.json("data.json", function(error, json) {
if (error) return console.warn(error);
data = json;
visualizeit(data);
});
<?php
// Disable default configurations of several modules for several hooks to remove
// them from the installation or make them exportable via features.
$conf['disable_defaults'] = array(
// Entityform shall not take full control over aliases and menu links.
'entity_presave' => array(
'entityform',
),
'flag_default_flags' => array(
@derhasi
derhasi / mycustom.module
Last active August 29, 2015 14:05
Disable features components for export and display.
<?php
/**
* @file
* Disable features components for export and display.
*/
/**
* Implements hook_features_api_alter().
*/
@derhasi
derhasi / mycustom.module
Last active August 29, 2015 14:05
Snippet for making features components of disabled modules available again.
<?php
/**
* @file
* Make features components of disabled modules available again.
*/
/**
* Implements hook_system_info_alter().
*/
@derhasi
derhasi / SassMeister-input-HTML.html
Created July 8, 2014 15:11
Generated by SassMeister.com.
<div>
Hello World!
</div>
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkIAAADICAYAAAAEE46XAAAgAElEQVR4Xu2dXZBU1bXH17zFWxUrkreBqqhgBb0aNXGIL1dQo/gkiHnQqkRQ7wsfitFUEhSNifiRW1fiB8KLFwa9FXlQPnxS/AKfDGP8rsSUoFglvAWspOomb/uudWYaerpPd58+fU73/vidqkMPM+fsvdZvnZ7+z9pr7z0mHBCAAAQgAAEIQCBRAmOJ+o3bEIAABCAAAQhAQBBCPAQQgAAEIAABCCRLACGUbOhxHAIQgAAEIAABhBDPAAQgAAEIQAACyRJACCUbehyHAAQgAAEIQAAhxDMAAQhAAAIQgECyBBBCyYYexyEAAQhAAAIQQAjxDEAAAhCAAAQgkCwBhFCyocdxCEAAAhCAAAQQQjwDEIAABCAAAQgkSwAhlGzocRwCEIAABCAAAYQQzwAEIAABCEAAAskSQAglG3ochwAEIAABCEAAIcQzAAEIQAACEIBAsgQQQsmGHschAAEIQAACEEAI8QxAAAIQgAAEIJAsAYRQsqHHcQhAAAIQgAAEEEI8AxCAAAQgAAEIJEsAIZRs6HEcAsMm4L6jPZ6t58V6nqWn/f+cJiua//+Bfv/rFgsPzPx/5mdjB4ftAf1BAALxEUAIxRdTPIKABwQy0bNYz0v1vETPJTUZ9YW2a8LoQz1VKCGOauJMsxCIlgBCKNrQ4lhnAs4+oO0o8uGsH67ZoR+0Y60ZCiCfIuC+pV9er+fyGa6W8RnVYTGzc6/GzAQSBwQgAIGOBBBCPByRE8gyE8tmPpwtM9E8FNOv7yenBVGWgbAPWn0d+7LfRuK5PhM/t+h5q57G1sfDMkb79Hwi7Vj5GBpsgoAfBBBCfsQBKyolkImflXquGlD4FLGq8UGrwmjMPnATOJwJS+N7Q2DOvqX2TmqcngvMbsyFAARqJIAQqhEuTQ+bQDbk9Ws9rxx2z0397dGvdUhGXo5rKO1U9ueusuLyG98UN/
@derhasi
derhasi / mycustom.module
Created May 11, 2014 11:16
Deregister features info for disabled obsolete modules
<?php
/**
* Implements hook_system_info_alter().
*/
function mycustom_system_info_alter(&$info, $file, $type) {
static $files_status = array();
// We want to remove features info from disabled obsolete modules, so we get a
// clean component list with all available components.
@derhasi
derhasi / SassMeister-input-HTML.html
Created March 12, 2014 12:37
Generated by SassMeister.com.
<ul class="menu-nose">
<li class="active">Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
</ul>
@derhasi
derhasi / SassMeister-input-HTML.html
Created February 10, 2014 17:31
Generated by SassMeister.com.
<div class="wrapper">
<div class="content">
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
</p>
</div>
<div class="bottomic">Downloads & publications</div>
</div>
<div class="wrapper">