Skip to content

Instantly share code, notes, and snippets.

View HarlemSquirrel's full-sized avatar

Kevin McCormack HarlemSquirrel

View GitHub Profile
@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)
@HarlemSquirrel
HarlemSquirrel / PKGBUILD
Created December 21, 2016 03:09
i-nex 7.6.0 PKGBUILD for ArchLinux
# Maintainer: yaroslav <proninyaroslav@mail.ru>
# 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 / 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 / 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 / jruby-haml-lint-hang-dump-2017-08-17.txt
Created August 17, 2017 16:51
JRuby 9.1.8.0 vs 9.1.9.0 haml-lint
➤ wc app/views/layouts/_flash_messages.html.haml
8 23 266 app/views/layouts/_flash_messages.html.haml
➤ ruby -v && JRUBY_OPTS='--dev --profile' haml-lint app/views/layouts/_flash_messages.html.haml
jruby 9.1.8.0 (2.3.1) 2017-03-06 90fc7ab OpenJDK 64-Bit Server VM 25.131-b11 on 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11 +jit [linux-x86_64]
Profiling enabled; ^C shutdown will now dump profile info
warning: parser/current is loading parser/ruby23, which recognizes
warning: 2.3.3-compliant syntax, but you are running 2.3.1.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
@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)
➤ phoronix-test-suite debug-benchmark pts/build-linux-kernel
Phoronix Test Suite v7.4.0
To Install: pts/build-linux-kernel-1.8.0
Determining File Requirements ......................................................................................................
Searching Download Caches ..........................................................................................................
1 Test To Install
@HarlemSquirrel
HarlemSquirrel / gnome_shell_3.26_core_dump.txt
Created October 18, 2017 22:28
gnome-shell dumped core
Process 1673 (gnome-shell) of user 1000 dumped core.
Stack trace of thread 1673:
#0 0x00007fcf271efa0d g_type_check_instance_cast (libgobject-2.0.so.0)
#1 0x00007fcf24ed3960 st_label_set_text (libst-1.0.so)
#2 0x00007fcf218071c8 ffi_call_unix64 (libffi.so.6)
#3 0x00007fcf21806c2a ffi_call (libffi.so.6)
#4 0x00007fcf25e98cbb n/a (libgjs.so.0)
#5 0x00007fcf25e9a617 n/a (libgjs.so.0)
#6 0x00007fcf1f4d264d n/a (libmozjs-52.so.0)
@HarlemSquirrel
HarlemSquirrel / ubuntu_unattended_upgrades_gmail.markdown
Created November 4, 2017 17:24 — forked from roydq/ubuntu_unattended_upgrades_gmail.markdown
Unattended upgrades on Ubuntu 14.04 with email notifications

Getting Started

Do yourself a favor and login as root to save yourself some time and headaches:

$ sudo su -

Install unattended-upgrades:

@HarlemSquirrel
HarlemSquirrel / gist:112821bdf3fe2b9d6446867329daf4b4
Created November 20, 2017 19:11
rvm_jruby-9.1.14.0_secure_random_sample.txt
Flat profile of 0.25 secs (25 total ticks): SeedGenerator Thread
Thread-local ticks:
100.0% 25 Blocked (of total)
Flat profile of 0.25 secs (23 total ticks): SeedGenerator Thread
Thread-local ticks: