Skip to content

Instantly share code, notes, and snippets.

View IngmarBoddington's full-sized avatar

Ingmar Boddington IngmarBoddington

View GitHub Profile
Ansible pushes IT Infra / Config from a control node using SSH
Commands are parallelised between hosts
Ordering can be important, watch out for deadlocks
Ansible is written in Python
=====
Inventory File
- Lives at /etc/ansible/hosts by default
- Can be flat file
? Action Chains? (Why?
? move_to_element? (Why?)
WebDriver
---------
Allows control over browser functions
#Import - for features in this doc (Chrome is generally being assumed)
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
#!/bin/bash
GIT_VERSION="2.23.0"
yum install -y gcc wget make curl-devel expat-devel \
gettext-devel openssl-devel perl-devel zlib-devel
cd ~
if [ ! -f git-${GIT_VERSION}.tar.gz ]; then
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz
#!/bin/bash
BASE_DIR=$(dirname $0)
BUILD_SCRIPT_NAME="build-git.sh"
BUILD_SCRIPT="${BASE_DIR}/${BUILD_SCRIPT_NAME}"
if [ ! -d /share/Public/toolchain ]; then
mkdir /share/Public/toolchain
fi
SETUP (OSX)
=====
install using homebrew
brew install --cask powershell
Run with
pwsh
Visual Studio / Code has an extenstion for editing
//Install using Homebrew (MacOS)
brew update
brew upgrade
brew install gradle
gradle build
KUBERNETES / OPENSHIFT TRAINING NOTES
-------------------------------------
https://www.openshift.com/
https://kubernetes.io/
GENERAL
Orchestrate containers
Openshift is built over Kubernetes and is maintained by RedHat.
A container is an instance of an image
A container runtime is an environment within with containers are ran
Example limit
SELECT * FROM <table> WHERE rownum <= 1;
Example row size
SQL> SELECT AVG_ROW_LEN FROM dba_tables WHERE table_name = '<table>';
SPL = Splunk Processing Language
host="<host>"
source="<source>"
sourcetype="<sourcetype>"
* can be used as a wildcard
| used to chain filtering / commands / searches
Full Search Reference: http://docs.splunk.com/Documentation/Splunk/7.0.1/SearchReference/WhatsInThisManual
@IngmarBoddington
IngmarBoddington / locations
Last active October 19, 2017 13:39
May use this as starting information for a site...
OSX (Sierra)
=====
/usr/libexec/java_home - Reports on current JAVA_HOME (or at least what it should be)
/usr/local/apache-tomcat-8.5.23 - Tomcat installation
Linux
=====
Bash Profiles
~/.bashrc
~/.bash_profile