Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/
./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent
#!/usr/bin/perl -w | |
# | |
# splitmysqldump - split mysqldump file into per-database dump files. | |
use strict; | |
use warnings; | |
my $dbfile; | |
my $dbname = q{}; | |
my $header = q{}; | |
while (<>) { |
[alias] | |
fixup = !sh -c 'REV=$(git rev-parse $1) && git commit --fixup $@ && git rebase -i --autosquash $REV^' - | |
squash = !sh -c 'REV=$(git rev-parse $1) && git commit --squash $@ && git rebase -i --autosquash $REV^' - |
$ ansible-galaxy info YourUser.RoleName | grep -E 'id: [0-9]' | awk {'print $2'} |
<?php | |
namespace AppBundle\Form; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\Extension\Core\Type\PasswordType; | |
use Symfony\Component\Form\Extension\Core\Type\RepeatedType; | |
use Symfony\Component\Form\Extension\Core\Type\SubmitType; | |
use Symfony\Component\Form\FormBuilderInterface; |
NOTE: You will need at least Redis 2.1.6 to use the ZREVRANGEBYSCORE method. | |
Add players to HIGHSCORES table: | |
fossil:~ dczarnecki$ redis-cli | |
redis> zadd HIGHSCORES 1 player_1 | |
(integer) 1 | |
redis> zadd HIGHSCORES 2 player_2 | |
(integer) 1 | |
redis> zadd HIGHSCORES 3 player_3 |
# This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com | |
# See https://www.byte.nl/blog/magento-cacheleak-issue | |
# !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!! | |
user app; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
events { |
#!/bin/bash | |
# | |
# You can set up sSMTP by setting the following ENV variables: | |
# | |
# SSMTP_TO - This is the address alarms will be delivered to. | |
# SSMTP_SERVER - This is your SMTP server. Defaults to smtp.gmail.com. | |
# SSMTP_PORT - This is the SMTP server port. Defaults to 587. | |
# SSMTP_USER - This is your username for the SMTP server. | |
# SSMTP_PASS - This is your password for the SMTP server. Use an app password if using Gmail. | |
# SSMTP_TLS - Use TLS for the connection. Defaults to YES. |
#!/bin/bash | |
############################################################################################## | |
# Wait for URLs until return HTTP 200 | |
# | |
# - Just pass as many urls as required to the script - the script will wait for each, one by one | |
# | |
# Example: ./wait_for_urls.sh "${MY_VARIABLE}" "http://192.168.56.101:8080" | |
############################################################################################## |
var gulp = require('gulp'); | |
var phpspec = require('gulp-phpspec'); | |
var run = require('gulp-run'); | |
var notify = require('gulp-notify'); | |
gulp.task('test', function() { | |
gulp.src('spec/**/*.php') | |
.pipe(run('clear')) | |
.pipe(phpspec('', { notify: true })) | |
.on('error', notify.onError({ |