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
Verifying that +fabrizio is my blockchain ID. https://onename.com/fabrizio |
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
# Select "Install Guest Additions" in the VirtualBox Gui | |
apt-get update | |
apt-get install build-essential linux-headers-$(uname -r) | |
mkdir /media/cdrom | |
mount /dev/cdrom1 /media/cdrom | |
cd /media/cdrom | |
./VirtualBoxAdditions.run |
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 | |
ini_set('display_errors', 'On'); | |
error_reporting(E_ALL); | |
set_include_path('lib' . PATH_SEPARATOR . get_include_path()); | |
spl_autoload_register('autoload'); | |
function autoload($class) |
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 | |
$table = 'catalogsearch_fulltext_cl'; | |
// $table = 'catalog_product_flat_cl'; | |
// $table = 'catalog_category_flat_cl'; | |
$db = new mysqli('host', 'user', 'password', 'dbname'); | |
if ($db->connect_errno > 0) { | |
die('Unable to connect to database [' . $db->connect_error . ']'); | |
} |
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
TARGETFOLDER="/usr/local/bin" | |
sudo curl -sSo $TARGETFOLDER/modman https://raw.github.com/colinmollenhour/modman/master/modman && sudo chmod +x $TARGETFOLDER/modman | |
sudo curl -sSo $TARGETFOLDER/n98-magerun.phar https://raw.github.com/netz98/n98-magerun/master/n98-magerun.phar && sudo chmod +x $TARGETFOLDER/n98-magerun.phar | |
sudo curl -sSo $TARGETFOLDER/phpunit.phar https://phar.phpunit.de/phpunit.phar && sudo chmod +x $TARGETFOLDER/phpunit.phar | |
sudo curl -sSo $TARGETFOLDER/phploc.phar https://phar.phpunit.de/phploc.phar && sudo chmod +x $TARGETFOLDER/phploc.phar | |
sudo curl -sS https://getcomposer.org/installer | php -- --install-dir=$TARGETFOLDER |
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
<config> | |
<global> | |
<cache> | |
<backend>File</backend> | |
<!-- not "Files", "files", or "file" (Although this mentioned in app/etc/local.xml.additional. It will work because it will fallback to the file backend, but it will flood your error log... --> | |
</cache> | |
</global> | |
</config> |
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
alias ll='ls -lha --color' | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
export HISTSIZE=1000000 | |
export HISTFILESIZE=1000000000 | |
export SVN_EDITOR=vi | |
#export GREP_OPTIONS='--color=always' | |
# see: https://www.digitalocean.com/community/tutorials/how-to-use-bash-history-commands-and-expansions-on-a-linux-vps | |
shopt -s histappend |
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
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
"\e[C": forward-char | |
"\e[D": backward-char | |
"\e[5~": history-search-backward | |
"\e[6~": history-search-forward | |
"\e[1~": beginning-of-line | |
"\e[4~": end-of-line |
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 | |
class Mage_Core_Block_Abstract { | |
public function getChildHtml($name='', $useCache=true, $sorted=false) | |
{ | |
Varien_Profiler::start('getChildHtml: '.$name); | |
if ('' === $name) { | |
if ($sorted) { | |
$children = array(); |
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
pre, code { | |
font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif; | |
} |