Skip to content

Instantly share code, notes, and snippets.

Rubinius Crash Report #rbxcrashreport
Error: signal SIGSEGV
[[Backtrace]]
0 rbx 0x0000000103165011 _ZN8rubiniusL12segv_handlerEi + 241
1 libsystem_c.dylib 0x00007fff94341cfa _sigtramp + 26
2 ??? 0x0000000106e33540 0x0 + 4410520896
3 libsystem_c.dylib 0x00007fff942eb338 fileno + 31
4 kgio_ext.bundle 0x00000001065dd601 my_fileno + 84
@benburkert
benburkert / single-shot.sh
Created November 8, 2011 02:04
a single shot web server
#!/bin/bash
if [[ -z $1 ]] ; then
echo "File argument missing" 1>&2
exit 1
else
file="$1"
fi
if [[ -z $2 ]] ; then
@benburkert
benburkert / changelog.md
Created November 4, 2011 08:08
GitHub:Enterprise Changelog

November 4th 2011

Version: 11.10.27

Enterprise Changes

  • Bug fixes related to LDAP & Active Directory integration.
  • Fix the default .ovf path to be compatible with windows paths.
@benburkert
benburkert / dpkg.rb
Created August 10, 2011 19:36 — forked from jedi4ever/dpkg-gnutar
homebrew formula to get dpkg working on a mac
require 'formula'
class Dpkg <Formula
url 'https://launchpad.net/debian/+archive/primary/+files/dpkg_1.16.0.3.tar.bz2'
homepage 'http://en.wikipedia.org/wiki/Dpkg'
md5 '0266b06ef9da8278cea008d21e17e5f6'
depends_on 'gnu-tar'
def patches
require 'rubygems'
require 'typhoeus'
response = Typhoeus::Request.run('http://127.0.0.1:3001', {})
p response.headers_hash
## => {"HTTP/1.1 200 OK"=>nil, "Date"=>"...", "Content-Length"=>"12", "Connection"=>"close"}
diff --git a/app/controllers/reporting.rb b/app/controllers/reporting.rb
index 3a6768f..662bdd9 100644
--- a/app/controllers/reporting.rb
+++ b/app/controllers/reporting.rb
@@ -24,34 +24,6 @@ class Reporting < Application
if instance.status == :running
Merb.logger.error! "instance(#{instance.amazon_id}) ALERT!\n SEVERITY: #{params[:data]['Severity']}\n PLUGIN:#{params[:data]['Plugin']} TYPE:#{params[:data]['Type']}\n MESSAGE:#{params[:data]['alert_message']}"
Alert.create_from_json(instance, params['data'])
- environment = Environment.get instance.environment.id
- if environment.alerting_enabled
# run very flat apps with merb -I <app file>.
# use_orm :datamapper
use_test :rspec
require 'haml'
require 'compass'
Merb::Config.use { |c|
c[:framework] = { :public => [Merb.root / "public", nil] }
c[:session_store] = 'none'
c[:exception_details] = true
@benburkert
benburkert / gist:24314
Created November 12, 2008 23:46 — forked from nitsujw/gist:24313
def show(id)
@post = Post.get(id)
raise NotFound unless @post
display @post
end
def create(comment)
@comment = Comment.new(comment)
if @comment.save
eager_cache([Posts, :show], :store => :action_store) { self.class.build_request(url(:post, @comment.post), :id => @comment.post.id) }
@benburkert
benburkert / restart.sh
Created October 29, 2008 04:53 — forked from ivey/restart.sh
declare -a pids
i=0
for pid in log/merb.*.pid ; do
if [ $pid == "log/merb.main.pid" ]; then
echo "Killing master process"
kill -9 `cat $pid`
else
pids[$i]=`cat $pid`
fi
class Pais
include DataMapper::Resource
# Configuración de las relaciones
has n, :bancos
# Propiedades principales
property :id, Serial
property :nombre, String, :length => (1..50), :nullable => false
property :nombre_corto, String, :length => (1..20), :nullable => false