Skip to content

Instantly share code, notes, and snippets.

View major's full-sized avatar
🤠
Yeehaw.

Major Hayden major

🤠
Yeehaw.
View GitHub Profile
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 --------
@major
major / gist:782f8e68fb99cbc1e06e
Created August 27, 2015 13:55
FST Tickets 2015-08-27
┌────────────────┬─────────┐
│ Component │ Tickets │
├────────────────┼─────────┤
│ cacti │ 10 │
│ nagios │ 9 │
│ moodle │ 8 │
│ quassel │ 7 │
│ qemu │ 7 │
│ mingw-icu │ 7 │
│ bugzilla │ 7 │
@major
major / report.txt
Created August 27, 2015 15:17
Fedora Security Report (proposed)
__ _
/ _| ___ __| | ___ _ __ __ _
| |_ / _ \/ _` |/ _ \| '__/ _` | Fedora Security Team Report
| _| __/ (_| | (_) | | | (_| | Report date: 2015-08-27 10:15:51.173354
|_| \___|\__,_|\___/|_| \__,_|
-------------------------------------------------------------------------------
+Ticket Status------------+
| Status | Tickets Open |
+----------+--------------+
@major
major / report.py
Created August 27, 2015 16:35
Fedora Security Team report script
#!/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 February 18, 2014 03:58
Building zerovm toolchain on Fedora 20
[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 March 17, 2014 19:04
Terrible half-done script to pull data from scans.io into mongodb
#!/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 August 29, 2015 14:02
Top user agents hitting icanhazip.com
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 June 29, 2014 19:23
ipxe under xen is giving me grey hairs
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 August 29, 2015 14:04
Ansible yum benchmarking
---
- hosts: chroot
vars:
- packages_to_install:
- bzip2
- chrony
- git
- less
- libselinux-utils
- lldpad
@major
major / gist:b57dc7189d34f1253ea4
Last active August 29, 2015 14:04
libvirtd/apparmor on debian jessie
root@testing:~# libvirtd --verbose
2014-07-29 15:09:00.480+0000: 18967: info : libvirt version: 1.2.4
2014-07-29 15:09:00.480+0000: 18967: error : virSecurityDriverLookup:80 : unsupported configuration: Security driver apparmor not enabled
2014-07-29 15:09:00.480+0000: 18967: error : qemuSecurityInit:393 : Failed to initialize security drivers
2014-07-29 15:09:00.480+0000: 18967: error : virStateInitialize:749 : Initialization of QEMU state driver failed: unsupported configuration: Security driver apparmor not enabled
2014-07-29 15:09:00.480+0000: 18967: error : daemonRunStateInit:922 : Driver state initialization failed