Skip to content

Instantly share code, notes, and snippets.

Avatar
🤠
Yeehaw.

Major Hayden major

🤠
Yeehaw.
View GitHub Profile
View gist:469d7acf271266573dc3
2015-08-26 00:22:19.002 | PLAY RECAP ********************************************************************
2015-08-26 00:22:19.002 | galera_server | Restart mysql ------------------------------------------ 56.32s
2015-08-26 00:22:19.002 | galera_client | Add galera repo(s) ------------------------------------- 14.45s
2015-08-26 00:22:19.002 | galera_server | Install galera packages -------------------------------- 13.76s
2015-08-26 00:22:19.002 | galera_client | Install galera packages --------------------------------- 7.28s
2015-08-26 00:22:19.002 | Wait for container ssh -------------------------------------------------- 5.29s
2015-08-26 00:22:19.002 | pip_install | Install PIP ----------------------------------------------- 3.98s
2015-08-26 00:22:19.003 | Galera extra lxc config ------------------------------------------------- 3.71s
2015-08-26 00:22:19.003 | galera_client | Install pip packages ------------------------------------ 3.11s
2015-08-26 00:22:19.003 | galera_client | Update apt sources --------
View gist:782f8e68fb99cbc1e06e
┌────────────────┬─────────┐
│ Component │ Tickets │
├────────────────┼─────────┤
│ cacti │ 10 │
│ nagios │ 9 │
│ moodle │ 8 │
│ quassel │ 7 │
│ qemu │ 7 │
│ mingw-icu │ 7 │
│ bugzilla │ 7 │
@major
major / report.txt
Created Aug 27, 2015
Fedora Security Report (proposed)
View report.txt
__ _
/ _| ___ __| | ___ _ __ __ _
| |_ / _ \/ _` |/ _ \| '__/ _` | Fedora Security Team Report
| _| __/ (_| | (_) | | | (_| | Report date: 2015-08-27 10:15:51.173354
|_| \___|\__,_|\___/|_| \__,_|
-------------------------------------------------------------------------------
+Ticket Status------------+
| Status | Tickets Open |
+----------+--------------+
@major
major / report.py
Created Aug 27, 2015
Fedora Security Team report script
View report.py
#!/usr/bin/env python
from bugzilla import Bugzilla
from collections import defaultdict, OrderedDict
from datetime import datetime
from terminaltables import AsciiTable
from pprint import pprint
VALID_STATUSES = ['NEW', 'ASSIGNED', 'MODIFIED', 'ON_QA']
@major
major / gist:9064414
Created Feb 18, 2014
Building zerovm toolchain on Fedora 20
View gist:9064414
[root@zerovm zvm-toolchain]# make -j4
Makefile:1036: target `SRC/directory.patch' given more than once in the same rule.
Makefile:1036: target `SRC/directory.patch' given more than once in the same rule.
Makefile:1036: target `SRC/directory.patch' given more than once in the same rule.
make -f Makefile sdkdirs
make[1]: Entering directory `/root/zvm-toolchain'
Makefile:1036: target `SRC/directory.patch' given more than once in the same rule.
Makefile:1036: target `SRC/directory.patch' given more than once in the same rule.
Makefile:1036: target `SRC/directory.patch' given more than once in the same rule.
echo "Creating the SDK tree at /root/zvm-root"
@major
major / scans_io-parser.py
Created Mar 17, 2014
Terrible half-done script to pull data from scans.io into mongodb
View scans_io-parser.py
#!/usr/bin/env python
import gzip
import OpenSSL
from pymongo import MongoClient
import ssl
import sys
import textwrap
from pprint import pprint
client = MongoClient('mongodb://localhost:27017/')
@major
major / user_agents.txt
Last active Aug 29, 2015
Top user agents hitting icanhazip.com
View user_agents.txt
4789794 curl
3945477 Python-urllib
1331837 Wget
1013183 - <-- no user agent string provided
424091 Mozilla
225741 Dalvik
74061 myBookAlarm
69084 Apache-HttpClient
51438 python-requests
37270 Go
@major
major / gist:4ab2e568cb232262b9a1
Created Jun 29, 2014
ipxe under xen is giving me grey hairs
View gist:4ab2e568cb232262b9a1
root (hd0)
Filesystem type is ext2fs, using whole disk
kernel /boot/ipxe.lkrn dhcp && chain http://boot.rackspace.com/menu.ipxe
xc: error: panic: xc_dom_bzimageloader.c:644: xc_dom_probe_bzimage_kernel: boot protocol too old (0207): Invalid kernel
xc: error: panic: xc_dom_core.c:585: xc_dom_find_loader: no loader found: Invalid kernel
xc_dom_parse_image returned -1
close(3)
Error 9: Unknown boot failure
@major
major / playbook.yml
Last active Aug 29, 2015
Ansible yum benchmarking
View playbook.yml
---
- hosts: chroot
vars:
- packages_to_install:
- bzip2
- chrony
- git
- less
- libselinux-utils
- lldpad
@major
major / gist:d4e9f447ab942edd7952
Created Jul 28, 2014
CentOS 7 / Fedora LiveOS issues when live disk fills
View gist:d4e9f447ab942edd7952
to cause the problem:
dd if=/dev/zero of=/testfile.bin bs=1M count=2048
system journal:
[ 2214.964214] device-mapper: snapshots: Invalidating snapshot: Unable to allocate exception.
[ 2214.971235] Buffer I/O error on device dm-0, logical block 1783562
[ 2214.971244] Buffer I/O error on device dm-0, logical block 1783095
[ 2214.971247] EXT4-fs warning (device dm-0): ext4_end_bio:287: I/O error writing to inode 16 (offset 198406144 size 4096 starting block 1783095)