Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.
This list is based on aliases_spec.rb.
You can see also Module: RSpec::Matchers API.
| matcher | aliased to | description |
|---|---|---|
| a_truthy_value | be_truthy | a truthy value |
| a_falsey_value | be_falsey | a falsey value |
| be_falsy | be_falsey | be falsy |
| a_falsy_value | be_falsey | a falsy value |
| - What do Etcd, Consul, and Zookeeper do? | |
| - Service Registration: | |
| - Host, port number, and sometimes authentication credentials, protocols, versions | |
| numbers, and/or environment details. | |
| - Service Discovery: | |
| - Ability for client application to query the central registry to learn of service location. | |
| - Consistent and durable general-purpose K/V store across distributed system. | |
| - Some solutions support this better than others. | |
| - Based on Paxos or some derivative (i.e. Raft) algorithm to quickly converge to a consistent state. | |
| - Centralized locking can be based on this K/V store. |
I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.
What I decided on was the following: put your secret information into a vars file, reference that vars file from your task, and encrypt the whole vars file using ansible-vault encrypt.
Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.
source: http://alvinalexander.com/unix/edu/examples/find.shtml
find / -name foo.txt -type f -print # full command
find / -name foo.txt -type f # -print isn't necessary
find / -name foo.txt # don't have to specify "type==file"
find . -name foo.txt # search under the current dir| #!/bin/sh | |
| if [ -t 0 ]; then | |
| if [ -z "$1" ]; then | |
| echo "usage: tny long_url [custom_keyword]" | |
| echo "" | |
| echo "Shorten URLs with tny.im URL shortener" | |
| echo "This script expects a long URL to shorten either as an argument or passed through STDIN." | |
| echo "When using arguments, an optional second argument can be provided to customize the later part of the short URL (keyword)." | |
| exit 1 | |
| fi |
| --- | |
| language: node_js | |
| node_js: | |
| - '0.10' | |
| branches: | |
| only: | |
| - master | |
| before_script: .travis/before_script.sh | |
| script: echo -e " >>> Do something... \"grunt\" for example\n" | |
| after_success: .travis/after_success.sh |