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
Index: lib/Varien/Cache/Backend/Database.php | |
=================================================================== | |
--- lib/Varien/Cache/Backend/Database.php (revision 63515) | |
+++ lib/Varien/Cache/Backend/Database.php (working copy) | |
@@ -224,6 +224,7 @@ | |
if ($this->_options['store_data']) { | |
$adapter = $this->_getAdapter(); | |
$result = $adapter->delete($this->_getDataTable(), array('id=?'=>$id)); | |
+ $tagResult = $adapter->delete($this->_getTagsTable(), array('cache_id=?' => $id)); | |
return $result; |
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 bash | |
function echoerr { echo "$@" 1>&2; } | |
function error_exit { echoerr "$1"; exit 1; } | |
if [ -z "${REGION}" ] ; then error_exit "No REGION set"; fi | |
command -v jq >/dev/null 2>&1 || error_exit "'jq' not found" | |
command -v aws >/dev/null 2>&1 || error_exit "'aws' not found" | |
command -v tee >/dev/null 2>&1 || error_exit "'tee' not found" | |
command -v ec2metadata >/dev/null 2>&1 || error_exit "'ec2metadata' not found" |
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 | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt-get -y install software-properties-common | |
# X2Go | |
add-apt-repository -y ppa:x2go/stable && apt-get update | |
apt-get -y install x2goserver | |
# Download PHPStorm |
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
CREATE USER 'play'@'localhost' IDENTIFIED BY 'play'; | |
GRANT USAGE ON *.* TO 'play'@'localhost' IDENTIFIED BY 'play' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0; | |
CREATE DATABASE IF NOT EXISTS play DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; | |
GRANT ALL PRIVILEGES ON `play`.* TO 'play'@'localhost'; | |
FLUSH PRIVILEGES; |
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 | |
echo -n $'\e]9;' | |
echo -n $1 | |
echo $'\007' |
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 | |
echo '{"Fn::Base64": {"Fn::Join": ["\n", ' . json_encode(file($argv[1], FILE_IGNORE_NEW_LINES), JSON_PRETTY_PRINT) . ']}}'; |
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
ssh-dss AAAAB3NzaC1kc3MAAACATEP3SRn8/N+bHiZBH8vjjaNpYRQoPSTICxPCWTCLH4dWQXUB0r/zZ/zi9DOcIDIVOJcZGE6Cb9rXMVccijVdQ1GBFf5hDburM3sLI/Eucogm2zApmCpn/IvwOUZymjpF821tIp+7qTGFopAOFDUZDUQzNWRqAqDgs1/WContRysAAAAVAJg6+p6vsCKCx41+KQBx4rx/gyTrAAAAgDOfKzbUJo/h+n0w2R1vKJNqZevLG41QlRH8ZFgb6yOn0VElj1QKu3oI/rId+t1ZDAjBwTY4XwtZfLsg+oDbhcbjoeuVJEXp8I6LOT1uypxfmjoiVFfum24qxnxJLxmCSM/wcXJani9FlMMop8BWm2hBRYrdZr2KW+qwpfNJbhGkAAAAgEeJI71mIfd4HKvWcaXrM4kOeuM2dZnosDC7VbLpYRDlMpTZzoi0l1DUlckJzSMXddEgJAcNIxEXIxOmxB4lwHlbqTsg4e8dX7D9u1jOZE8Zd64oGe1g/VxMLbo6JP6Wa8cowyigaA4VLb6QFnPYWeCFmPhvuBYdbLZ6uHAdud5T AOE Fabrizio Branca |
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
# Path to your oh-my-fish. | |
set fish_path $HOME/.oh-my-fish | |
# Path to your custom folder (default path is ~/.oh-my-fish/custom) | |
#set fish_custom $HOME/dotfiles/oh-my-fish | |
# Load oh-my-fish configuration. | |
. $fish_path/oh-my-fish.fish | |
function fish_user_key_bindings |
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
git config --global user.email "mail@address.com" | |
git config --global user.name "Fabrizio Branca" | |
git config --global color.ui auto | |
git config --global core.editor vi | |
git config --global alias.gm "merge --no-ff" | |
git config --global alias.st "status" | |
git config --global alias.s "status" | |
git config --global alias.p "push" | |
git config --global alias.d "diff" | |
git config --global alias.a "add" |
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 | |
/** | |
* AWS CloudFormation Events Visualization | |
* | |
* @author Fabrizio Branca | |
*/ | |
/** | |
* Create an 'events.json' via using the AWS CLI Tool (or one of the SDKs...) | |
* |