Skip to content

Instantly share code, notes, and snippets.

@SleepyBrett
SleepyBrett / gist:9a15a3a5cb453dde29cd44d450575601
Last active September 29, 2021 22:00
Simple python script using imagemagick that cuts regular rects out of a larger image
import sys
from wand.image import Image
if __name__ == "__main__":
sourceImageName = sys.argv[1]
outputNamePattern = "%d-%d-%s"
# how many pixel into the image should we start cutting
siStartX = 6
@SleepyBrett
SleepyBrett / gist:1375e0e91499aeed1718a95f57574d2e
Created September 4, 2019 19:41
kubelet sigabt after non-readiness probe pods show not ready
This file has been truncated, but you can view the full file.
Aug 21 17:37:05 ip-172-16-194-157 kubelet-wrapper[1349]: SIGABRT: abort
Aug 21 17:37:05 ip-172-16-194-157 kubelet-wrapper[1349]: PC=0x462ae1 m=0 sigcode=0
Aug 21 17:37:05 ip-172-16-194-157 kubelet-wrapper[1349]: goroutine 0 [idle]:
Aug 21 17:37:05 ip-172-16-194-157 kubelet-wrapper[1349]: runtime.futex(0xc374308, 0x80, 0x0, 0x0, 0x0, 0xc00425e000, 0x0, 0x0, 0x7ffedfd7b288, 0x40e221, ...)
Aug 21 17:37:05 ip-172-16-194-157 kubelet-wrapper[1349]: /usr/local/go/src/runtime/sys_linux_amd64.s:535 +0x21
Aug 21 17:37:05 ip-172-16-194-157 kubelet-wrapper[1349]: runtime.futexsleep(0xc374308, 0x0, 0xffffffffffffffff)
Aug 21 17:37:05 ip-172-16-194-157 kubelet-wrapper[1349]: /usr/local/go/src/runtime/os_linux.go:46 +0x4b
Aug 21 17:37:05 ip-172-16-194-157 kubelet-wrapper[1349]: runtime.notesleep(0xc374308)
Aug 21 17:37:05 ip-172-16-194-157 kubelet-wrapper[1349]: /usr/local/go/src/runtime/lock_futex.go:151 +0xa1
Aug 21 17:37:05 ip-172-16-194-157 kubelet-wrapper[1349]: runtime.stopm()
Jul 08 16:19:20 ip-172-16-197-221 crio[1377]: SIGABRT: abort
Jul 08 16:19:20 ip-172-16-197-221 crio[1377]: PC=0x468051 m=0 sigcode=0
Jul 08 16:19:20 ip-172-16-197-221 crio[1377]: goroutine 0 [idle]:
Jul 08 16:19:20 ip-172-16-197-221 crio[1377]: runtime.futex(0x3031aa8, 0x80, 0x0, 0x0, 0x0, 0x7ffc9c1dad20, 0x0, 0x0, 0x7ffc9c1dad40, 0x413931, ...)
Jul 08 16:19:20 ip-172-16-197-221 crio[1377]: /usr/local/go/src/runtime/sys_linux_amd64.s:535 +0x21 fp=0x7ffc9c1dacc8 sp=0x7ffc9c1dacc0 pc=0x468051
Jul 08 16:19:20 ip-172-16-197-221 crio[1377]: runtime.futexsleep(0x3031aa8, 0x7ffc00000000, 0xffffffffffffffff)
Jul 08 16:19:20 ip-172-16-197-221 crio[1377]: /usr/local/go/src/runtime/os_linux.go:46 +0x4b fp=0x7ffc9c1dad18 sp=0x7ffc9c1dacc8 pc=0x43486b
Jul 08 16:19:20 ip-172-16-197-221 crio[1377]: runtime.notesleep(0x3031aa8)
Jul 08 16:19:20 ip-172-16-197-221 crio[1377]: /usr/local/go/src/runtime/lock_futex.go:151 +0xa1 fp=0x7ffc9c1dad50 sp=0x7ffc9c1dad18 pc=0x413931
Jul 08 16:19:20 ip-172-16-197-22
This file has been truncated, but you can view the full file.
Jun 05 21:54:50 ip-172-16-198-255 kubelet-wrapper[1479]: SIGABRT: abort
Jun 05 21:54:50 ip-172-16-198-255 kubelet-wrapper[1479]: PC=0x462421 m=0 sigcode=0
Jun 05 21:54:50 ip-172-16-198-255 kubelet-wrapper[1479]: goroutine 0 [idle]:
Jun 05 21:54:50 ip-172-16-198-255 kubelet-wrapper[1479]: runtime.futex(0xcf82788, 0x80, 0x0, 0x0, 0x0, 0x7ffe00000000, 0x0, 0x0, 0x7ffe6b9357a0, 0x40db61, ...)
Jun 05 21:54:50 ip-172-16-198-255 kubelet-wrapper[1479]: /usr/local/go/src/runtime/sys_linux_amd64.s:535 +0x21
Jun 05 21:54:50 ip-172-16-198-255 kubelet-wrapper[1479]: runtime.futexsleep(0xcf82788, 0x7ffe00000000, 0xffffffffffffffff)
Jun 05 21:54:50 ip-172-16-198-255 kubelet-wrapper[1479]: /usr/local/go/src/runtime/os_linux.go:46 +0x4b
Jun 05 21:54:50 ip-172-16-198-255 kubelet-wrapper[1479]: runtime.notesleep(0xcf82788)
Jun 05 21:54:50 ip-172-16-198-255 kubelet-wrapper[1479]: /usr/local/go/src/runtime/lock_futex.go:151 +0xa1
Jun 05 21:54:50 ip-172-16-198-255 kubelet-wrapper[1479]: runtime.stoplockedm(

Keybase proof

I hereby claim:

  • I am sleepybrett on github.
  • I am sleepy (https://keybase.io/sleepy) on keybase.
  • I have a public key whose fingerprint is 19E8 8A16 2571 CA42 4F4A F409 DE76 A5AF D5D5 A82D

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am sleepybrett on github.
* I am sleepy (https://keybase.io/sleepy) on keybase.
* I have a public key whose fingerprint is 22B5 271E 5A3B 1726 FF5A CB2A E0A2 65DB 818C BA71
To claim this, I am signing this object: