Skip to content

Instantly share code, notes, and snippets.

View pointlessone's full-sized avatar
🍍
Pineapple a day keeps a pinedoctor away

Alexander Mankuta pointlessone

🍍
Pineapple a day keeps a pinedoctor away
View GitHub Profile
@pointlessone
pointlessone / Rakefile
Last active December 10, 2015 07:48 — forked from anonymous/.rvmrc
HPMoR epub e-book builder task It requires Nokogiri and gepub gems.
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'fileutils'
require 'gepub'
desc "Fetch the book from hpmor.com"
task :fetch do
unless File.exists? 'book-source/images/cover.jpg'
@pointlessone
pointlessone / Readme
Last active October 6, 2015 13:40
Rubocop pre-commit check
# Installation
Put these files in your `.git/hooks` directory and make them executable.
# Changelog
## 1.2
* Check for RuboCop updates
require 'bootstrap-sass'
# This configuration file works with both the Compass command line tool and within Rails.
# Require any additional compass plugins here.
project_type = :rails
# Set this to the root of your project when deployed:
http_path = "/"
# You can select your preferred output style here (can be overridden via the command line):
@pointlessone
pointlessone / .rubinius_last_error
Created October 5, 2011 17:33
Rubinius Crash Report #rbxcrashreport
Rubinius Crash Report #rbxcrashreport
Error: signal SIGSEGV
[[Backtrace]]
0 vm 0x0000000109862a76 _ZN8rubiniusL12segv_handlerEi + 486
1 libsystem_c.dylib 0x00007fff8698ecfa _sigtramp + 26
2 ??? 0x000000000000001a 0x0 + 26
3 ??? 0x000000010b8b3ec3 0x0 + 4488642243
4 vm 0x0000000109869f16 _ZN8rubinius11InlineCache11empty_cacheEPNS_2VMEPS0_PNS_9CallFrameERNS_9ArgumentsE + 504
@pointlessone
pointlessone / command
Created September 28, 2011 09:40
Rubinius Crash Report #rbxcrashreport
rvm install rbx -- --enable-version=1.9,1.8 --default-version=1.9
Rubinius Crash Report #rbxcrashreport
Error: signal SIGSEGV
[[Backtrace]]
0 rbx 0x000000010000fd01 _ZN8rubiniusL12segv_handlerEi + 241
1 libSystem.B.dylib 0x00007fff88cbe1ba _sigtramp + 26
2 ??? 0xffffffffffffffff 0x0 + 18446744073709551615
3 rbx 0x00000001000ef298 _ZN8rubinius8CallUnit4Info9auto_markEPNS_6ObjectERNS_10ObjectMarkE + 600
4 rbx 0x00000001001b6835 _ZN8rubinius16GarbageCollector11scan_objectEPNS_6ObjectE + 165
[2011-05-25 15:27:17] /home/deployer/.rvm/wrappers/ree-1.8.7-2011.03/rake install
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /home/deployer/.rvm/gems/ree-1.8.7-2011.03@global/specifications/rake-0.8.7.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /home/deployer/.rvm/gems/ree-1.8.7-2011.03@global/specifications/rubygems-update-1.8.1.gemspec:11.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /home/deployer/.rvm/gems/ree-1.8.7-2011.03/specifications/rake-0.8.7.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_ex
2: CC vm/util/dlmalloc.c
2: CC vm/util/sha1.c
2: CC vm/util/strlcat.cpp
2: CC vm/util/strlcpy.cpp
2: CC vm/util/time.c
2: CC vm/virtual.cpp
2: CC vm/vm.cpp
2: CC vm/vmmethod.cpp
{standard input}: Assembler messages:
{standard input}:103522: Error: undefined symbol `.LLSDATT8051' in operation
Rubinius Crash Report #rbxcrashreport
Error: signal SIGSEGV
[[Backtrace]]
0 rbx 0x000000010000f4d0 _ZN8rubiniusL12segv_handlerEi + 160
1 libSystem.B.dylib 0x00007fff85cc566a _sigtramp + 26
2 ??? 0x000000010f3b0d50 0x0 + 4550495568
3 rbx 0x0000000100018e9b _ZN8rubinius11InlineCache11empty_cacheEPNS_2VMEPS0_PNS_9CallFrameERNS_9ArgumentsE + 91
4 ??? 0x000000010d763bc3 0x0 + 4520819651
@pointlessone
pointlessone / TCP socket
Created April 20, 2011 11:18
Address already in use - bind(2) (Errno::EADDRINUSE)
E, [2011-04-20T07:20:33.656301 #12254] ERROR -- : adding listener failed addr=0.0.0.0:3000 (in use)
An exception occurred running /home/web/.rvm/gems/rbx-head@po-home/bin/unicorn
Address already in use - bind(2) (Errno::EADDRINUSE)
Backtrace:
Errno.handle at kernel/common/errno.rb:16
TCPSocket(Kgio::TCPServer)#tcp_setup at /home/web/.rvm/rubies/rbx-head/lib
/socket.rb:1085
TCPServer(Kgio::TCPServer)#initialize at /home/web/.rvm/rubies/rbx-head/lib
/socket.rb:1127