Skip to content

Instantly share code, notes, and snippets.

@nadnad
nadnad / foo.html
Created May 24, 2019 16:56
Media query enabled inline css
<div style="
--grid-template-areas: 'a' 'b' 'c' 'd';
--md-grid-template-areas: 'a b' 'a c' 'a d' 'a .';
">
</div>
// Debug H1-H6 tags
//
// Easy trick to memorize the colors: RGB.
// R: h1 G: h2 B: h3 (and the rest...)
//
// Usage: Add to (Chrome) Developer Console -> Sources -> Snippets
(function() {
body = document.getElementsByTagName('body')[0]
body.insertAdjacentHTML('beforeend', '<style> h1, h2, h3 , h4, h5, h6 { outline-style: solid; outline-width: 1px } h1 { outline-color: red } h2 { outline-color: green } h3 { outline-color: blue } h4 { outline-color: #ff0 } h5 { outline-color: #f0f } h6 { outline-color: #0ff }</style>');
@nadnad
nadnad / letsgo
Created March 16, 2016 11:40
Jump back into a git branch quickly by opening the latest edited files in vim tabs
function letsgo {
vim -p $(git diff --name-only HEAD^1)
}
@nadnad
nadnad / img-tag-from-image-magick.bash
Created January 20, 2016 12:57
Quick way to get some image tags based on directory contents with the help of Image Magick
identify -format '<img src=\"%i" width=\"%w\" height=\"%h\">\n' *.jpg
@nadnad
nadnad / cheapskate-live-reload.html
Last active December 29, 2015 11:35
No fancy live reload available? Stick this anywhere on your page. Tested in Chrome.
<!--
Content attribute in seconds.
Don't forget to remove again before committing. :~)
-->
<meta http-equiv="refresh" content="3" >

A rough technical outline for the Tailored Drupal upgrade.

upgrade path

  1. activate ssh on all-inkl
  2. git project wide management (exclude uploads folder)
  3. clear logs
  4. backup all data
  5. upgrade d6 core + modules
  6. backup all data
  7. create D7 branch