Skip to content

Instantly share code, notes, and snippets.

View ssmythe's full-sized avatar

Steve Smythe ssmythe

  • Reno, NV, USA
  • 17:04 (UTC -07:00)
View GitHub Profile
@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 / 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
@ssmythe
ssmythe / install-jenkins-plugins.sh
Created February 22, 2016 23:26
Installs some Jenkins plugins
#!/usr/bin/env bash
echo "jenkins-plugins: Installing plugin: build-pipeline-plugin"
su -l -c "java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080 install-plugin build-pipeline-plugin" jenkins
echo "jenkins-plugins: Installing plugin: delivery-pipeline-plugin"
su -l -c "java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080 install-plugin delivery-pipeline-plugin" jenkins
echo "jenkins-plugins: Installing plugin: join"
su -l -c "java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080 install-plugin join" jenkins
@ssmythe
ssmythe / install_jenkins_latest_rhel.sh
Created December 2, 2018 23:28
Install latest version of jenkins for RHEL family server
yum -y remove java
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
yum -y install jenkins java
service jenkins start
chkconfig jenkins on
@ssmythe
ssmythe / setup-vagrant-macosx.md
Created September 9, 2017 05:16 — forked from tomysmile/setup-vagrant-macosx.md
How to Install Virtualbox and Vagrant on MacOSX

Install Virtualbox && Vagrant for MacOSX

Vagrant uses Virtualbox to manage the virtual dependencies. You can directly download virtualbox and install or use homebrew for it.

$ brew cask install virtualbox

Now install Vagrant either from the website or use homebrew for installing it.