Skip to content

Instantly share code, notes, and snippets.

View songjiz's full-sized avatar
🧑‍💻

songji zeng songjiz

🧑‍💻
View GitHub Profile
@songjiz
songjiz / mirrors
Last active October 18, 2015 11:34
ruby-build mirrors
# ruby-build 有时候在国内无法访问,可以修改其配置
# ~/.rbenv/plugins/ruby-build/share/ruby-build/2.2.3
# 修改对应的版本号中的配置,将链接改为淘宝的源就可以了
https://ruby.taobao.org/mirrors/ruby/
@songjiz
songjiz / install_arch.sh
Last active June 7, 2016 09:09
Install Arch linux
# 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
@songjiz
songjiz / resque.rake
Last active August 29, 2015 14:23 — forked from denmarkin/resque.rake
# 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}..."