This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mining association rules complete, # association rules: 166 | |
( | |
{episode:css(0), ua:WinXP:Firefox(60)} => {duration:slow(16)} (conf=0.280632) | |
{episode:css(0), ua:WinXP:Firefox(60), ua:WinXP:Firefox:3(61)} => {duration:slow(16)} (conf=0.290043) | |
{episode:css(0), ua:WinXP:Firefox:3(61)} => {duration:slow(16)} (conf=0.290043) | |
{episode:pageready(39)} => {duration:slow(16)} (conf=0.398305) | |
{location:AS(3), episode:css(0)} => {duration:slow(16)} (conf=0.216981) | |
{location:AS(3), episode:pageready(39)} => {duration:slow(16)} (conf=0.639344) | |
{location:AS(3), episode:totaltime(40)} => {duration:slow(16)} (conf=0.639344) | |
{location:AS(3), ua:WinXP:IE(8), episode:frontend(19)} => {duration:slow(16)} (conf=0.468927) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Calculates the size of the PHP codebase of all sites. | |
import os | |
import optparse | |
import subprocess | |
def calculate(http_root_dir): | |
sites = list_sites(http_root_dir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options +FollowSymLinks -MultiViews | |
RewriteEngine On | |
SetEnvIf User-Agent ^Amazon Cloudfront$ cdn | |
Order Deny,Allow | |
Deny from all | |
Allow from env=cdn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ grunt | |
Running "concat:edit" (concat) task | |
File "build/edit.js" created. | |
Running "min:edit" (min) task | |
File "build/edit.min.js" created. | |
Uncompressed size: 83949 bytes. | |
Compressed size: 7684 bytes gzipped (29545 bytes minified). | |
Running "min:backbone" (min) task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This gist is no longer maintained - it is a proper repo now: | |
* | |
* @see https://github.com/sun/drupal-reinstall | |
*/ | |
# ██╗ ██╗██████╗ ██████╗ ███╗ ██╗ ██████╗ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Definition of Drupal\Core\Cache\ArrayBackend. | |
*/ | |
namespace Drupal\Core\Cache; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Example of how to attach external and inline resources for a theme via the | |
* #attached render array method in 8.x. | |
*/ | |
/** | |
* Helper function for attaching resources to a render array. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Contains \Drupal\varnish_cache_tag_purger\TagDeletionListener. | |
*/ | |
namespace Drupal\varnish_cache_tag_purger; | |
use Drupal\Core\Cache\NullBackend; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PROFILE="standard" | |
DB="d8" | |
UI=false | |
NO_DEV=false | |
OPTS=`getopt -o h --longoptions db:,profile:,ui,no-dev -- "$@"` | |
eval set -- "$OPTS" | |
while true; do |