Skip to content

Instantly share code, notes, and snippets.

View Drewch's full-sized avatar

Andrew McNamara Drewch

  • Maluuba Inc.
  • Waterloo
View GitHub Profile
@Drewch
Drewch / cat proc mdstat
Last active February 23, 2019 14:30
mdadm disks
$ cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sdb1[1]
5860390464 blocks super 1.2 [2/1] [_U]
bitmap: 1/44 pages [4KB], 65536KB chunk
unused devices: <none>
@Drewch
Drewch / .rtorrent.rc
Created December 17, 2017 02:01
Rtorrent error
#############################################################################
# A minimal rTorrent configuration that provides the basic features
# you want to have in addition to the built-in defaults.
#
# See https://github.com/rakshasa/rtorrent/wiki/CONFIG-Template
# for an up-to-date version.
#############################################################################
# Instance layout (base paths)
method.insert = cfg.basedir, private|const|string, (cat,"/home/share/rtorrent/")
@Drewch
Drewch / emerge crossover-bin
Created October 4, 2017 16:15
crossover-bin-15-2-0
>>> Emerging (12 of 12) app-emulation/crossover-bin-15.2.0::gentoo
* install-crossover-15.2.0.bin SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking install-crossover-15.2.0.bin to /var/tmp/portage/app-emulation/crossover-bin-15.2.0/work
warning [/var/tmp/portage/app-emulation/crossover-bin-15.2.0/distdir/install-crossover-15.2.0.bin]: 867912 extra bytes at beginning or within zipfile
(attempting to process anyway)
>>> Source unpacked in /var/tmp/portage/app-emulation/crossover-bin-15.2.0/work
>>> Preparing source in /var/tmp/portage/app-emulation/crossover-bin-15.2.0/work ...
* Fixing shebang in ./bin/cxupdatecheck.
* Fixing shebang in ./bin/cxwait.
@Drewch
Drewch / build.log
Created September 30, 2017 14:43
mesa17.0.6 makeopts j4
This file has been truncated, but you can view the full file.
 * Package: media-libs/mesa-17.0.6
 * Repository: gentoo
 * Maintainer: x11@gentoo.org
 * USE: abi_x86_64 amd64 classic dri3 egl elibc_glibc gallium gbm kernel_linux llvm nptl userland_GNU
 * FEATURES: preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking mesa-17.0.6.tar.xz to /var/tmp/portage/media-libs/mesa-17.0.6/work
>>> Source unpacked in /var/tmp/portage/media-libs/mesa-17.0.6/work
>>> Preparing source in /var/tmp/portage/media-libs/mesa-17.0.6/work/mesa-17.0.6 ...
>>> Source prepared.
@Drewch
Drewch / compile-error
Last active September 30, 2017 14:27
mesa-17.0.6 compile error
 * Package: media-libs/mesa-17.0.6
 * Repository: gentoo
 * Maintainer: x11@gentoo.org
 * USE: abi_x86_64 amd64 classic dri3 egl elibc_glibc gallium gbm kernel_linux llvm nptl userland_GNU
 * FEATURES: preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking mesa-17.0.6.tar.xz to /var/tmp/portage/media-libs/mesa-17.0.6/work
>>> Source unpacked in /var/tmp/portage/media-libs/mesa-17.0.6/work
>>> Preparing source in /var/tmp/portage/media-libs/mesa-17.0.6/work/mesa-17.0.6 ...
>>> Source prepared.
@Drewch
Drewch / emerge -pqv
Last active September 29, 2017 01:06
Update Nodejs failure
drewch@piper ~ $ emerge -pqv '=net-libs/nodejs-6.9.4::gentoo'
[ebuild UD] net-libs/nodejs-6.9.4 [6.10.0] USE="debug doc icu npm snapshot ssl {-test}" CPU_FLAGS_X86="sse2" PYTHON_TARGETS="python2_7"
!!! The following installed packages are masked:
- sys-devel/binutils-2.28-r2::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Michał Górny <mgorny@gentoo.org>, Andreas K. Hüttel <dilfridge@gentoo.org>,
# Matthias Maier <tamiko@gentoo.org> (21 May 2017)
# These old versions of toolchain packages (binutils, gcc, glibc) are no
# longer officially supported and are not suitable for general use. Using
@Drewch
Drewch / application.out
Created June 5, 2017 18:15
Netty Error
[error] - play.core.server.netty.PlayDefaultUpstreamHandler - Exception caught in Netty
java.lang.IllegalArgumentException: empty text
at org.jboss.netty.handler.codec.http.HttpVersion.<init>(HttpVersion.java:89) ~[io.netty.netty-3.10.4.Final.jar:na]
at org.jboss.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:62) ~[io.netty.netty-3.10.4.Final.jar:na]
at org.jboss.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:75) ~[io.netty.netty-3.10.4.Final.jar:na]
at org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:191) ~[io.netty.netty-3.10.4.Final.jar:na]
at org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:102) ~[io.netty.netty-3.10.4.Final.jar:na]
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500) ~[io.netty.netty-3.10.4.Final.jar:na]
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435) ~[io.net
The primary GPT table is corrupt, but the backup appears OK, so that will be used.
Disk /dev/sda: 5.5 TiB, 6001175126016 bytes, 11721045168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 718E07AC-4320-4066-93DD-1C3EB471400A
Device Start End Sectors Size Type
/dev/sda1 2048 11721045134 11721043087 5.5T Linux filesystem
@Drewch
Drewch / config
Last active May 20, 2017 01:29
polybar files
font-0 = DejaVuSans:style=Bold:size=12
font-1 = Unifont:fontformat=truetype:size=6:heavy
font-2 = FontAwesome:size=9
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
#