Skip to content

Instantly share code, notes, and snippets.

@eshea
eshea / dashboards.rb
Created July 8, 2012 22:39 — forked from webmat/dashboards.rb
First draft of an active_admin-based view for Delayed::Job
ActiveAdmin::Dashboards.build do
# Add this section in your dashboard...
section "Background Jobs" do
now = Time.now.getgm
ul do
li do
jobs = Delayed::Job.where('failed_at is not null').count(:id)
link_to "#{jobs} failing jobs", admin_jobs_path(q: {failed_at_is_not_null: true}), style: 'color: red'
end
@eshea
eshea / BuildUniversalLibrary.sh
Created June 26, 2012 20:37 — forked from cspickert/BuildUniversalLibrary.sh
Build fat static library (device + simulator) using Xcode and SDK 4+
#!/bin/sh
# Version 2.0 (updated for Xcode 4, with some fixes)
# Changes:
#    - Works with xcode 4, even when running xcode 3 projects (Workarounds for apple bugs)
#    - Faster / better: only runs lipo once, instead of once per recursion
#    - Added some debugging statemetns that can be switched on/off by changing the DEBUG_THIS_SCRIPT variable to "true"
#    - Fixed some typos
#
# Purpose: