Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexandra Herrera anherrera

View GitHub Profile
@balloz
balloz / fix-broken-unserialize.diff
Last active Aug 19, 2019
Fix broken unserialize in Magento SUPEE-8788 patch
View fix-broken-unserialize.diff
diff --git a/lib/Unserialize/Parser.php b/lib/Unserialize/Parser.php
index 20a6a3c..88c6555 100644
--- a/lib/Unserialize/Parser.php
+++ b/lib/Unserialize/Parser.php
@@ -34,6 +34,7 @@ class Unserialize_Parser
const TYPE_DOUBLE = 'd';
const TYPE_ARRAY = 'a';
const TYPE_BOOL = 'b';
+ const TYPE_NULL = 'N';
@micw
micw / install_jenkins_plugin.sh
Last active Oct 26, 2021
Script to install one or more jenkins plugins including dependencies while jenkins is offline
View install_jenkins_plugin.sh
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "USAGE: $0 plugin1 plugin2 ..."
exit 1
fi
plugin_dir=/var/lib/jenkins/plugins