Skip to content

Instantly share code, notes, and snippets.

View pinpox's full-sized avatar
🤔

Pablo Ovelleiro Corral pinpox

🤔
View GitHub Profile
@pinpox
pinpox / gist:c398d495f84904dc11ab
Created February 18, 2015 22:56
The Rubinius process is aborting with signal: SIGSEGV
The Rubinius process is aborting with signal: SIGSEGV
--- begin system info ---
sysname: Linux
nodename: binaryplease-laptop
release: 3.18.6-1-ARCH
version: #1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015
machine: x86_64
--- end system info ---
--- begin rubinius info ---
program name: rbx
@pinpox
pinpox / gist:594c441e9bf1bbefddeb
Created February 19, 2015 00:06
GDB stacktrace rubinius
Starting program: /home/binaryplease/.rvm/rubies/rbx-2.5.2/bin/ruby crawler2.rb
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff4e1c700 (LWP 7369)]
[New Thread 0x7ffff4a1b700 (LWP 7370)]
[New Thread 0x7ffff461a700 (LWP 7371)]
[New Thread 0x7fffe7fff700 (LWP 7372)]
[New Thread 0x7fffe7bfe700 (LWP 7373)]
binaryplease➜~(master✗)» rvm use rbx [1:07:42]
Using /home/binaryplease/.rvm/gems/rbx-2.5.2
binaryplease➜~(master✗)» gem list [1:07:47]
*** LOCAL GEMS ***
ast (2.0.0)
astrolabe (1.3.0)
builder (3.2.2)
bundler (1.8.0, 1.7.12)
@pinpox
pinpox / gist:1599fe65cc7d328bac80
Created February 21, 2015 20:58
Segv 2 rubinius
The Rubinius process is aborting with signal: SIGSEGV
--- begin system info ---
sysname: Linux
nodename: binaryplease-laptop
release: 3.18.6-1-ARCH
version: #1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015
machine: x86_64
--- end system info ---
--- begin rubinius info ---
program name: rbx
@pinpox
pinpox / gist:baf24c13d8c777150dc0
Created April 10, 2015 15:21
Ruby mechanize excerpt
def request uri, req = nil, &block
retried = false
bad_response = false
req = request_setup req || uri
connection = connection_for uri
connection_id = connection.object_id
begin
# encoding: utf-8
require 'csv'
if ARGV[0].nil?
puts "Please pass a filename"
else
contacts = CSV.read(ARGV[0])
header = true
require 'net/http'
begin
require 'net/https'
rescue LoadError
# net/https or openssl
end if RUBY_VERSION < '1.9' # but only for 1.8
require 'net/http/faster'
require 'uri'
require 'cgi' # for escaping
# -*- coding: utf-8 -*-
import subprocess
from i3pystatus import Status
from i3pystatus.mail import notmuchmail
status = Status(standalone=True)
# -*- coding: utf-8 -*-
import subprocess
from i3pystatus import Status
from i3pystatus.mail import notmuchmail
status = Status(standalone=True)
begin remote
name /home/pi/ledband_sz.conf
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 8999 4463
one 584 1653