Skip to content

Instantly share code, notes, and snippets.

View sabcio's full-sized avatar

Sebastian Wojtczak sabcio

View GitHub Profile
@sabcio
sabcio / gist:0067456c38e5448118be
Created February 18, 2015 10:43
Diff mariadb cookbook
diff --git a/templates/default/my.cnf.erb b/templates/default/my.cnf.erb
index 5f4f737..fcc41da 100644
--- a/templates/default/my.cnf.erb
+++ b/templates/default/my.cnf.erb
@@ -323,6 +323,12 @@ skip-show-database
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
+<% if node['mariadb'].key?('options') -%>
+<% node['mariadb']['options'].each { |key, value| -%>
@sabcio
sabcio / mashForm.js
Created November 26, 2015 18:22
react this.refs is {}
class MashForm extends React.Component{
constructor(props){
super(props)
this.state = {malts: []}
}
componentDidMount() {
this._fetchIngredients()
}