Skip to content

Instantly share code, notes, and snippets.

View maxd's full-sized avatar
🏠
Working from home

maxd

🏠
Working from home
  • Amsterdam, Netherlands
View GitHub Profile
.assembly extern mscorlib
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
.ver 1:0:3300:0
}
.assembly HelloWorld
{
.hash algorithm 0x00008004
.ver 0:0:0:0
}
1) Failure:
test: BBos::BBCode should format paragraphs for several string. (BlockTest)
[./test/unit/block_test.rb:16:in `__bind_1269778426_7091'
/var/lib/gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:362:in `call'
/var/lib/gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:362:in `test: BBos::BBCode should format paragraphs for several string. ']:
<"<p>Line1</p><p>Line2</p>"> expected but was
<"<p>Line1\n\nLine2</p>">.
@maxd
maxd / gist:1336022
Created November 3, 2011 08:10
Radius don't handle tags with '-'
require "rubygems"
require "radius"
context = Radius::Context.new do |c|
c.define_tag "a" do |tag|
"'Tag: a'"
end
c.define_tag "a-b" do |tag|
"'Tag: a-b''"
@maxd
maxd / gist:1809945
Created February 12, 2012 18:03
RSSRadioLite crash log
Incident Identifier: C8D8597D-222C-433F-A1B9-E217A410736F
CrashReporter Key: da8f5622a3fff3dd2ce959429e9adf46a5238cad
Hardware Model: iPad2,1
Process: RSSRadioLite [1750]
Path: /var/mobile/Applications/6F9E5AFA-FEE9-4D51-8074-925243127D94/RSSRadioLite.app/RSSRadioLite
Identifier: RSSRadioLite
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
@maxd
maxd / sidekiq.log
Created August 17, 2012 21:52
Segmentation fault in Celluloid gem
2012-08-17T21:20:24Z 2472 TID-19fkic ImportWorker MSG-1g6vho INFO: done: 86.868 sec
/home/deployer/apps/staging/mshop/shared/bundle/ruby/1.9.1/gems/celluloid-0.11.1/lib/celluloid/task.rb:37: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
-- Control frame information -----------------------------------------------
c:0017 p:---- s:0055 b:0055 l:000054 d:000054 CFUNC :new
c:0016 p:0073 s:0052 b:0052 l:fffff740 d:fffff740 METHOD /home/deployer/apps/staging/mshop/shared/bundle/ruby/1.9.1/gems/celluloid-0.11.1/lib/celluloid/task.rb:37
c:0015 p:---- s:0046 b:0046 l:000045 d:000045 FINISH
c:0014 p:---- s:0044 b:0044 l:000043 d:000043 CFUNC :new
c:0013 p:0017 s:0040 b:0040 l:ffffe0e0 d:fffff2c4 BLOCK /home/deployer/apps/staging/mshop/shared/bundle/ruby/1.9.1/gems/celluloid-0.11.1/lib/celluloid/actor.rb:211
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon
@maxd
maxd / nginx.conf
Last active December 15, 2015 08:29
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@maxd
maxd / default.site
Created March 24, 2013 08:57
sites-available/default.site
server {
listen 80 default;
return 404;
}
@maxd
maxd / passenger.conf
Last active December 15, 2015 08:29
conf.d/passenger.conf
passenger_root /home/deployer/.rvm/gems/ruby-1.9.3-p392/gems/passenger-3.0.19;
passenger_ruby /home/deployer/.rvm/wrappers/ruby-1.9.3-p392/ruby;
passenger_pool_idle_time 0;
passenger_min_instances 2;
passenger_show_version_in_header off;
passenger_friendly_error_pages off;
@maxd
maxd / application.site
Last active December 10, 2016 07:27
sites-available/application.site
proxy_cache_path /tmp/???_nginx_cache keys_zone=???:512m inactive=2w;
server {
listen 8081;
error_log /var/log/nginx/???.error.log error;
access_log /var/log/nginx/???.access.log;
root /apps/???/current/public;
passenger_enabled on;