This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====== | |
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# P4 CLIENT | |
# | |
echo "p4-cli: Install p4 yum repo" | |
cat > /etc/yum.repos.d/perforce.repo <<EOF | |
[perforce] | |
name=Perforce |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org <package_name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
NEXUS_DEPLOY_VERSION=2.12.0 | |
NEXUS_PATCH_LEVEL=01 | |
# | |
# JAVA OPENJDK | |
# | |
echo "nexus: install Java OpenJDK" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configure Global Security | |
==== | |
Agents | |
---- | |
TCP port for inbound agents: 50000 | |
Configure System | |
==== | |
Main config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
NewerOlder