Skip to content

Instantly share code, notes, and snippets.

View ssmythe's full-sized avatar

Steve Smythe ssmythe

  • Reno, NV, USA
  • 15:54 (UTC -07:00)
View GitHub Profile
\curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
\curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm --version
rvm install 2.0.0
rvm use 2.0.0
rvm --default use 2.0.0
rvm docs generate-ri
rvm default
ruby --version
\curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
\curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm --version
rvm install 2.2.0
rvm use 2.2.0
rvm --default use 2.2.0
rvm docs generate-ri
rvm default
ruby --version
@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 / rvm_project_specific_rubies_and_gems.txt
Last active August 29, 2015 14:22
RVM project specific rubies and gems
# install RVM
\curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
\curl -sSL https://get.rvm.io | bash -s stable
# set up project specific rubies and gems option
echo "export rvm_project_rvmrc=1" > $HOME/.rvmrc
echo "export rvm_install_on_use_flag=1" >> $HOME/.rvmrc
echo "export rvm_gemset_create_on_use_flag=1" >> $HOME/.rvmrc
# read in RVM config to running environment
@ssmythe
ssmythe / install_jenkins_on_fedora-rhel-centos.sh
Last active August 29, 2015 14:22
Install Jenkins on Fedora/RHEL/CentOS
# run as root
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key
yum -y remove java*
yum -y install java-1.7.0-openjdk
update-alternatives --auto java
# RVM dependencies
yum -y install epel-release wget
yum -y install gnupg2 patch libyaml-devel glibc-headers autoconf gcc-c++ glibc-devel readline-devel zlib-devel libffi-devel openssl-devel automake libtool bison sqlite-devel
@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 / install_nvm.sh
Created May 29, 2015 05:51
Install NVM
# for a given user
curl -ssL https://raw.githubusercontent.com/creationix/nvm/v0.25.3/install.sh | bash
. ~/.nvm/nvm.sh
@ssmythe
ssmythe / index.html
Last active August 29, 2015 14:26
Simple hello world HTML
<html>
<head>
<title>Sup</title>
</head>
<body>
<h1>Hello, world!</h1>
</body>
</html>
@ssmythe
ssmythe / install-base-centos6.sh
Last active March 4, 2016 19:12
Fedora/RHEL6/CentOS6 install base: Registers FQDN with DHCP, sets local time zone, and updates system packages
#!/usr/bin/env bash
echo "base: updating system packages"
yum -y update
echo "base: cleaning YUM metadata"
yum clean all
yum clean metadata
echo "base: registering hostname with DHCP server"
@ssmythe
ssmythe / install-apache-centos6.sh
Last active August 29, 2015 14:26
Fedora/RHEL6/CentOS6 install base: Installs Apache, Creates Hello World index.html, Restarts Apache
#!/bin/bash
echo "apache: Installing Apache"
yum -y install httpd
echo "apache: Creating Hello World index.html"
cat > /var/www/html/index.html <<EOF
<html>
<head>
<title>Sup</title>