Skip to content

Instantly share code, notes, and snippets.

View ssmythe's full-sized avatar

Steve Smythe ssmythe

  • Reno, NV, USA
  • 10:08 (UTC -07:00)
View GitHub Profile
@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.

@ssmythe
ssmythe / install_perl.sh
Created May 6, 2017 20:06
Install Perl
yum -y install perl
@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 / install-cygwin.bat
Last active March 10, 2017 07:30
Install cygwin gcc-g++ and other dev tools
setup-x86_64.exe ^
--no-desktop ^
--quiet-mode ^
--disable-buggy-antivirus ^
--upgrade-also ^
--packages ^
curl,^
git,^
openssh,^
rsync,^
@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 / install-nexus3-oss-centos6.sh
Created October 21, 2016 14:41
install-nexus3-oss-centos6.sh
#!/usr/bin/env bash
## Instructions based on https://books.sonatype.com/nexus-book/reference3/install.html
## Oracle JDK
JDK_RPM_VERSION=8u102
JDK_BUILD=14
JDK_ARCH=x64
## Version 3 - supports Docker NuGet npm Bower
@ssmythe
ssmythe / windows_test.bat
Last active August 7, 2016 16:13
A simple windows test
@echo off
echo %COMPUTERNAME% >> C:\temp\test.log
date /t >> C:\temp\test.log
time /t >> C:\temp\test.log
@ssmythe
ssmythe / osx_info.sh
Created August 7, 2016 14:41
Information on OSX machines
sysctl -n machdep.cpu.brand_string
df -h
ifconfig
sysctl -n hw.physicalcpu
sysctl -n hw.logicalcpu
sw_vers -productVersion
diskutil list
@ssmythe
ssmythe / upgrade-ca-certificates-centos6.sh
Last active June 28, 2016 03:28
upgrade-ca-certificates-centos6.sh
yum -y upgrade ca-certificates