Skip to content

Instantly share code, notes, and snippets.

View erivello's full-sized avatar

Edoardo Rivello erivello

  • Vittorio Veneto, Italy
View GitHub Profile
@erivello
erivello / iframe.html
Created December 6, 2019 14:23
Resize Cross Domain Iframe Height
<script type='text/javascript' src="js/jquery.min.js"></script>
<script type='text/javascript'>
// Size the parent iFrame
function iframeResize() {
var height = $('body').outerHeight(); // IMPORTANT: If body's height is set to 100% with CSS this will not work.
parent.postMessage("resize::"+height,"*");
}
$(document).ready(function() {
// Resize iframe
@erivello
erivello / enable_modules
Created July 17, 2015 09:13
Fetch drupal's enabled modules and enable these
#!/bin/bash
enabled_modules=`cat enabled_modules.txt`
drush en $enabled_modules -y
@erivello
erivello / gist:26fd63a4b2fc211f4133
Created August 25, 2014 10:13
agnoster.zsh-theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
@erivello
erivello / dev.zone
Last active December 16, 2015 01:29 — forked from stefanosala/gist:3881637
My dynamic (*.dev) vhost configuration and BIND configuration
$TTL 60
$ORIGIN dev.
@ 1D IN SOA localhost. root.localhost. (
45 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS localhost.