Skip to content

Instantly share code, notes, and snippets.

View roseleaf's full-sized avatar

Rose Auravide roseleaf

View GitHub Profile

Keybase proof

I hereby claim:

  • I am roseleaf on github.
  • I am rose (https://keybase.io/rose) on keybase.
  • I have a public key whose fingerprint is BADE 16E9 03A6 CBC6 F92E 0514 BA3C 73D4 A661 91AE

To claim this, I am signing this object:

@roseleaf
roseleaf / enable_direct_lines.rb
Created August 9, 2013 23:26
This script solves the complex problem of setting all phone numbers on "real" user profiles to direct_line, while disabling direct lines on all "dummy" profiles that have the same number. working around the issue of direct lines being unique, and of each user being required to have at least one valid "identity" (such as a direct_line phone numbe…
# This script solves the complex problem of setting all phone numbers on
# "real" user profiles to direct_line, while disabling direct lines on all
# "dummy" profiles that have the same number. working around the issue of
# direct lines being unique, and of each user being required to have at least
# one valid "identity" (such as a direct_line phone number or an email address)
# by: 1) finding all users who do not have profiles but who do have phone
# numbers and setting their emails to dummy values associated with those
# numbers in order to un-set the "direct_line" property on their numbers.
# 2) setting aside all users that do have profiles and setting their numbers
# to direct_line.
@roseleaf
roseleaf / hideAnnoyingDivs.css
Created June 11, 2013 16:19
There are a bunch of annoying tiny grey divs in ZD Classic, and I always always want to hide ALL of them.
.blue_box_top, .blue_box_bottom, .green_box_top, .green_box_bottom, .grey_box_bottom, .grey_box_top{ display: none !important; }
#introductory_text{ display: none !important; }
@roseleaf
roseleaf / hidefieldsWidget.js
Created April 26, 2013 17:41
Hide Irrelevant Ticket Fields on End User Ticket Page
var ps = $j('.side-box-content').find('p')
for(var i=0; i<ps.length; i ++){
if ($j(ps[i]).text() == "-") {
$j(ps[i]).prev().andSelf().hide();}}
@roseleaf
roseleaf / Gemfile
Created September 13, 2012 17:22
Rails Lightweight Stack. Most of this is detailed on Crafting Rails Applications - http://pragprog.com/book/jvrails/crafting-rails-applications
source :rubygems
# We are not loading Active Record, nor Active Resources etc.
# We can do this in any app by simply replacing the rails gem
# by the parts we want to use.
gem "actionpack", "~> 3.2"
gem "railties", "~> 3.2"
gem "tzinfo"
# Let's use thin