Skip to content

Instantly share code, notes, and snippets.

View ajacocks's full-sized avatar

Alexander Jacocks ajacocks

View GitHub Profile
@ajacocks
ajacocks / sunos4-dns.txt
Created December 31, 2021 06:48
DNS for SunOS 4.1.X systems (provided by Sun)
SRDB ID: 3886
SYNOPSIS: Using DNS without NIS
DETAIL DESCRIPTION:
Want to use DNS, but not NIS
SOLUTION SUMMARY:
@ajacocks
ajacocks / setup.py.patch
Last active January 18, 2021 06:29
Python 3.9.1 Solaris 10 setup.py patch
--- Python-3.9.1/setup.py Mon Dec 7 09:02:38 2020
+++ Python-3.9.1.new/setup.py Mon Jan 18 03:53:37 2021
@@ -1084,7 +1084,26 @@
elif curses_library == 'curses' and not MACOS:
# OSX has an old Berkeley curses, not good enough for
# the _curses module.
- if (self.compiler.find_library_file(self.lib_dirs, 'terminfo')):
+ curses_undefines = []
+ curses_libraries = []
+ curses_runtime = []
@ajacocks
ajacocks / minishift-start-success.sh
Created August 17, 2018 16:21
Successful startup of minishift
$ minishift setup-cdk
Setting up CDK 3 on host using '/home/ajacocks/.minishift' as Minishift's home directory
Copying minishift-rhel7.iso to '/home/ajacocks/.minishift/cache/iso/minishift-rhel7.iso'
Copying oc to '/home/ajacocks/.minishift/cache/oc/v3.9.31/linux/oc'
Creating configuration file '/home/ajacocks/.minishift/config/config.json'
Creating marker file '/home/ajacocks/.minishift/cdk'
Default add-ons anyuid, admin-user, xpaas, registry-route, che, eap-cd installed
Default add-ons anyuid, admin-user, xpaas enabled
CDK 3 setup complete.
$ minishift start
@ajacocks
ajacocks / user-add-group.sh
Created August 17, 2018 16:19
Add your username to a new group, on the fly
$ sudo usermod -a -G libvirt `whoami`
$ newgrp libvirt
$ groups
libvirt wheel ajacocks
@ajacocks
ajacocks / remove-minishift-vm.sh
Created August 17, 2018 16:18
Remove a minishift VM
$ minishift delete
You are deleting the Minishift VM: 'minishift'. Do you want to continue [y/N]?: y
Deleting the Minishift VM...
Minishift VM deleted.
$ rm -rf ~/.minishift
@ajacocks
ajacocks / minishift-start-failed.sh
Created August 17, 2018 16:15
Red Hat Container Development Kit startup, with the user not being a member of group 'libvirt'
$ minishift start
-- Starting profile 'minishift'
-- Check if deprecated options are used ... OK
-- Checking if https://mirror.openshift.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.9.31' is valid ... OK
-- Checking if requested OpenShift version 'v3.9.31' is supported ... OK
-- Checking if requested hypervisor 'kvm' is supported on this platform ... OK
-- Checking if KVM driver is installed ... 
   Driver is available at /usr/local/bin/docker-machine-driver-kvm ... 
   Checking driver binary is executable ... OK