Skip to content

Instantly share code, notes, and snippets.

View timfjord's full-sized avatar
🐇

Tim Masliuchenko timfjord

🐇
View GitHub Profile
@roolo
roolo / mysql2-gem-install.sh
Last active December 25, 2018 07:43
Fixing "Incorrect MySQL client library version! This gem was compiled for 5.5.29 but the client library is 5.6.10. (RuntimeError)" on OS X while using Brew
ARCHFLAGS="-arch x86_64" gem install mysql2 -- –with-mysql-config=/usr/local/bin/mysql_config
@cmaujean
cmaujean / _add_dialog.html.erb
Created September 30, 2011 18:13
Spree Add to Cart AJAX for spree 0.60-stable
<!-- app/views/orders/_add_dialog.html.erb -->
<div id="add_to_cart_dialog">
Your item(s) have been added. You now have <%= order.item_count %>
items valued at <%= number_to_currency order.item_total %> in your cart.<br/>
<div id="buttons" style="margin-top: 10px; width: 100%;">
<button id="continue_shopping_button" style="float: left;" type="button">Continue Shopping (10)</button>
<button id="view_cart_button" style="margin-left: 10px; float: left;clear: right;" type="button">Checkout Now</button>
</div>
</div>
@lusis
lusis / dba-user.json
Created January 7, 2011 11:24
Managing MySQL user accounts with Chef
{
"id":"dbauser",
"uid":506,
"comment":"DBA User",
"shell":"/bin/bash",
"groups": [
"sysadm",
"dba"
],
"ssh_key": "XXXXXXXXXX"