Skip to content

Instantly share code, notes, and snippets.

View ssmythe's full-sized avatar

Steve Smythe ssmythe

  • Reno, NV, USA
  • 06:57 (UTC -07:00)
View GitHub Profile
@ssmythe
ssmythe / devops_training.txt
Last active March 9, 2024 20:23
Training materials for DevOps
======
Videos
======
DevOps
What is DevOps? by Rackspace - Really great introduction to DevOps
https://www.youtube.com/watch?v=_I94-tJlovg
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept)
@ssmythe
ssmythe / install-p4-cli-centos6.sh
Last active January 26, 2024 18:21
Install P4 cli on CentOS 6
#!/usr/bin/env bash
#
# P4 CLIENT
#
echo "p4-cli: Install p4 yum repo"
cat > /etc/yum.repos.d/perforce.repo <<EOF
[perforce]
name=Perforce
@ssmythe
ssmythe / fizzbuzz.feature
Created March 2, 2017 17:31
Example FizzBuzz Kata Cucumber feature file
Feature: FizzBuzzKata
Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number
and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".
Sample output:
1
2
Fizz
@ssmythe
ssmythe / good_flog_score.txt
Created January 18, 2016 03:33
What's a Good Flog Score?
From: http://jakescruggs.blogspot.com/2008/08/whats-good-flog-score.html
What's a Good Flog Score?
I've been using Flog to measure the complexity of my Ruby code and I was wondering how others interpret Flog numbers.
I'll go first with my opinions:
Score of Means
0-10 Awesome
11-20 Good enough
@ssmythe
ssmythe / install_pip.sh
Created May 6, 2017 15:53
Download get-pip.py and install pip
#!/usr/bin/env bash
if [[ $(whoami) != "root" ]]; then
echo "ERROR: must be run as root"
exit 1
fi
cd /tmp
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
@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 / install-nexus-oss-centos6.sh
Created February 22, 2016 23:41
Install Nexus OSS for CentOS6
#!/usr/bin/env bash
NEXUS_DEPLOY_VERSION=2.12.0
NEXUS_PATCH_LEVEL=01
#
# JAVA OPENJDK
#
echo "nexus: install Java OpenJDK"
@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 / nodejs_via_nvm_in_jenkins.sh
Last active July 20, 2020 02:50
Node.js via NVM in Jenkins
# Install Jenkins NVM plugin
mkdir -p /app/jenkins/plugins
chown jenkins:jenkins /app/jenkins/plugins
chmod 775 /app/jenkins/plugins
curl -o /app/jenkins/plugins/jenkins-nvm.hpi -ssL https://github.com/gextech/jenkins-nvm-plugin/blob/master/dist/jenkins-nvm.hpi?raw=true
chown jenkins:jenkins /app/jenkins/plugins/jenkins-nvm.hpi
chmod 0644 /app/jenkins/plugins/jenkins-nvm.hpi
#!/bin/bash
. ~/.nvm/nvm.sh
@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