This is a simple dice rolling application built as part of an ember.js tutorial by William Hart. See the tutorial at http://www.williamhart.info/an-emberjs-beginners-tutorial.html.
This software is free to use and released in the public domain.
| #!/bin/sh | |
| # | |
| # Use this as Jenkins Build "Execute shell" script | |
| # | |
| # Pedro Melo <[email protected]> | |
| ## Die on any errors | |
| set -ex | |
| export OUTPUT=$WORKSPACE/logs |
| class git { | |
| package { 'git': | |
| ensure => installed, | |
| } | |
| define repository($project = $name, $cwd, $dir = "$cwd/${project}", | |
| $repo = "githost:${project}.git", $no_ensure = 0) { | |
| $require = $no_ensure ? { | |
| 1 => [Package['git']], | |
| default => [Package['git'], File[$cwd]], |
| wget https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
| bunzip2 phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
| tar xf phantomjs-1.9.1-linux-x86_64.tar | |
| mv phantomjs-1.9.1-linux-x86_64/ /opt/ | |
| ln -s /opt/phantomjs-1.9.1-linux-x86_64/ /opt/phantomjs | |
| ln -s /opt/phantomjs/bin/phantomjs /usr/local/bin/ | |
| #check what you've just done | |
| which phantomjs | |
| phantomjs --version |
This is a simple dice rolling application built as part of an ember.js tutorial by William Hart. See the tutorial at http://www.williamhart.info/an-emberjs-beginners-tutorial.html.
This software is free to use and released in the public domain.
| #!/bin/bash | |
| COMMAND='puppet parser validate' | |
| TEMPDIR=`mktemp -d` | |
| echo "### Attempting to validate puppet files... ####" | |
| # See https://www.kernel.org/pub/software/scm/git/docs/githooks.html#pre-receive | |
| oldrev=$1 | |
| newrev=$2 |
| import jenkins.model.* | |
| import hudson.remoting.Launcher | |
| import hudson.slaves.SlaveComputer | |
| def expectedVersion = Launcher.VERSION | |
| for (computer in Jenkins.instance.getComputers()) { | |
| if (! (computer instanceof SlaveComputer)) continue | |
| if (!computer.getChannel()) continue | |
| def version = computer.getSlaveVersion() |
http://bit.ly/2nT6rK0 msa-workshop
| autoload -Uz compinit && compinit | |
| autoload -Uz add-zsh-hook | |
| autoload -Uz vcs_info | |
| add-zsh-hook precmd vcs_info | |
| zstyle ':vcs_info:*' enable git | |
| zstyle ':vcs_info:*' formats " %F{cyan}%c%u(%b)%f" | |
| zstyle ':vcs_info:*' actionformats " %F{cyan}%c%u(%b)%f %a" | |
| zstyle ':vcs_info:*' stagedstr "%F{green}" |