Skip to content

Instantly share code, notes, and snippets.

View carlwgeorge's full-sized avatar

Carl George carlwgeorge

View GitHub Profile
@carlwgeorge
carlwgeorge / multio-tests.txt
Created October 17, 2018 21:47
multio tests with pytest 3.7.0
# pytest -v multio
========================================== test session starts ===========================================
platform linux -- Python 3.7.0, pytest-3.7.0, py-1.7.0, pluggy-0.7.1 -- /root/multio/.env/bin/python3
cachedir: .pytest_cache
rootdir: /root/multio, inifile:
collected 8 items
multio/tests/test_multio.py::test_initialize[trio] ERROR [ 12%]
multio/tests/test_multio.py::test_initialize[curio] ERROR [ 25%]
multio/tests/test_multio.py::test_initialize[lib2] ERROR [ 37%]
$ python setup.py test
running test
running egg_info
writing Rx.egg-info/PKG-INFO
writing dependency_links to Rx.egg-info/dependency_links.txt
writing top-level names to Rx.egg-info/top_level.txt
reading manifest file 'Rx.egg-info/SOURCES.txt'
writing manifest file 'Rx.egg-info/SOURCES.txt'
running build_ext
test_controlledobservable_simple (test_controlledobservable.TestControlledObservable) ... ok
@carlwgeorge
carlwgeorge / python-example.spec
Last active December 6, 2018 16:26
example python module spec file for Fedora and EPEL
# what it's called on pypi
%global srcname example
# what it's imported as
%global libname %{srcname}
# name of egg info directory
%global eggname %{srcname}
# package name fragment
%global pkgname %{srcname}
%global common_description %{expand:
@carlwgeorge
carlwgeorge / smbios-sys-info-lite_invalid-pointer.txt
Created April 12, 2018 21:11
smbios-sys-info-lite invalid pointer
# smbios-sys-info-lite
Libsmbios: 2.3.3
System ID: 0x0235
Service Tag: 6PSKXQ1
Express Service Code: 14620354489
*** Error in `smbios-sys-info-lite': free(): invalid pointer: 0x0000000000634460 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7c619)[0x7f94c0620619]
smbios-sys-info-lite[0x40ecc2]
smbios-sys-info-lite[0x4067c4]
@carlwgeorge
carlwgeorge / rhel-7.5-beta.txt
Created January 26, 2018 22:39
RHEL 7.5 beta release notes
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7-beta/html/7.5_release_notes/index
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7-beta/html/7.5_release_notes/new_features_authentication_and_interoperability#BZ1470048
samba 4.6.2 > 4.7.1
smb protocol 3 by default
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7-beta/html/7.5_release_notes/new_features_compiler_and_tools#BZ1460249
nmap 6.40 > 7.50
(ncat) The -z option for quickly checking the status of a port has been added.
@carlwgeorge
carlwgeorge / rhel7-mysql-options.md
Created January 11, 2018 21:13
RHEL 7 MySQL options

dataset:

names = ['John', 'Mary', 'Sue', 'Jill', 'Garth', 'Jack', 'Jennifer']

before:

names_that_start_with_j = []

spec file

%config(noreplace) %{_sysconfdir}/recap
%config(noreplace) %{_sysconfdir}/recap.conf

unedited config

before upgrade:

# Which one is better?
# option A
ExclusiveArch: %{go_arches}
ExcludeArch: s390x
# option B
%if 0%{?rhel}
ExclusiveArch: x86_64 aarch64 ppc64le
%else