Skip to content

Instantly share code, notes, and snippets.

View jbourassa's full-sized avatar

Jimmy Bourassa jbourassa

View GitHub Profile
$ ASAN_OPTIONS=detect_stack_use_after_return=1 \
DYLD_INSERT_LIBRARIES=$HOME/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc-nightly_rt.asan.dylib \
ruby -Ilib examples/crash.rb
Using wasmtime-rb 6.0.0: /Users/jbourassa/src/github.com/bytecodealliance/wasmtime-rb/lib/wasmtime/wasmtime_rb.bundle
=================================================================
==68819==ERROR: AddressSanitizer: heap-use-after-free on address 0x000106e5af30 at pc 0x0001129dd114 bp 0x00016cf599b0 sp 0x00016cf599a8
WRITE of size 8 at 0x000106e5af30 thread T0
#0 0x1129dd110 in wasmtime_rb::ruby_api::func::make_func_closure::_$u7b$$u7b$closure$u7d$$u7d$::hc435f6e5fd9cf7d8 func.rs:270
#1 0x1129c500c in wasmtime::func::Func::invoke::hc54fcea15d9124cb func.rs:1125

Keybase proof

I hereby claim:

  • I am jbourassa on github.
  • I am jbourassa (https://keybase.io/jbourassa) on keybase.
  • I have a public key ASAQeJddEp-SBkd0IfQM0Nvc9hx1I9Q8grkz1dvka3UnYgo

To claim this, I am signing this object:

@jbourassa
jbourassa / notes.md
Last active August 29, 2015 13:55
Notes de “SSHez-vous?”, présentation par @jbourassa et @j15e au OpenCode XVIII

SSH

Basic intro

ssh user@host -p PORT

ssh user@host __command__

Config file (~/.ssh/config)

@jbourassa
jbourassa / turbolinks-unloader.js
Created September 11, 2013 20:32
`window.onbeforeunload` with TurboLinks support.
@jbourassa
jbourassa / summary.md
Last active December 15, 2015 13:29
Dompter la ligne de commande

Dompter la ligne de commande

Bébé-référence des concepts / trucs présentés lors du OpenCode #10

Naviguer dans les commandes

Vitesse de répétition

OSX

@jbourassa
jbourassa / preview_controller_decorator.diff
Created March 20, 2013 15:46
Attempt to fix page preview in RefineryCMS after PullRequest #2089
diff --git a/app/decorators/controllers/refinery/pages/admin/preview_controller_decorator.rb b/app/decorators/controllers/refinery/pages/admin/preview_controller_decorator.rb
index 97b985b..06fb8fc 100644
--- a/app/decorators/controllers/refinery/pages/admin/preview_controller_decorator.rb
+++ b/app/decorators/controllers/refinery/pages/admin/preview_controller_decorator.rb
@@ -2,4 +2,29 @@ Refinery::Pages::Admin::PreviewController.class_eval do
+
+ def home
+ render_with_templates?
+ end
+
@jbourassa
jbourassa / form.html.erb
Created March 3, 2013 20:01
Implementing `#method_missing` is an easy way to build funky forms with ActiveModel while keeping the magic.
<%= simple_form_for(@permissions) do |form| %>
<% @tags.each do |tag| %>
<h3><%= raw t('admin.permissions.tags', tag: tag.name) %></h3>
<%= form.input "tags[#{tag.key}]",
as: :check_boxes,
collection: tag.edit_select_opts,
label_method: :name,
value_method: :key,
label: false %>
<% end %>
@jbourassa
jbourassa / fix_test.diff
Created March 1, 2013 01:55
Fix refinerycms-page-images specs
diff --git a/spec/requests/attach_page_images_spec.rb b/spec/requests/attach_page_images_spec.rb
index 6a6692e..d2f9b91 100644
--- a/spec/requests/attach_page_images_spec.rb
+++ b/spec/requests/attach_page_images_spec.rb
@@ -12,7 +12,7 @@ describe "attach page images" do
end
it "shows images tab" do
- within "#custom_images_tab" do
+ within "#custom_Images_tab" do
@jbourassa
jbourassa / gist:4774340
Created February 12, 2013 23:06
Extending is awesome
describe NameBilingual do
before(:all) do
@klass = Class.new do
include NameBilingual
end
end
context "Brand new instance" do
subject { @klass.new }
it { should respond_to :name= }
@jbourassa
jbourassa / rvm debug
Created October 2, 2012 00:53
Rvm info
$ rvm debug
+/Users/jbourassa/.rvm/scripts/base:11> [[ -z 4.3.11 ]]
+/Users/jbourassa/.rvm/scripts/base:21> export __array_start rvm_path
+/Users/jbourassa/.rvm/scripts/base:26> [[ -n 4.3.11 ]]
+/Users/jbourassa/.rvm/scripts/base:28> __array_start=1
+/Users/jbourassa/.rvm/scripts/base:33> (( 0 == 0 ))
+/Users/jbourassa/.rvm/scripts/base:35> [[ -n 022 ]]
+/Users/jbourassa/.rvm/scripts/base:36> rvm_rvmrc_files=( /etc/rvmrc /Users/jbourassa/.rvmrc )
+/Users/jbourassa/.rvm/scripts/base:37> [[ -n /Users/jbourassa ]]
+/Users/jbourassa/.rvm/scripts/base:37> [[ /Users/jbourassa/.rvmrc -ef /Users/jbourassa/.rvmrc ]]