This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| # Thanks to this post: | |
| # http://blog.ikato.com/post/15675823000/how-to-install-consolas-font-on-mac-os-x | |
| $ brew install cabextract | |
| $ cd ~/Downloads | |
| $ mkdir consolas | |
| $ cd consolas | |
| $ curl -O http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe | |
| $ cabextract PowerPointViewer.exe | |
| $ cabextract ppviewer.cab |
| // This script is for Jenkins' Groovy console, and sets a timeout | |
| // strategy for any job which doesn't have one. | |
| // Based on http://janmaterne.wordpress.com/2010/07/11/how-to-check-if-all-hudson-jobs-have-a-timeout/ | |
| // Updated and modified by Sean Flanigan. | |
| import hudson.model.* | |
| String describe(strat) { | |
| if (strat instanceof hudson.plugins.build_timeout.impl.ElasticTimeOutStrategy) { | |
| return "Elastic(${strat.timeoutPercentage}, ${strat.numberOfBuilds}, ${strat.timeoutMinutesElasticDefault})" |
| #!/bin/sh | |
| # Which md files to compile | |
| declare -a arr=("hybrid-recommender" "text-matching" "pre-populated-recommenders") | |
| # Now loop through the above array | |
| for i in "${arr[@]}" | |
| do | |
| # Where to store the documentation |
| #!/usr/bin/env ruby | |
| # ./apib2httpsnippets | |
| # Author: Max Novakovic | |
| # Email: [email protected] | |
| require 'awesome_print' | |
| require 'json' | |
| require 'fileutils' | |
| require 'uri' |
| import jenkins.model.* | |
| import com.cloudbees.plugins.credentials.* | |
| import com.cloudbees.plugins.credentials.common.* | |
| import com.cloudbees.plugins.credentials.domains.* | |
| import com.cloudbees.plugins.credentials.impl.* | |
| import com.cloudbees.jenkins.plugins.sshcredentials.impl.* | |
| import org.jenkinsci.plugins.plaincredentials.* | |
| import org.jenkinsci.plugins.plaincredentials.impl.* | |
| import hudson.util.Secret | |
| import hudson.plugins.sshslaves.* |
| { | |
| "id": "marathon-lb-autoscale", | |
| "args":[ | |
| "--marathon", "http://leader.mesos:8080", | |
| "--haproxy", "http://marathon-lb.marathon.mesos:9090", | |
| "--target-rps", "100", | |
| "--apps", "nginx_10000" | |
| ], | |
| "cpus": 0.1, | |
| "mem": 16.0, |
| node { | |
| echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
| echo 'No quotes, pipeline command in single quotes' | |
| sh 'echo $BUILD_NUMBER' // 1 | |
| echo 'Double quotes are silently dropped' | |
| sh 'echo "$BUILD_NUMBER"' // 1 | |
| echo 'Even escaped with a single backslash they are dropped' | |
| sh 'echo \"$BUILD_NUMBER\"' // 1 | |
| echo 'Using two backslashes, the quotes are preserved' | |
| sh 'echo \\"$BUILD_NUMBER\\"' // "1" |