Skip to content

Instantly share code, notes, and snippets.

View emiliano1's full-sized avatar
:octocat:
Working...

Emiliano Qaqi emiliano1

:octocat:
Working...
  • Miami, Florida
View GitHub Profile
@mauricioprado00
mauricioprado00 / product-website.php
Last active July 31, 2020 12:03
magento product website assigner
<?php
/**
* Intellimage
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/osl-3.0.php
@denmarkin
denmarkin / resque.rake
Created September 20, 2011 11:02
My rake task for clearing Resque queues and stats
# see http://stackoverflow.com/questions/5880962/how-to-destroy-jobs-enqueued-by-resque-workers - old version
# see https://github.com/defunkt/resque/issues/49
# see http://redis.io/commands - new commands
namespace :resque do
desc "Clear pending tasks"
task :clear => :environment do
queues = Resque.queues
queues.each do |queue_name|
puts "Clearing #{queue_name}..."