This file contains 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
mkdir -p disk/assets | |
mkdir -p disk/system | |
ln -s ../disk/assets public/assets | |
ln -s ../disk/system public/system |
This file contains 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
# app/models/something.rb | |
class Something < ActiveRecord::Base | |
... | |
end | |
# app/models/example.rb | |
class Example < ActiveRecord::Base | |
include Something # (I get the error here) | |
... |
This file contains 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
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 |
This file contains 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
namespace :db do | |
task :migrate do | |
Rake::Task['ar:migrate'].invoke | |
end | |
namespace :schema do | |
task :load do | |
Rake::Task['ar:schema:load'].invoke | |
end | |
end |
This file contains 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
require 'jruby/profiler' | |
profile_data = JRuby::Profiler.profile do | |
require 'sinatra' | |
end | |
profile_printer = JRuby::Profiler::GraphProfilePrinter.new(profile_data) | |
profile_printer.printProfile(STDOUT) |
This file contains 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
#!/usr/bin/python | |
# based on https://github.com/damaex17/whisper-to-influxDB | |
# adjusted to graphite-api data format | |
from influxdb import InfluxDBClient | |
import argparse | |
import whisper | |
import os | |
import time |
This file contains 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
➜ ~ 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) |
This file contains 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
source :rubygems | |
gem 'rack' | |
gem 'rake' | |
gem 'thin', group: :production |
This file contains 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
///// @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. | |
/// | |
define(['settings'], | |
function (Settings) { | |
return new Settings({ |
This file contains 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
[2014/12/15 12:55:46 CET] [EROR] (github.com/influxdb/influxdb/api/graphite.(*Server).Serve:120) GraphiteServer: Accept: %!(EXTRA *errors.errorString=use of closed network connection) | |
[2014/12/15 12:55:46 CET] [WARN] (github.com/influxdb/influxdb/api/graphite.(*Server).ServeUdp:140) GraphiteServer: Error when reading from UDP connection use of closed network connection |
OlderNewer