Skip to content

Instantly share code, notes, and snippets.

Avatar

Steve Smythe ssmythe

View GitHub Profile
@ssmythe
ssmythe / pip_ignore_cert.sh
Created Nov 15, 2021
pip install ignore cert
View pip_ignore_cert.sh
pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org <package_name>
@ssmythe
ssmythe / gist:1b44f58b97624842529179a11d821a38
Last active Mar 23, 2020 — forked from kylefox/gist:4512777
If you want to use diffmerge as your git mergetool, this is how you set it up.
View gist:1b44f58b97624842529179a11d821a38
# Install diffmerge on macOS
brew cask install diffmerge
# Set "diffmerge" as the default difftool globally:
git config --global diff.tool diffmerge
# Set "diffmerge" as the default mergetool globally:
git config --global merge.tool diffmerge
@ssmythe
ssmythe / git_lga.txt
Last active Mar 23, 2020
Handy git log oneliner alias to show pretty graphs
View git_lga.txt
git config --global alias.lga "log --graph --oneline --all --decorate"
View gomplate_output_map_example.txt
# https://github.com/hairyhenderson/gomplate
# templates/hello.tmpl
Hello, {{ .users.Name }}
# config.json
{
"Name": "Steve"
}
@ssmythe
ssmythe / jenkins_kubernetes_setup.txt
Last active Feb 20, 2021
Jenkins Kubernetes Setup
View jenkins_kubernetes_setup.txt
Configure Global Security
====
Agents
----
TCP port for inbound agents: 50000
Configure System
====
Main config
@ssmythe
ssmythe / homebrew.mxcl.jenkins.plist
Last active May 17, 2019
jenkins brew /usr/local/opt/jenkins/homebrew.mxcl.jenkins.plist
View homebrew.mxcl.jenkins.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.jenkins</string>
<key>ProgramArguments</key>
<array>
<string>/usr/libexec/java_home</string>
<string>-v</string>
@ssmythe
ssmythe / run_bats.py
Created Apr 19, 2019
Pycharm unittest wrapper for bats
View run_bats.py
import unittest
import subprocess
class BatsTests(unittest.TestCase):
def test_run_bats(self):
process = subprocess.run("/usr/bin/env bats --tap .".split())
self.assertEqual(process.returncode, 0)
View ICRA and ISBPRDVLMO
These two acronyms are the framework in which I organize and categorize the lifecycle of changes to work products in a system.
ICRA (pronounced "Ick-rah")
I = Identification (what work products are called, how they are identified, what classification method or standard they use)
C = Control (how access and changes to work products are managed, access controls, change mechanisms, guard rails)
R = Report (details on activities around changes to work products, who made them, when, etc.)
A = Audit (the trail of access and changes to work products)
ISBPRDVLMO (pronounced "Is Beeper Dove Elmo"). It represents the end to end lifecycle of components for product lines.
@ssmythe
ssmythe / install_docker_on_jenkins_centos7.sh
Created Dec 5, 2018
Install docker on a Jenkins master on CentOS7
View install_docker_on_jenkins_centos7.sh
sudo yum -y install docker
sudo systemctl start docker
sudo systemctl enable docker
sudo groupadd docker
sudo usermod -aG docker jenkins
sudo systemctl restart jenkins
sudo systemctl restart docker
@ssmythe
ssmythe / install_docker_centos7.sh
Created Dec 5, 2018
Install Docker on CentOS7
View install_docker_centos7.sh
yum -y install docker
systemctl start docker
systemctl enable docker
docker info