fdupes HowTo (found file duplicates)
- Read more about fdupes HowTo (found file duplicates)
- Log in to post comments
IFS=$(echo -en "\n\b")
fdupes -R . > fdupes.log
cat fdupes.log | grep "XYZ" > del.txt
for i in $(cat del.txt); do
rm $i;
done
Magento move cart to header
- Read more about Magento move cart to header
- Log in to post comments
# xml config
<?xml version="1.0" encoding="UTF-8"?>
# header
./app/design/frontend/default/default/template/page/html/header.phtml
add
<?php echo $this->ge
Magento: customize footer
customize footer
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/footer/footer.phtml.diff";
echo "$URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
remove footer links
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/footer/local.xml";
echo "$URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
Links
http://www.matthias-zeis.com/archiv/footer-links-magento-anpassen
Magento: Search by Category
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/catalogsearch/form.mini.phtml";
echo "$URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/catalogsearch/catalogsearch.xml.diff";
echo "$URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/catalogsearch/Query.php.diff";
echo "$URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
Magento: GoogleAnalytics fix
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/GoogleAnalytics/Ga.php.diff";
echo "$URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
wget http://www.panticz.de/sites/default/files/magento/GoogleAnalytics/Ga.php.diff -O /tmp/Ga.php.diff
patch -p2 ./app/code/core/Mage/GoogleAnalytics/Block/Ga.php < /tmp/Ga.php.diff
#
# TEST
#
# get source code
cd /tmp/
svn checkout http://svn.magentocommerce.com/source/branches/1.4-trunk
# trunk
cd /tmp/1.4-trunk/
# pack
tar cjf GoogleAnalytics.tar.bz2 app/code/core/Mage/GoogleAnalytics/ app/design/frontend/base/default/layout/googleanalytics.xml app/locale/en_US/Mage_GoogleAnalytics.csv --exclude=.svn
# transfer archive to your magento machine
scp /tmp/1.4-trunk/GoogleAnalytics.tar.bz2 root@YOUR_MAGENTO_IP:/tmp
# extract
diff app/code/core/Mage/GoogleAnalytics/ /var/www/app/code/core/Mage/GoogleAnalytics/ -r
# Links
http://www.magentocommerce.com/boards/viewthread/23325/P45/
http://www.magentocommerce.com/boards/viewthread/77774/#t215469
Install myTinyTodo under Ubuntu
- Read more about Install myTinyTodo under Ubuntu
- Log in to post comments
# install webserver
http://www.panticz.de/install_webserver
# download and extract mytinytodo
wget http://www.mytinytodo.net/latest.php -O /tmp/mytinytodo.zip
unzip /tmp/mytinytodo.zip -d /var/www
# OPTIONAL: download and extract german translation
wget http://www.mytinytodo.net/lang/zip/de.zip -O /tmp/de.zip
unzip /tmp/de.zip -d /var/www/mytinytodo/lang/
# rename directory to "todo"
mv /var/www/mytinytodo/ /var/www/todo/
# create db
echo "CREATE DATABASE todo; GRANT all ON todo.* TO 'todo'@'localhost' IDENTIFIED BY 'pass';" | mysql -u root -p
# set file permissions
chow
Magento disable main category mouse over navigation
# view mouse over only for first sub-category
cp ./app/code/core/Mage/Catalog/Block/Navigation.php ./app/code/local/Mage/Catalog/Block/Navigation.php
wget -nv http://www.panticz.de/sites/default/files/magento/nav-container-mouse-over/Navigation.php.diff -O /tmp/Navigation.php.htmlChildren.diff
patch -p2 ./app/code/local/Mage/Catalog/Block/Navigation.php < /tmp/Navigation.php.htmlChildren.diff
# to complete disable mouse over change
if ($hasChildren && $level == 0){
to
if ($hasChildren && $level == -1){
in
./app/code/local/Mage/Catalog/Block/Navigation.php in line 223
Magento customized "Shop by" Navigation
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/customized-shop-by/local.xml";
echo "$URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/customized-shop-by/layer_view.css";
echo "$URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/customized-shop-by/my.view.phtml";
echo "$URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/customized-shop-by/filter.phtml";
echo "$URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/customized-shop-by/filter.select.phtml";
echo "$URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/customized-shop-by/state.phtml";
echo "$URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/customized-shop-by/state.select.phtml";
echo "$URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
OPTIONAL: state.phtml with filter
ToDo: HowTo get avaiable options in a category for a filter?
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/customized-shop-by/state.phtml.with.filter.dev";
echo "$URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
other files
./app/code/core/Mage/Catalog/Block/Layer/Filter/Abstract.php
./app/design/frontend/default/default/layout/catalogsearch.xml
Links
http://classyllama.com/development/magento-development/the-better-way-to-modify-magento-layout/
http://docs.magentocommerce.com/Mage_Catalog/Mage_Catalog_Block_Layer_Filter_Attribute.html
http://www.mageintern.de/magento-shop-design/magento-navigation/filternavigation-layered-nav-mit-drop-down-auswahl.html
http://www.magentocommerce.com/boards/viewthread/28220/
IPMI
ipmitool
www.panticz.de/ipmitool
apt-add-repository universe
ipmi-sensors
# dep: supermicro tool
ipmicfg -dhcp off
ipmicfg -dhcp on
ipmicfg -m
UID identificator
BMC_IP=10.0.1.123
BMC_USER=ADMIN
BMC_PASS=ADMIN
Posts
22 (TCP) SMASH
80 (TCP) HTTP (unsecure Webinterface)
443 (TCP) HTTPS (secure Webinterface)
623 (UDP) IPMI
2937 (TCP) KVM console
5900 (TCP) remote console (KVM over IP, on webinterface)
5901 (TCP) Video (remote console)
5120 (TCP) CD (remote console)
5123 (TCP) Floppy (remote console)