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
#!/usr/bin/env ruby | |
# Description: Show number of workers by server based on "https://gist.github.com/1334470" | |
# Source: https://gist.github.com/2598254 | |
# | |
require 'rubygems' | |
require 'resque' | |
HOST = ENV['host'] ? ENV['host'] : '127.0.0.1' | |
PORT = ENV['port'] ? ENV['port'] : '6379' |
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
#!/usr/bin/env ruby | |
# Description: Show number of workers active by queue based on "https://gist.github.com/1334470" | |
# Source: https://gist.github.com/2598272 | |
# | |
require 'rubygems' | |
require 'resque' | |
HOST = ENV['host'] ? ENV['host'] : '127.0.0.1' | |
PORT = ENV['port'] ? ENV['port'] : '6379' |
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
#!/usr/bin/env ruby | |
CODES = { | |
'400' => 'Bad Request', | |
'401' => 'Unauthorized', | |
'403' => 'Forbidden', | |
'404' => 'Not Found', | |
'405' => 'Method Not Allowed', | |
'406' => 'Not Acceptable', | |
'408' => 'Request Timeout', |
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
# 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}..." |
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
/omnilogic/retailcore/shared/log/*.log { | |
daily | |
missingok | |
rotate 0 | |
compress | |
delaycompress | |
notifempty | |
copytruncate | |
sharedscripts | |
postrotate |
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
/** | |
* Configuração de localização em Português do Brasil(PT-BR) para o D3.js realizar formatação tempo e números | |
* Mais detalhes conferir a documentação: https://github.com/mbostock/d3/wiki/Time-Formatting | |
*/ | |
var localized = d3.locale({ | |
"decimal": ",", | |
"thousands": ".", | |
"grouping": [3], | |
"currency": ["R$", ""], |
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
# If ~/.android/debug.keystore exists you need remove this previosly | |
keytool -genkey -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android -keysize 2048 -keyalg RSA -sigalg SHA256withRSA -validity 30000 -dname "CN=Android Debug,O=Android,C=US" | |
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
ADOBE Creative Suite 5 Master Collection | |
1023-1631-3275-3276-0087-5426 | |
1325-1576-4130-9475-8280-4266 | |
1325-1548-7004-9142-5077-1912 | |
1325-1684-1405-3432-6260-7438 | |
1325-1238-0019-6636-5160-2146 | |
1325-1966-4532-5397-9277-9204 |
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
# String matcher for shell | |
# author: Vinícius Daniel Antunes Oliveira <viniciusdaniel@gmail.com> | |
# license: MIT <https://opensource.org/licenses/MIT> | |
# | |
#!/bin/bash | |
# Usage: | |
# cat /tmp/file | match.sh <regexp> [group match] | |
# match.sh <filename> <regexp> [group match] | |
# match.sh <string> <regexp> [group match] | |
# |
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
# /etc/udev/rules.d/51-android.rules | |
# udev rule to detect android devices | |
# These rules refer to http://developer.android.com/tools/device.html | |
# Acer | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="plugdev" | |
# Archos | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", MODE="0666", GROUP="plugdev" | |
# Asus | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev" |
OlderNewer