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
| // Author: Eric Boehs | |
| // Description: Submits a GET request using jQuery's AJAX lib to conferences/search.js. | |
| // It expects an html response of the <li> elements of each conference object | |
| // It will populate the ul.search-results element with the response | |
| // Created: February 20th, 2011 | |
| // Version: 0.01 | |
| // BUG: There's a horrible bug in this version: Searches are commonly left blank even though | |
| // there may be results due to the throttling I built in. Pressing an enter at the end of the | |
| // search fixes it. I thought about doing a loop check to search again if they I haven't seen a | |
| // a keypress in >500ms or something. But then I thought I should go to bed. |
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
| # Add this to the bottom of your .git/config: | |
| [merge "gemfilelock"] | |
| name = relocks the gemfile.lock | |
| driver = bundle install |
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
| SELECT sku from products where description LIKE CONCAT('%�%'); |
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
| # - This requires a generate_pound_config command (which is just a bin for the gem of a similar name) | |
| # - I have moved away from doing server level configuration in capistrano (yay chef). | |
| # - This was a bit of a hack since we didn't have github/unicorn style seamless deploys. | |
| # - Another hack is that the pound init script doesn't throw an error exit code when it fails. | |
| # I didn't want to modify that script as again I don't like the thought of modifying server | |
| # configs with capistrano (I can now modify this with chef if the need arises) | |
| # - This could be made a bit DRYer if I passed start/stop/restart to a process_control task or something. | |
| namespace :lb do | |
| task :load_config, :roles => [:lb] do |
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
| alias wgs='watch "echo \"prod: `curl -Is www.jerky.com | grep Git | cut -d\ -f2`\" && echo \"head: `git rev-parse HEAD`\""' |
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
| puts "hi" | |
| require 'rubygems' | |
| require 'notifo' | |
| notifo = Notifo.new("digistore_deploy","5b03321219fcbeec3f83ee0cacf77f4bcf26517f") | |
| notifo.subscribe_user("jackbewley") | |
| notifo.post("jackbewley","Jack is an AssetHat") | |
| #notifo.verify_webhook_signature(post_params_hash) |
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
| if [ $elapsed -gt $max ]; then | |
| #Fails: $1 | curl -k -s -u $NOTIFO_USER:$NOTIFO_KEY -d "msg=+hi&title=bye" https://api.notifo.com/v1/send_notification > /dev/null | |
| #Fails: curl -k -s -u $NOTIFO_USER:$NOTIFO_KEY -d "msg=+took+$elapsed+secs&ttitle=${PREEXEC_CMD:-Some Command}" https://api.notifo.com/v1/send_notification > /dev/null | |
| #Works: $1 | growlnotify -n "iTerm" -m "took $elapsed secs" ${PREEXEC_CMD:-Some Command} | |
| fi |
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
| ## Hack to remove .gem directory for ubuntu (root is creating this for some reason) | |
| directory "#{node[:digistore][:ubuntu_home_dir]}/.gem" do | |
| action :delete | |
| recursive true | |
| end |
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
| execute "install system-wide RVM" do | |
| user "root" | |
| command <<-CODE | |
| bash -c "bash <( curl -LB #{node[:rvm][:installer_url]} )#{script_flags}" | |
| CODE | |
| not_if rvm_wrap_cmd(%{type rvm | head -1 | grep -q '^rvm is a function$'}) | |
| end |
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
| * 2ee19e0 2011-04-05 | Merge branch 'master' of git@github.com:digimedia/digistore_new [Asad] | |
| * 2331497 2011-04-05 | merge digimedia master [Asad] | |
| * 0ccca82 2011-04-04 | balance due info added in the views [Asad] | |
| * b8b0012 2011-04-04 | some order manager clenup [Asad] | |
| * 142bbf7 2011-04-04 | admin side order manager customizations minor bugs fixed [Asad] | |
| * ba23b83 2011-04-04 | Merge branch 'master' of git@github.com:digimedia/digistore_new [Asad] | |
| * 2f6659b 2011-04-01 | paper_trail added to the order_product and order_product_customizations model [Asad] | |
| * 942b569 2011-04-01 | Merge branch 'master' of git@github.com:digimedia/digistore_new [Asad] | |
| * b9f5425 2011-03-31 | paper_trail commented [Asad] | |
| * 4cfa9b4 2011-03-31 | sales_tax fixed on the order manager [Asad] |