Skip to content

Instantly share code, notes, and snippets.

View naag's full-sized avatar

Peter Bücker naag

View GitHub Profile
$ docker logs influxdb
influxdb configuration:
### Welcome to the InfluxDB configuration file.
# Once every 24 hours InfluxDB will report anonymous data to m.influxdb.com
# The data includes raft id (random 8 bytes), os, arch, version, and metadata.
# We don't track ip addresses of servers reporting. This is only used
# to track the number of instances running and the versions, which
# is very helpful for us.
# Change this option to true to disable reporting.
$ bundle list
Gems included by the bundle:
* actionmailer (4.2.0)
* actionpack (4.2.0)
* actionview (4.2.0)
* activejob (4.2.0)
* activemodel (4.2.0)
* activerecord (4.2.0)
* activerecord-sqlserver-adapter (4.2.3)
* activesupport (4.2.0)
class Foo < Thor::Group
include Thor::Actions
# Define arguments and options
argument :name
class_option :test_framework, :default => :test_unit
def self.source_root
File.dirname(__FILE__)
end
@naag
naag / BaseController.php
Created March 1, 2011 15:04
Multiple argument validation in Extbase
<?php
class Tx_MyExt_Controller_BaseController extends Tx_Extbase_MVC_Controller_ActionController {
/**
* @see Tx_Extbase_MVC_Controller_ActionController::callActionMethod()
*/
protected function callActionMethod() {
$this->validateAll();
parent::callActionMethod();
*
***
#
/#\
/ # \
/#\
/ # \
o /#\ \
o / # \ \
o /#\ \
@naag
naag / gist:738793
Created December 13, 2010 08:26
Gitorious functional tests failing
$ rake test:functionals
(in /var/www/gitorious)
/usr/bin/ruby1.8 -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/favorites_controller_test.rb" "test/functional/merge_request_versions_controller_test.rb" "test/functional/blobs_controller_test.rb" "test/functional/pages_controller_test.rb" "test/functional/trees_controller_test.rb" "test/functional/licenses_controller_test.rb" "test/functional/projects_controller_test.rb" "test/functional/messages_controller_test.rb" "test/functional/keys_controller_test.rb" "test/functional/aliases_controller_test.rb" "test/functional/users_controller_test.rb" "test/functional/site_controller_test.rb" "test/functional/groups_controller_test.rb" "test/functional/searches_controller_test.rb" "test/functional/merge_requests_controller_test.rb" "test/functional/repositories_controller_test.rb" "test/functional/sessions_controller_test.rb" "test/functional/comments_controller_test.rb" "test/functional/committerships_controller_tes
@naag
naag / gist:738779
Created December 13, 2010 08:09
Gitorious unit tests failing
$ rake test:units
(in /var/www/gitorious)
/usr/bin/ruby1.8 -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/favorite_test.rb" "test/unit/cloner_test.rb" "test/unit/merge_request_status_test.rb" "test/unit/committership_test.rb" "test/unit/archived_event_test.rb" "test/unit/ssh_key_test.rb" "test/unit/group_test.rb" "test/unit/membership_test.rb" "test/unit/event_test.rb" "test/unit/merge_request_test.rb" "test/unit/processors/web_hook_processor_test.rb" "test/unit/processors/ssh_key_processor_test.rb" "test/unit/processors/repository_creation_processor_test.rb" "test/unit/processors/repository_archiving_processor_test.rb" "test/unit/processors/merge_request_git_backend_processor_test.rb" "test/unit/processors/push_event_processor_test.rb" "test/unit/processors/message_forwarding_processor_test.rb" "test/unit/processors/merge_request_version_processor_test.rb" "test/unit/processors/merge_request_processor_test.rb" "test/unit/merge_request_version_test.rb" "test/unit