Skip to content

Instantly share code, notes, and snippets.

@rektide
rektide / gist:2210b1514b79c586449d
Created January 14, 2016 18:50
OpenShift: my first 15 minutes
oc project userX-smoke
oc project user16-smoke
oc routes
oc get routes
oc get -h
oc get -h
oc get pods
oc get {pods,replicationController}
oc get pods
oc get replicationController
@rektide
rektide / env-failed
Last active January 3, 2016 21:12
systemctl --user doesn't work sudo'ing into a
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
TERM=screen
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.fl
[ 10.616754] scsi 0:0:0:0: Direct-Access Inateck ASM1153E 0 PQ: 0 ANSI: 6
[ 10.633514] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 10.636548] sd 0:0:0:0: [sda] 468862128 512-byte logical blocks: (240 GB/223 GiB)
[ 10.637623] sd 0:0:0:0: [sda] Write Protect is off
[ 10.638328] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 10.648508] sda: sda1 sda2
[ 10.652140] sd 0:0:0:0: [sda] Attached SCSI disk
[ 10.912402] BTRFS: device label alcyone devid 1 transid 27 /dev/sda2
[ 10.923467] BTRFS info (device sda2): use ssd allocation scheme
[ 10.975838] BTRFS: open_ctree failed
zswap.enabled=1 zswap.compressor=lz4 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/sda2 rootfstype=btrfs rootflags=ssd,compress=lz4 elevator=deadline fsck.repair=yes rootdelay=15 debug
@rektide
rektide / displaylink-after-starting
Created September 12, 2015 23:26
displaylink xrandr and Xorg.0.log
@rektide
rektide / qemu-static-arm.log
Last active September 3, 2015 23:57
qemu-static-arm trying to find libselinux.so.1
$ strace -f -e trace=file /usr/bin/qemu-static-arm bin/ls
execve("/usr/bin/qemu-arm-static", ["/usr/bin/qemu-arm-static", "bin/ls"], [/* 19 vars */]) = 0
readlink("/proc/self/exe", "/usr/bin/qemu-arm-static", 4096) = 24
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
Process 10943 attached
[pid 10942] openat(AT_FDCWD, "/etc/qemu-binfmt/arm", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] open("/proc/sys/vm/mmap_min_addr", O_RDONLY) = 3
[pid 10942] open("bin/ls", O_RDONLY) = 3
[pid 10942] open("/lib/ld-linux-armhf.so.3", O_RDONLY) = 3
#!/bin/sh
# uses https://github.com/osm0sis/mkbootimg
# some guidance via stackoverflow.com/questions/29803996/repacak-existing-boot-img-using-mkbootimg-cyanogenmod-12-1-lollipop
set -ex
CM=~/Downloads/cm-12.1-20150730-UNOFFICIAL-fireballx.zip
# extract: unzip, unpackbootimg, zcat, cpio
test -d cm || (mkdir cm && cd cm && unzip $CM)
test -d unpack || (mkdir unpack && cd unpack && unpackbootimg -i ../cm/boot.img -o .)
test -d ramdisk-cpio || (mkdir ramdisk-cpio && cd ramdisk-cpio && zcat ../unpack/boot.img-ramdisk.gz > ramdisk.cpio)
@rektide
rektide / fastboot.logs
Created August 2, 2015 21:01
Fireball fastboot flash failures
sunstripe:~/Downloads/fastboot flash zip dr_hboot_1.15.zip
16:58:17
sending 'zip' (393 KB)...
OKAY [ 0.221s]
writing 'zip'...
(bootloader) zip header checking...
(bootloader) zip info parsing...
FAILED (remote: 99 unknown fail)
finished. total time: 0.603s
@rektide
rektide / google.dig
Last active August 29, 2015 14:26
PowerDNS Alias Attempt
# dig -p 5333 @127.0.0.1 google.yoyodyne.net
; <<>> DiG 9.9.5-9-Ubuntu <<>> -p 5333 @127.0.0.1 google.yoyodyne.net
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57553
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available
@rektide
rektide / make.log
Created July 30, 2015 14:45
powerdns make attempt
make all-recursive
make[1]: Entering directory '/home/rektide/src/archive/pdns'
Making all in ext
make[2]: Entering directory '/home/rektide/src/archive/pdns/ext'
Making all in polarssl
make[3]: Entering directory '/home/rektide/src/archive/pdns/ext/polarssl'
Making all in library
make[4]: Entering directory '/home/rektide/src/archive/pdns/ext/polarssl/library'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/rektide/src/archive/pdns/ext/polarssl/library'