I hereby claim:
- I am taavituisk on github.
- I am taavituisk (https://keybase.io/taavituisk) on keybase.
- I have a public key ASDIzMJcBKTfdtwwXBOF7iiKS-pmpxxQjU89M5nfb1XXfAo
To claim this, I am signing this object:
| #!/bin/bash | |
| pinghost="${1}" | |
| pingport="${2}" | |
| pingtimeout=10 | |
| pingcmd="nc -w ${pingtimeout} ${pinghost} ${pingport}" | |
| pingret=0 | |
| echo "$(date -Iseconds) - connecting to ${pinghost} ${pingport}" |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| pinghost="${1}" | |
| pingcmd="-n -q -c 3 ${pinghost}" | |
| pingret=0 | |
| echo "$(date -Iseconds) - going to go ping against ${pinghost}" | |
| while true; do | |
| while [[ ${pingret} = 0 ]]; do |
| #!/bin/bash -e | |
| # Setup a Root CA in vault | |
| # Generate and sign an Intermediate cert | |
| # | |
| # Requires: | |
| # * A running vault server already initialzed and unsealed | |
| # * Environment variable VAULT_TOKEN is set | |
| # * vault cli (https://www.vaultproject.io) | |
| # * httpie (https://github.com/jkbrzt/httpie) |
| #!/bin/bash | |
| SSHKEY='/home/someone/.ssh/id_rsa' | |
| REMOTEIP='xxx.xxx.xxx.xxx' | |
| USER='user' | |
| GWHOST='yyy.yyy.yyy.yyy' | |
| RETRIES=200 | |
| # Stop everything on interrupt. | |
| trap ctrlc INT |
| text | |
| skipx | |
| install | |
| url --url http://mirror.raystedman.net/centos/6/os/x86_64/ | |
| repo --name=updates --baseurl=http://mirror.raystedman.net/centos/6/updates/x86_64/ | |
| lang en_US.UTF-8 | |
| keyboard us | |
| rootpw s0m3password | |
| firewall --disable | |
| authconfig --enableshadow --passalgo=sha512 |
| - hosts: all | |
| gather_facts: false # As Python is not yet installed, we cannot gather host facts | |
| pre_tasks: | |
| - name: making sure python2 and aptitude is there | |
| become: yes | |
| raw: "apt-get -y -q install python2.7 aptitude" | |
| - name: run setup module to gather facts | |
| setup: |
| <?php | |
| require 'vendor/autoload.php'; | |
| # use your awscli profile name here | |
| $profile = 'your profile'; | |
| $bucket = 'your bucket'; | |
| $keyname = 'testfile.txt'; | |
| $filename = './testfile.txt'; | |
| $localfile = fopen(realpath($filename), 'r'); |
| { | |
| "Version":"2012-10-17", | |
| "Statement":[ | |
| { | |
| "Effect":"Allow", | |
| "Action":[ | |
| "s3:ListBucket", | |
| "s3:GetBucketLocation" | |
| ], | |
| "Resource":[ |
| current_orgenv = ENV['CHEF_ORG'] + ENV['CHEF_MYENV'] | |
| current_dir = File.dirname(__FILE__) | |
| user = ENV['CHEF_USER'] || ENV['USER'] | |
| node_name user | |
| client_key "#{ENV['HOME']}/.chef/#{current_orgenv}_#{user}.pem" | |
| validation_client_name "#{ENV['CHEF_ORG']}-validator" | |
| validation_key "#{ENV['HOME']}/.chef/#{current_orgenv}_validator.pem" | |
| chef_server_url "#{ENV['CHEF_SERVER']}" | |
| syntax_check_cache_path "#{ENV['HOME']}/.chef/syntax_check_cache" |