Skip to content

Instantly share code, notes, and snippets.

View ssmythe's full-sized avatar

Steve Smythe ssmythe

  • Reno, NV, USA
  • 22:44 (UTC -07:00)
View GitHub Profile
@ssmythe
ssmythe / pip_ignore_cert.sh
Created November 15, 2021 19:40
pip install ignore cert
pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org <package_name>
@ssmythe
ssmythe / gist:1b44f58b97624842529179a11d821a38
Last active March 23, 2020 17:30 — forked from kylefox/gist:4512777
If you want to use diffmerge as your git mergetool, this is how you set it up.
# 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 March 23, 2020 16:02
Handy git log oneliner alias to show pretty graphs
git config --global alias.lga "log --graph --oneline --all --decorate"
@ssmythe
ssmythe / gomplate_output_map_example.txt
Created July 30, 2019 17:32
gomplate output map example
# https://github.com/hairyhenderson/gomplate
# templates/hello.tmpl
Hello, {{ .users.Name }}
# config.json
{
"Name": "Steve"
}
@ssmythe
ssmythe / jenkins_kubernetes_setup.txt
Last active February 20, 2021 19:25
Jenkins Kubernetes Setup
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 15:47
jenkins brew /usr/local/opt/jenkins/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 April 19, 2019 17:25
Pycharm unittest wrapper for bats
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)
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 December 5, 2018 23:32
Install docker on a Jenkins master on CentOS7
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 December 5, 2018 18:08
Install Docker on CentOS7
yum -y install docker
systemctl start docker
systemctl enable docker
docker info