Skip to content

Instantly share code, notes, and snippets.

nicolasm@grumpy:~$ siege http://localhost:3000/new
** SIEGE 2.70
** Preparing 15 concurrent users for battle.
The server is now under siege...^C
Lifting the server siege... done.
Transactions: 494 hits
Availability: 100.00 %
Elapsed time: 18.49 secs
Data transferred: 8.46 MB
Response time: 0.05 secs
my @meta_list = $type eq 'enclosure' ? @{$args->{'meta'}}
: $type eq 'media_rss' ? @{prepare_media_list($args->{'meta'})}
: ();
diff --git a/hubot/scripts/githook.coffee b/hubot/scripts/githook.coffee
index 34a706a..c809059 100644
--- a/hubot/scripts/githook.coffee
+++ b/hubot/scripts/githook.coffee
@@ -181,7 +181,10 @@ module.exports = (robot) ->
message += "#{ if e.forced then "force-" else "" }pushed #{ M.NO("commit", e.commits.length) } "
message += "to #{ branch }"
message += " (#{ short or e.compare })"
- for commit in e.commits[-3..]
- message += "\n · #{ commit.message.split("\n")[0] } (#{ commit.id.substring(0,8) })"
diff --git a/hubot/scripts/githook.coffee b/hubot/scripts/githook.coffee
index 34a706a..fd48020 100644
--- a/hubot/scripts/githook.coffee
+++ b/hubot/scripts/githook.coffee
@@ -181,7 +181,11 @@ module.exports = (robot) ->
message += "#{ if e.forced then "force-" else "" }pushed #{ M.NO("commit", e.commits.length) } "
message += "to #{ branch }"
message += " (#{ short or e.compare })"
- for commit in e.commits[-3..]
- message += "\n · #{ commit.message.split("\n")[0] } (#{ commit.id.substring(0,8) })"
Can't evaluate 'sub { 'Log::Log4perl::Appender::' . ( $ENV{BUILDER_PASSIVE} ? 'Screen' : 'ScreenColoredLevels')' (Missing right curly or square bracket at (eval 1216) line 2, at end of line
syntax error at (eval 1216) line 2, at EOF
) at /usr/local/share/perl/5.14.2/Log/Log4perl/Config.pm line 782
Log::Log4perl::Config::compile_if_perl('sub { \'Log::Log4perl::Appender::\' . ( $ENV{BUILDER_PASSIVE}...') called at /usr/local/share/perl/5.14.2/Log/Log4perl/Config.pm line 753
Log::Log4perl::Config::eval_if_perl('sub { \'Log::Log4perl::Appender::\' . ( $ENV{BUILDER_PASSIVE}...') called at /usr/local/share/perl/5.14.2/Log/Log4perl/Config/BaseConfigurator.pm line 168
Log::Log4perl::Config::BaseConfigurator::parse_post_process('Log::Log4perl::Config::PropertyConfigurator=HASH(0x2a07c80)', 'HASH(0x2d85260)', 'ARRAY(0x14282e0)') called at /usr/local/share/perl/5.14.2/Log/Log4perl/Config.pm line 681
Log::Log4perl::Config::config_read('/home/nicolasm/projects/build-debian/bin/../share/etc/log4per...') called at /usr/
layout_class = sub { \
'Log::Log4perl::Appender::' \
. ( $ENV{BUILDER_PASSIVE} ? 'Screen' : 'ScreenColoredLevels')\
;\
}
log_level = sub { \
($ENV{HARNESS_ACTIVE} ? 'ERROR' : 'TRACE') . ', Screen, File'\
}
@nicomen
nicomen / Makefile
Created September 4, 2013 09:23
Makefile nodejs thing
test: nodejs ruby-compass
sudo npm install -g yo grunt-cli bower grunt
grunt tests
ruby:
ruby || sudo apt-get install ruby
ruby-compass:
compass -v || sudo apt-get install ruby-compass
in lib/ABCN/Infrastructure/ArticleScript.php
public function getVideoArticleIdByMediaId($mediaId) {
$query = 'SELECT * FROM content_type_content_video WHERE field_mediamaker_id_value = %s LIMIT 1';
$result = $this->db->doQuery($query, array($mediaId));
if (!$result) {
return false;
}
$ telnet www.abcnyheter.no 80
Trying 77.40.177.18...
Connected to www.abcnyheter.no.
Escape character is '^]'.
GET /files/drfront/css/front-14.css?k HTTP/1.1
Host: www.abcnyheter.no
HTTP/1.1 200 OK
Server: Apache
Last-Modified: Mon, 13 Jan 2014 13:22:11 GMT
08:12 < marvin> [css-lint master #66174dd6 ] dagfinn triggered a build, lenny is passing 143 tests total, 24 todo, 1
skipped in 147 seconds [more]