Skip to content

Instantly share code, notes, and snippets.

View HarlemSquirrel's full-sized avatar

Kevin McCormack HarlemSquirrel

View GitHub Profile
@HarlemSquirrel
HarlemSquirrel / jruby-haml-lint-hang-dump-2017-08-08
Created August 8, 2017 14:10
Dump from JRuby 9.1.12.0 haml-lint hang
➤ JRUBY_OPTS='--dev --profile' haml-lint app/**/*.html.haml
Profiling enabled; ^C shutdown will now dump profile info
^\2017-08-08 10:02:20
Full thread dump OpenJDK 64-Bit Server VM (25.131-b11 mixed mode):
"Ruby-0-JIT-1" #12 daemon prio=1 os_prio=0 tid=0x00007f66186ac800 nid=0x365c waiting on condition [0x00007f65f77fe000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000000e0f99110> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
@HarlemSquirrel
HarlemSquirrel / flattener.rb
Last active February 2, 2017 18:19
Flattener with Benchmarking
class Flattener
def initialize(nested_array)
@nested_array = nested_array
end
def call
@flattened_array = []
flatten nested_array
flattened_array
end
@HarlemSquirrel
HarlemSquirrel / flattener.rb
Last active February 2, 2017 18:18
Flattener
class Flattener
def initialize(nested_array)
@nested_array = nested_array
end
def call
@flattened_array = []
flatten(nested_array)
flattened_array
end
@HarlemSquirrel
HarlemSquirrel / PKGBUILD
Created December 21, 2016 03:09
i-nex 7.6.0 PKGBUILD for ArchLinux
# Maintainer: yaroslav <[email protected]>
# Based on the PKGBUILD for i-nex-git from eloaders <eloaders at linux dot pl>
pkgname=i-nex
pkgver=7.6.0
pkgrel=2
pkgdesc="System information tool like hardinfo, sysinfo"
arch=('i686' 'x86_64')
url="http://i-nex.linux.pl/"
license=('LGPL3')
@HarlemSquirrel
HarlemSquirrel / stdout.txt
Created June 25, 2015 20:48
stdout 2015-06-25 when attempting to launch Dota 2 Reborn Beta on Arch Linux x64 Cinnamon R9 270X open source drivers
Running Steam on arch rolling 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1433441724)
Installing breakpad exception handler for appid(steam)/version(1433441724)
Installing breakpad exception handler for appid(steam)/version(1433441724)
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
[0625/163852:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
Installing breakpad exception handler for appid(steamwebhelper)/version(20150604103540)