http://stackoverflow.com/questions/5720236/looping-through-product-collection-and-saving-products-is-changing-attribute-val
better way
http://www.fontis.com.au/blog/magento/loading-large-collections
Dicas, Tutoriais e lembretes que ajudam no dia a dia
http://stackoverflow.com/questions/5720236/looping-through-product-collection-and-saving-products-is-changing-attribute-val
better way
http://www.fontis.com.au/blog/magento/loading-large-collections
http://stackoverflow.com/questions/8923114/how-to-reset-auto-increment-in-mysql
http://stackoverflow.com/questions/13370617/how-to-delete-a-shipment-from-magento-that-was-created-accidentally
http://support.citrix.com/article/CTX135809
A ferramenta mais conhecida para geração de certificados no Linux é parte do toolkit OpenSSL. Este toolkit é utilizada por quase todas as aplicações que implementam SSL/TLS, como os servidores HTTP Apache e Nginx.
Normalmente a obtenção de um certificado digital, necessário para a encriptação assimétrica realizada para comunicação entre o servidor HTTP e o cliente, pode ocorrer de duas formas: Pela criação de um certificado auto-assinado, onde nenhuma entidade certificadora garante a autenticidade; Ou pela criação de um CSR, que será usado por uma entidade certificadora para gerar o certificado digital assinado, no qual terá sua autenticidade garantida pela certificadora.
openssl req -new -newkey rsa:2048 -sha256 -nodes -keyout chave.key -out requisicao.csr
openssl req -in requisicao.csr -noout -text
openssl req -key chavePrivada.key -new -out requisicao.csr
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout chavePrivada.key -out certificado.crt
openssl x509 -in certificado.crt -text -noout
openssl rsa -in chave.key -out chavePrivadaSemSenha.key
openssl x509 -noout -modulus -in certificado.crt | openssl md5
openssl rsa -noout -modulus -in chave.key | openssl md5
openssl req -noout -modulus -in requisicao.csr | openssl md5
https://phcco.com/ferramenta-para-gerar-e-testar-certificados-ssl
https://github.com/DIXINFOR/ddns-update-for-ispconfig
Crontab on local machine
*/30 * * * * wget –no-check-certificate ‘https://server.example.com:8080/ddns-update.php?username=user&password=password&hostname=intranet.example.com‘
mkdir -p ~/app/ispconfig cd app/ispconfig/ git clone https://github.com/DIXINFOR/ddns-update-for-ispconfig.git cd /usr/local/ispconfig/interface/web cp ~/app/ispconfig/ddns-update-for-ispconfig/index.php ddns-update.php cp ~/app/ispconfig/ddns-update-for-ispconfig/log.inc.php ddns-log.inc.php
--- /root/app/ddns-update-for-ispconfig/log.inc.php 2016-04-01 14:05:06.485384000 -0300 +++ /usr/local/ispconfig/interface/web/ddns-log.inc.php 2016-04-01 15:25:16.801384000 -0300 @@ -4,7 +4,7 @@ private $file; function __construct($name) { - $this->file = "log_".str_replace('.', '_', $name).".txt" ; + $this->file = "/var/log/ddns-log_".str_replace('.', '_', $name).".txt" ; } function debug($log) { @@ -22,4 +22,4 @@ } } -?> \ No newline at end of file +?>
--- /root/app/ddns-update-for-ispconfig/index.php 2016-04-01 14:05:06.485384000 -0300 +++ /usr/local/ispconfig/interface/web/ddns-update.php 2016-04-01 14:32:43.449384000 -0300 @@ -1,9 +1,9 @@ <?php -require_once('log.inc.php'); +require_once('ddns-log.inc.php'); // ISPConfig URL for REMOTE API -$soap_location = 'https://10.0.0.251:8080/remote/index.php'; -$soap_uri = 'https://10.0.0.251:8080/remote/'; +$soap_location = 'https://localhost:8080/remote/index.php'; +$soap_uri = 'https://localhost:8080/remote/'; // Exception List $exception = array('example.com','example2.com.'); @@ -136,7 +136,7 @@ $log->debug("End content"); // check if record is A IPv4 (not cname, mx, txt, ...) $log->debug("Check record type"); - if ($dns_record[0]['type']!='a'){ + if ($dns_record[0]['type']!='A'){ $log->debug("Record type is not A. You can only update a A record"); echo "dnserr"; exit; @@ -182,4 +182,4 @@ } -?> \ No newline at end of file +?>
iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 8080 -j ACCEPT
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
http://proghowto.com/iptables-redirect-port-80-to-port-8080
SELECT e.entity_id, e.sku FROM catalog_product_entity AS e LEFT JOIN catalog_category_product AS l ON l.product_id = e.entity_id WHERE l.category_id IS NULL
http://magento.stackexchange.com/questions/5688/search-products-that-are-not-in-any-categories
http://stackoverflow.com/questions/10523254/magento-mass-assign-products-to-category