Skip to content

Instantly share code, notes, and snippets.

View stevemcquaid's full-sized avatar

Stephen McQuaid stevemcquaid

View GitHub Profile
#!/bin/sh
sudo apt-get update
sudo apt-get install openjdk-6-jre
sudo apt-get install openjdk-6-jdk
sudo wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
sudo apt-get install ant
@stevemcquaid
stevemcquaid / centos_jenkins.sh
Last active January 22, 2019 17:54
Configures Jenkins on CentOS
### Copyright GoDaddy 2014
### Created by: Steve McQuaid - smcquaid@godaddy.com
### centos-jenkins.sh
### This file will configure a Centos VM on Openstack to install jenkins (& java dependency), git, jenkins plugin repository, &Nginx Reverse Proxy to serve Jenkins on Port 80.
### @TODO - Solve bug in Docker
### @TODO - Pre-configure example job
###fixes minor annoyance which will prevent git from authenticating with new host (for git enterprise)
### this must be run as root
echo "Adding github.secureserver.net to list of known hosts..."
@stevemcquaid
stevemcquaid / docker_nginx_POC.sh
Created July 16, 2014 22:30
Docker 3 Container setup. Nginx for reverse proxy/load distrobution + node hello world app + wordpress. Just run this fine & you are done.
HELLOWORLDNODEHOST=n-smcquaid.dev-godaddy.com
WORDPRESSHOST=wp-smcquaid.dev-godaddy.com
### Pull and run nginx-proxy container
git clone https://github.com/jwilder/nginx-proxy.git
cd nginx-proxy
docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock -t jwilder/nginx-proxy
cd ..
### Run hello-world-node
root@9d3edb109d43:/openstack-ci/ansible/wordpress-nginx# ansible-playbook -i hosts site.yml -vvvv
PLAY [Install Wordpress, MySQL, Nginx, and PHP-FPM] ***************************
GATHERING FACTS ***************************************************************
<securityGroups> ESTABLISH CONNECTION FOR USER: smcquaid
<securityGroups> REMOTE_MODULE setup
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', "/bin/sh -c 'mkdir -p /tmp/ansible-tmp-1409305968.4-9507290112498 && chmod a+rx /tmp/ansible-tmp-1409305968.4-9507290112498 && echo /tmp/ansible-tmp-1409305968.4-9507290112498'"]
EXEC previous known host file not found for securityGroups
<securityGroups> PUT /tm
---
- name: Install Wordpress, MySQL, Nginx, and PHP-FPM
hosts: wordpress-server
remote_user: smcquaid
sudo: yes
sudo_user: smcquaid
roles:
- common
- mysql
require "rails_helper"
RSpec.describe Invitation do
context "with a new object" do
it "should create a new instance given a valid attribute" do
invitation = Invitation.create!(
:sender_id => 1,
:recipient_email => "abc@example.com",
:token => "knjg1h2uye47fuygdwbfhshijdsap90afs9u8y7",
:sent_at => Time.now
@stevemcquaid
stevemcquaid / gist:8162558377190ea5ea55
Created December 1, 2014 19:19
Qubell Manifest - Availcheck
application:
interfaces:
input:
enable-exclusion-check: 'bind(workflow#input.enable-exclusion-check)'
enable-whois: 'bind(workflow#input.enable-whois)'
message-queue-name: 'bind(workflow#input.message-queue-name)'
verbose-log: 'bind(workflow#input.verbose-log)'
refresh-timer: 'bind(workflow#input.refresh-timer)'
version: 'bind(workflow#input.version)'
iis:

Keybase proof

I hereby claim:

  • I am stevemcquaid on github.
  • I am stevemcquaid (https://keybase.io/stevemcquaid) on keybase.
  • I have a public key ASAuBMXA2KpNJEYiXHqcTG-b3excyHbnIih5-hnnde7wCQo

To claim this, I am signing this object: