Skip to content

Instantly share code, notes, and snippets.

Sebastian Wojtczak sabcio

Block or report user

Report or block sabcio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sabcio / mashForm.js
Created Nov 26, 2015
react this.refs is {}
View mashForm.js
class MashForm extends React.Component{
this.state = {malts: []}
componentDidMount() {
View gist:0067456c38e5448118be
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| -%>
View gist:b8fca9d9194c10bed361
[2014/12/15 12:55:46 CET] [EROR] (*Server).Serve:120) GraphiteServer: Accept: %!(EXTRA *errors.errorString=use of closed network connection)
[2014/12/15 12:55:46 CET] [WARN] (*Server).ServeUdp:140) GraphiteServer: Error when reading from UDP connection use of closed network connection
sabcio / config.js
Created Oct 29, 2014
Grafana config file
View config.js
///// @scratch /configuration/config.js/1
// == Configuration
// config.js is where you will find the core Grafana configuration. This file contains parameter that
// must be set before Grafana is run for the first time.
function (Settings) {
return new Settings({
sabcio / Gemfile
Last active Aug 29, 2015
Simple Rack application to server static content
View Gemfile
source :rubygems
gem 'rack'
gem 'rake'
gem 'thin', group: :production
sabcio / gist:35783b5dcc043177c6cf
Created Jul 9, 2014
shelly install of a fresh setup
View gist:35783b5dcc043177c6cf
➜ ~ rvm use ruby-2.0.0-p451@test
Using /Users/sebek/.rvm/gems/ruby-2.0.0-p451 with gemset test
➜ ~ gem list
*** LOCAL GEMS ***
bundler (1.6.1, 1.5.2)
bundler-unload (1.0.2)
executable-hooks (1.3.1)
sabcio / gist:e09ba01899602e34d957
Created Jul 7, 2014
whisper to influxdb - using graphite-api to render graphs
View gist:e09ba01899602e34d957
# based on
# adjusted to graphite-api data format
from influxdb import InfluxDBClient
import argparse
import whisper
import os
import time
sabcio / app.rb
Created Apr 10, 2014
require 'sinatra' on jruby 1.7.11
View app.rb
require 'jruby/profiler'
profile_data = JRuby::Profiler.profile do
require 'sinatra'
profile_printer =
View gist:8419310
namespace :db do
task :migrate do
namespace :schema do
task :load do
sabcio / gist:6106900
Last active Dec 20, 2015
Trying out emberJS
View gist:6106900
App = Ember.Application.create();
App.Store = DS.Store.extend({
revision: 12,
adapter: "DS.RESTAdapter"
controller (coffee):
App.ApplicationController = Ember.Controller.extend(
mainPages: App.Page.find
You can’t perform that action at this time.