needed packages: update-notifier-common unattended-upgrades
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";
<?php | |
/* | |
Follow these steps to create this functionality: | |
1. Create a custom date attribute, lets call it ‘activation_date’ | |
2. Create a cron job that should implement the following: | |
2.1 Retrieve all product ids that were not activated (E.G. status disabled) and their activation date | |
is lower than current date | |
2.2 Activate all these products by the product attribute mass-action model: | |
*/ |
server { | |
root /home/daim2k5/www/magento19.localhost; | |
index index.php; | |
server_name magento19.localhost; | |
location / { | |
index index.html index.php; | |
try_files $uri $uri/ @handler; | |
expires 30d; | |
} | |
location ^~ /(app|includes|lib|media/downloadable|pkginfo|report/config.xml|var)/ { internal; } |
/* | |
(C) Copyright 2012-2013 Massachusetts Institute of Technology | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, |
#!/bin/bash | |
# This script | |
# - creates a user (named below) | |
# - sets up a union (aufs) filesystem on top of the users immutable home | |
# - creates a cleanup script (/usr/local/bin/cleanup.sh) that empties the aufs | |
# layer on login/logout/boot | |
# - replaces the lightdm config | |
# - replaces rc.local to run the script | |
# |
#!/usr/bin/php | |
<?php | |
/* | |
* cronjob to fix ridiculous rounding bug with paypal | |
* @Author fabian krueger | |
* | |
* use this script on your risk! | |
* | |
* - modified to use SOAP-API, needs SOAP user with admin rights | |
* - needs to live in mage installation folder |