Skip to content

Instantly share code, notes, and snippets.

View framer99's full-sized avatar

framer99 framer99

View GitHub Profile
@framer99
framer99 / NetworkManager.conf
Created March 20, 2015 14:03
Serverified NetworkManager.conf setup for manual nmcli control only
[main]
plugins=ifcfg-rh
#
# "Serverify" NetworkManager behavior, ensuring it only does what we tell it via nmcli
#
# See man NetworkManager.conf for more details on settings below
#
#
# Do not create any connections automatically
@framer99
framer99 / hsb_nmcli_setup.sh
Created March 20, 2015 14:01
# Automated nmcli/NetworkManager config script for 7 NIC server
#!/bin/sh
#
#
# Automated nmcli/NetworkManager config script for 7 NIC server
# 1 NIC for dedicated management is ignored by this script
# 6 NICs configured in 3 active backup teams
# Ethtool link watchers only
#
# Set this to the NetworkManager connection name of the management
@framer99
framer99 / msys2cleanreinstallall.txt
Created September 10, 2014 18:20
msys2 all packages clean reinstall
$ pacman -S $(pacman -Q | awk '{print $1}')
warning: bash-4.3.024-1 is up to date -- reinstalling
warning: bash-completion-2.1-3 is up to date -- reinstalling
warning: bsdcpio-3.1.2-3 is up to date -- reinstalling
warning: bsdtar-3.1.2-3 is up to date -- reinstalling
warning: bzip2-1.0.6-1 is up to date -- reinstalling
warning: ca-certificates-20140325-1 is up to date -- reinstalling
warning: catgets-1.1-1 is up to date -- reinstalling
warning: coreutils-8.23-2 is up to date -- reinstalling
warning: crypt-1.1-2 is up to date -- reinstalling
@framer99
framer99 / python-crypto.spec
Created January 26, 2014 20:36
spec file to rebuilt python-crypto rpm on centos6 with python-crypto-sha256_padding_bug.patch
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Summary: Cryptography library for Python
Name: python-crypto
Version: 2.0.1
Release: 22sha256%{?dist}
License: Public Domain
Group: Development/Libraries
--- pycrypto-2.0.1/src/SHA256.c 2014-01-26 12:25:55.761067689 -0500
+++ pycrypto-2.1.0/src/SHA256.c 2014-01-26 12:26:04.182356899 -0500
@@ -8,8 +8,29 @@
*
* Revised Code: Complies to SHA-256 standard now.
*
- * Tom St Denis -- http://tomstdenis.home.dhs.org
- * */
+ * Originally written by Tom St Denis -- http://tomstdenis.home.dhs.org
+ *
--- python-crypto.spec.orig 2010-09-22 13:26:49.000000000 -0400
+++ python-crypto.spec 2014-01-26 14:28:19.526136385 -0500
@@ -5,7 +5,7 @@
Summary: Cryptography library for Python
Name: python-crypto
Version: 2.0.1
-Release: 22%{?dist}
+Release: 22sha256%{?dist}
License: Public Domain
Group: Development/Libraries