Skip to content

Instantly share code, notes, and snippets.

View kittydoor's full-sized avatar

Katherine Door kittydoor

View GitHub Profile
@kittydoor
kittydoor / dyninv.py
Last active May 2, 2019 11:48
Gist of problematic dynamic inventory
DOCUMENTATION = '''
name: dyninv
plugin_type: inventory
author:
- <@kittydoor>
short_description: systems inventory source
description:
- SSH into all hosts provided, and use virsh to discover machines

Keybase proof

I hereby claim:

  • I am kittydoor on github.
  • I am kittydoor (https://keybase.io/kittydoor) on keybase.
  • I have a public key ASBBehRbB2EQwhZ_zfIO_I1BEAWBOlOxs4wfeAKRz9FuPAo

To claim this, I am signing this object:

@kittydoor
kittydoor / D301.txt
Last active May 6, 2017 15:17
Project file
D301 Capacity 40
1 1 5
2 2 4
3 3 4
4
5 2
6
7 1
@kittydoor
kittydoor / kernel-panic.txt
Created April 26, 2017 15:31
Journalctl of kernel panic while running chromium and libvirt-qemu windows guest in arch linux host
Apr 26 18:24:34 nyaa-core kernel: BUG: unable to handle kernel NULL pointer dereference at 0000000000000018
Apr 26 18:24:34 nyaa-core kernel: IP: gen8_ppgtt_alloc_page_directories.isra.14+0x11f/0x270 [i915]
Apr 26 18:24:34 nyaa-core kernel: PGD 0
Apr 26 18:24:34 nyaa-core kernel:
Apr 26 18:24:34 nyaa-core kernel: Oops: 0002 [#1] PREEMPT SMP
Apr 26 18:24:34 nyaa-core kernel: Modules linked in: tun fuse ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic bridge stp llc iTCO_
Apr 26 18:24:34 nyaa-core kernel: drm snd_pcm bluetooth input_leds led_class joydev snd_timer intel_gtt idma64 videodev snd syscopyarea sysfillrect evdev mei_me mousedev sysimgblt fb_sys_fops mac_hid media soun
Apr 26 18:24:34 nyaa-core kernel: CPU: 2 PID: 1285 Comm: chromium Not tainted 4.10.11-1-ARCH #1
Apr 26 18:24:34 nyaa-core kernel: Hardware name: MSI MS-7978/Z170A GAMING M3 (MS-7978), BIOS A.A0 12/21/2016
Apr 26 18:24:34 nyaa-core kernel: task: ffff88044c
@kittydoor
kittydoor / genpifromrand.py
Created March 18, 2017 01:30
This is a small script which generates the number pi by using a random number generator
#!/usr/bin/env python
import sys
from fractions import gcd
from random import randint
from math import sqrt
if len(sys.argv) == 3:
trials = int(sys.argv[1])
rand_digits = int(sys.argv[2])