Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am yannickoo on github.
  • I am yannickoo (https://keybase.io/yannickoo) on keybase.
  • I have a public key ASBaUEzoKVriBw7juG_suEiBJaxjdv5OAvpezgg-z8zHdAo

To claim this, I am signing this object:

{
"color_scheme": "Packages/Theme - Soda/Soda Dark/Widget - Soda Dark.stTheme",
"detect_slow_plugins": true,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"font_size": 15.0,
"ignored_packages":
[
"LaTeX",
"Git",
@yannickoo
yannickoo / berlin.geo.json
Last active December 18, 2015 01:39
This JSON contains the twelve administrative division of Berlin. For an advanced JSON with all the districts see http://git.io/q7Km9g. I used the data from the OpenStreetMap (http://www.openstreetmap.org/browse/relation/16349) <3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yannickoo
yannickoo / example.info
Created January 25, 2013 08:42
Example Drupal module
name = Example
description = Irgendeine Beschreibung
core = 7.x
@yannickoo
yannickoo / .gitignore
Last active November 29, 2015 18:30
Enhanced .gitignore file for Drupal
# Ignore configuration files that may contain sensitive information.
sites/*/settings*.php
# Ignore paths that contain user-generated content.
sites/*/files
sites/*/private
# Unnecessary core files.
/README.txt
/CHANGELOG.txt
@yannickoo
yannickoo / .htaccess
Last active October 11, 2015 22:48
Redirect www to non-www for Drupal.
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig\.save)$">
Order allow,deny
</FilesMatch>
# Don't show directory listings for URLs which map to a directory.
@yannickoo
yannickoo / dabblet.css
Created January 20, 2012 16:07
vertically aligned page
/* vertically aligned page */
/* postcard style */
html, body { height: 100%; text-align: center; white-space: nowrap; margin: 0}
#page { display: inline-block; vertical-align: middle; text-align: left; /* makes the content if page */ white-space: normal; /* behalf normal again */}
body:before{ content: ''; display: inline-block; height: 100%; width: 0; overflow: hidden; vertical-align: middle; margin-left: -.3em;}
/* custom style - you don't need to copy this */
body{ background-color: #000; font-family: 'Lucida Console','Courier New', monospace; color: #0f0; line-height: 20px; font-size: 15px;}
#page{ max-width: 800px; width:100%; background: #000; box-shadow: inset 0 0 10px #0f0, 0 0 40px rgba(0, 0, 0, 0.1) inset; padding: 20px; border-radius: 10px;}
Z:\Users\xxx\Music\Collection\$validate($if2(%albumartist%,%artist%),)\%title%
@yannickoo
yannickoo / code.js
Created October 23, 2014 14:08
Display ticket IDs in Jira's subtask table
(function($){
$('head').append('<style>.bookmarklet-issue-id {color: #fff; background: #3b73af; padding: 1px 2px; border-radius: 5px;}</style>');
$('.subtask-table-container tbody > tr.issuerow').each(function() {
var $this = $(this);
var $id = $this.data('issuekey');
var $firstRow = $this.children('td:first');
$firstRow.after('<td><pre class="bookmarklet-issue-id">' + $id + '</pre></td>');
});
}(jQuery));
@yannickoo
yannickoo / script.js
Created September 13, 2014 19:58
Putting a Drupal website into maintenance mode via JS
jQuery.get(Drupal.settings.basePath + 'admin/config/development/maintenance', function (data, status) {
if (status == 'success') {
var token = jQuery(data).find('[name="form_token"]').val();
var build = jQuery(data).find('[name="form_build_id"]').val();
var payload = {
'form_id': 'system_site_maintenance_mode',
'form_token': token,
'form_build_id': build,
'maintenance_mode': 0
};