YARD CHEATSHEET http://yardoc.org
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
| # On the remote node/server: | |
| winrm quickconfig -q | |
| winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}' | |
| winrm set winrm/config '@{MaxTimeoutms="1800000"}' | |
| # When NOT USING a domain-based authentication (i.e., from Linux/Unix to Windows node): | |
| winrm set winrm/config/service/auth '@{Basic="true"}' |
| class Bottles | |
| def verse(number) | |
| case number | |
| when 1 | |
| orig_bottles = "bottle" | |
| new_bottles = "no more bottles" | |
| space = "" | |
| one = "it" |
| # | |
| # Cookbook Name:: sensu_client | |
| # Recipe:: windows | |
| # | |
| # Copyright (c) 2016 The Authors, All Rights Reserved. | |
| directory "C:\\tmp" do | |
| rights :full_control, 'tirefi\\administrator' | |
| action :create | |
| end |
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
| # Please see the following blog post for more information: | |
| # | |
| # https://www.hashicorp.com/blog/using-hashicorp-vault-with-chef.html | |
| # | |
| resource_name :vault_secret | |
| property :path, String, name_property: true | |
| property :destination, String |
| raise "Missing parameter 'CRED_PATH'. Please read docs at #{__FILE__}" \ | |
| unless ENV.key?('CRED_PATH') | |
| my_project = "jj-test-kitchen" | |
| gauth_credential 'mycred' do | |
| action :serviceaccount | |
| path ENV['CRED_PATH'] # e.g. '/path/to/my_account.json' | |
| scopes [ | |
| 'https://www.googleapis.com/auth/compute' |
| require "net/http" | |
| require "uri" | |
| require 'twitter' | |
| # Create an app.twitter.com fill these out | |
| client = Twitter::REST::Client.new do |config| | |
| config.consumer_key = "FAKE" | |
| config.consumer_secret = "VERYFAKEz2eQsYnUNXVL7S0kF0Bzh" | |
| config.access_token = "SOMENUMEBRE-66oauaoeu" |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| # Print status for all fail2ban jails. | |
| function f2bstall() { | |
| JAILS=($(fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g')) | |
| for JAIL in ${JAILS[@]} | |
| do | |
| echo "--------------- π JAIL STATUS: $JAIL ... ---------------" | |
| fail2ban-client status $JAIL | |
| echo "--------------- ... ---------------" | |
| done | |
| } |
The IBM Kubernetes service free clusters consist of a single worker node with 2 CPU and 4 GB of memory for experimenting with Kubernetes. Unlike the fee-based service, these clusters do not include capabilities for application load balancing using ingress out-of-the-box. However, if you manage a DNS domain (any provider will suffice) and can add an A record, it's possible for you to configure your own ingress that can provide http and https session termination for your containerized applications. Getting a TLS-enabled website or simply an external REST API couldn't be easier!
mycluster