The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: February 13th 2016
- Original post
#Usage: search_blocks.sh SITE TERM | |
#Where SITE is chart or press and TERM is whatever you're looking for. | |
#!/bin/bash | |
ssh lucid 'mysql '$1'_drupal -e "SELECT bid, info, CONCAT('\''https://zach.office.lucid'$1'.com/pages/admin/structure/block/manage/block/'\'', bid, '\''/configure'\'') as url FROM block_custom WHERE body LIKE '\''%'$2'%'\''\G"' |
// found here http://forums.shopify.com/categories/2/posts/29259 | |
var getOrdinal = function(n) { | |
var s=["th","st","nd","rd"], | |
v=n%100; | |
return n+(s[(v-20)%10]||s[v]||s[0]); | |
} |