This file contains hidden or 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
# ruby-build 有时候在国内无法访问,可以修改其配置 | |
# ~/.rbenv/plugins/ruby-build/share/ruby-build/2.2.3 | |
# 修改对应的版本号中的配置,将链接改为淘宝的源就可以了 | |
https://ruby.taobao.org/mirrors/ruby/ |
This file contains hidden or 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
# Arch UEFI With USTC Mirror | |
# Use fdisk to create disk partitions | |
fdisk /dev/sdb | |
# sdb | |
# |-- sdb1 (as boot,EFI) | |
# |-- sdb2 (as root) | |
# |-- sdb3 (as home) | |
# Format | |
mkfs.vfat -F32 -n EFI /dev/sdb1 |
This file contains hidden or 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}..." |
NewerOlder