instant-messaging plugin
Jabber Plugin plugin
- Enable Jabber Notification
- Jabber ID:
<[email protected]>
- Password:
<your password>
- Advanced
- Server:
talk.google.com
instant-messaging plugin
Jabber Plugin plugin
<[email protected]>
<your password>
talk.google.com
git clone --bare [email protected]:user/repo.git
cd repo.git
git push --mirror [email protected]:user/repo.git
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
#!/bin/bash | |
### System Setup ### | |
DIRS="/var/www/shop/public_html" | |
BACKUP=/tmp/backup.$$ | |
NOW=$(date +"%d-%m-%Y") | |
DELDATE=$(date -d "-7 days" +"%d-%m-%Y") | |
### MySQL Setup ### | |
MUSER="xxx" |
<?php | |
/** | |
* Create Shopping Cart Sales Rule with Specific Coupon Code Programmatically | |
*/ | |
// All customer group ids | |
$customerGroupIds = Mage::getModel('customer/group')->getCollection()->getAllIds(); | |
// SalesRule Rule model | |
$rule = Mage::getModel('salesrule/rule'); |
<?php | |
/* | |
O COUNT() primeiro carrega toda a collection e depois conta quantos itens tem. Por isso dependendo da situação, não é melhor opção a se usar para saber se tem registros. | |
Arquivo: lib/Varien/Data/Collection.php | |
public function count() | |
{ | |
$this->load(); | |
return count($this->_items); | |
} |
#!/bin/sh | |
if [ x = x${2} ]; then | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
STORY_NUMBER=$(echo $BRANCH_NAME | sed -n 's/.*-\([0-9]\)/\1/p') | |
if [ x != x${STORY_NUMBER} ]; then | |
sed -i.back "1s/^/\n\n[#$STORY_NUMBER]/" "$1" | |
fi | |
fi |
use Doctrine\Common\Collections\ArrayCollection; | |
use Doctrine\Common\Collections\Collection; | |
use Doctrine\Common\Inflector\Inflector; | |
use Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory; | |
use Doctrine\ORM\EntityManager; | |
use Doctrine\ORM\Mapping\ClassMetadata; | |
use Doctrine\ORM\Mapping\ClassMetadataInfo; | |
use Doctrine\ORM\Mapping\MappingException; | |
use Doctrine\ORM\PersistentCollection; | |
use Foodity\CoreBundle\Helper\EntityHelper; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/bash | |
# Author: Erik Kristensen | |
# Email: [email protected] | |
# License: MIT | |
# Nagios Usage: check_nrpe!check_docker_container!_container_id_ | |
# Usage: ./check_docker_container.sh _container_id_ | |
# | |
# Depending on your docker configuration, root might be required. If your nrpe user has rights | |
# to talk to the docker daemon, then root is not required. This is why root privileges are not |