e
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 | |
require_once('app/Mage.php'); | |
ini_set('display_errors', 1); | |
Mage::app('admin'); | |
$user_ids = array(1,2,3,4); | |
foreach ($user_ids as $id) { | |
$customer = Mage::getModel('customer/customer')->load($id); | |
$storeId = $customer->getSendemailStoreId(); | |
$customer->setPassword($customer->getUsername()); |
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 | |
require_once('app/Mage.php'); | |
ini_set('display_errors', 1); | |
Mage::app('admin'); | |
$orderIds = array(1,2,3,4); | |
$orders = Mage::getModel('sales/order')->getCollection() | |
->addFieldToFilter('entity_id', (array) $orderIds); | |
foreach ($orders as $o) { | |
//load order object - I know it's not ok to use load in a loop but it should be ok since it's a one time script | |
$order = Mage::getModel('sales/order')->load($o->getId()); |
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
var style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = ` | |
.message-list-common:not(.chat-style) .medium-width .thread-action-reply-message, .message-list-common:not(.chat-style) .medium-width .conversation-collapsed { | |
width: 14rem; | |
position: absolute; | |
right: 60px; | |
top: 4px; | |
-webkit-transition: width 5s; |
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
var pm2 = require('pm2'); | |
var path = require('path'); | |
pm2.start({ | |
name: "PostgresSql", | |
script: "/postgres/bin/postgres.exe", | |
args: "-D /postgres/data/pgsql/", | |
exec_mode: "fork_mode", | |
max_memory_restart: '2G', | |
autorestart: true, | |
output: "out.log", |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
// None of the tutorals could help me, so I adapted a few codes. | |
// What I really want is make a full duplex way between NodeJS and Java, using encrypt/decrypt with AES 128 bit | |
// 1 - you must have to generate the key | |
openssl enc -aes-128-cbc -k secret -P -md sha1 | |
// key examples: | |
// DCDD74627CD60252E35DFBA91A4556AA | |
// 2CB24CFDB3F2520A5809EB4851168162 | |
// 468CA14CA44C82B8264F61D42E0E9FA1 |
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
* Projeto Zumbi | |
Você sabe que o projeto está morto, mas ele insiste em pegar no seu pé. | |
* Projeto Drácula | |
Você tenta acabar com ele de todo o jeito, mas ele continua a tirar o seu sangue e suor. | |
* Projeto Lobisomem | |
Meia noite, lua cheia e você até consegue escutar o uivo dele no seu e-mail. | |
* Projeto Frankenstein |
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 | |
/** | |
* Canivete suiço do Joomleiro moderno #2 | |
* - Códigos para VirtueMart 2.0 | |
* weber.eti.br | virtuemartpro.com.br | |
* Luiz Weber @luizwbr | |
**/ | |
// Virtuemart 2.0 |