Skip to content

Instantly share code, notes, and snippets.

View albertvolkman's full-sized avatar

Albert Volkman albertvolkman

View GitHub Profile
@albertvolkman
albertvolkman / Rakefile
Last active August 29, 2015 14:03 — forked from arturo-c/Rakefile
require 'resque'
namespace :resque do
desc "Clear pending tasks"
task :clear do
queues = Resque.queues
queues.each do |queue_name|
puts "Clearing #{queue_name}..."
Resque.redis.del "queue:#{queue_name}"
end
<?php
/**
* Implements hook_drush_command().
*/
function imagestyles_drush_command() {
$items = array();
$items['imagestyles'] = array(
'callback' => 'imagestyles_drush_callback',