- Download script
travis-encrypt.sh - Make it executable
chmod +x travis-encrypt.sh - Run the script with
./travis-encrypt.sh -r username/repositoryname -e example- It will return something like
O+woVD9K+PeFrcyu5GCjKSFvfcSPwDW0kyDYEQnNbwt/iSkqjpl2OPA9W//KEKEB9UUSZD+XmQ3Ij0gnvJnOowcWY5sSeJlVEVTrSer0kW6uWpa/uWzDHCBz2YhBnI6u9SfYfMkhDl22pcaCEwaUkmK2gjcVo+v0bS8vAQFz0Na5/WiKj0GkSX50iIGgfaXheuC8KgIC25T0h+czpap7vb13OlblMnClfyTH9+TmAwTlcV7ljXpv1QY+K72L8jK1/CQVZ8quBYrBwwxO2V6cpXRMMCIw4m4lqxUyN4FBGnq7cJ7BWLzeqSMpFBoP+ZxAqS5yem8KLh1VkEo7PVjCkZE6M+2meFf2VJEVUs/KJY9xnH3eDzipWkwXon2qVpCkT7FDEzGFs/DapYsSo7eCO6pUYYhcpaYpWeYV9DSSV0QcrOeZp664iJMHWPSmrs/lESbbHpKWsM/AFVB9X75q/OB+QU0tQxpReZmKw3ZHbDVMlmlwhP8VSiQ05LV2W6gYzADGiUiL6n1X8teeHEVDSZnD7nrxMD/FchnWI5La3tZeFovRMf6hH3NItW+QZaGaGNftJrP488J/F2hCycPJk3+YrxbBCGHE2X379QbkMz3S0B5UiAcJKmwuTstF6X3CCurZVYIkUGGXhnmalPtVpEqxeTiLw5RU6C9z2qSwhhw=
- It will return something like
- Use the encrypted secret in your
.travis.ymlaccording to https://docs.travis-ci.com/user/encryption-keys/#Usage
This file contains hidden or 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
| #!/bin/bash | |
| awk_list() { | |
| while read data; do | |
| printf "%s" "$data" | awk -F, '{ for(i =1; i<=NF; i++){ print "- `"$i"`"; } }' | |
| done | |
| } | |
| fact() { | |
| name=${1:-NONAME} |
This file contains hidden or 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
| require 'json' | |
| require 'open-uri' | |
| require 'net/http' | |
| require 'openssl' | |
| # A fit-for-most-purposes, MRI-compatible HTTP/S swiss army knife method | |
| # | |
| # @param [URI] uri | |
| # @param [Hash] opts options to configure the connection | |
| # @option opts [String] :content_type |
This file contains hidden or 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 ruby | |
| # | |
| # Set/delete a common env var across all Travis CI repos in an organization | |
| # | |
| # * Requires a Travis CI token set in environment variable `TRAVIS_TOKEN` | |
| # * Uses Travis CI API v3 (https://developer.travis-ci.org) | |
| # | |
| # @author Name Chris Tessmer <chris.tessmer@onyxpoint.com> | |
| # @license https://apache.org/licenses/LICENSE-2.0 | |
| # |
This file contains hidden or 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
| #!/bin/bash | |
| # ------------------------------------------------------------------------------ | |
| # Ensure various things are correct after r10k is finished running | |
| # | |
| # To save time, this script only attempts to run a blanket fix permission fix | |
| # if it has NOT been run with the same effective gid as the Puppet Server. | |
| # | |
| # NOTE: To use this script, specify it as the `postrun` in the r10k.yaml file | |
| # | |
| # NOTE: r10k does not provide the deployed environment to postrun scripts. |
This file contains hidden or 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
| require 'json' | |
| require 'yaml' | |
| require 'tmpdir' | |
| require 'rake' | |
| require 'rake/file_utils' | |
| require 'optparse' | |
| require 'fileutils' | |
| class StigJsonEgrepper |
This file contains hidden or 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
| #!/bin/sh -e | |
| # To the extent possible under law, Viktor Szakats (vszakats.net) | |
| # has waived all copyright and related or neighboring rights to this | |
| # script. | |
| # CC0 - https://creativecommons.org/publicdomain/zero/1.0/ | |
| # This script will create a self-signed root certificate, along with a code | |
| # signing certificate in various formats, trying to use the best available | |
| # crypto/practice all along. Then, it will create a test executable and code |
This file contains hidden or 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
| require 'json' | |
| require 'yaml' | |
| require 'rake/file_utils' | |
| module Simp; end | |
| module Simp::BeakerSuites; end | |
| module Simp::BeakerSuites::Helpers | |
| include FileUtils | |
| @beaker_suites_rpath = 'spec/acceptance/suites' |
This file contains hidden or 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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure("2") do |c| | |
| c.vm.define 'r10k-install-test', primary: true do |v| | |
| v.vm.box = 'centos/7' |