gpg --gen-key
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
| // Taken from: | |
| // http://stackoverflow.com/questions/263965/how-can-i-convert-a-string-to-boolean-in-javascript | |
| stringToBoolean = function(string) { | |
| switch(string.toLowerCase()){ | |
| case "true": case "yes": case "1": return true; | |
| case "false": case "no": case "0": case null: return false; | |
| default: return Boolean(string); | |
| } | |
| } |
| 2019/11/03 20:47:32 [INFO] Terraform version: 0.12.13 | |
| 2019/11/03 20:47:32 [INFO] Go runtime version: go1.13.4 | |
| 2019/11/03 20:47:32 [INFO] CLI args: []string{"/usr/local/bin/terraform", "output", "-json"} | |
| 2019/11/03 20:47:32 [DEBUG] Attempting to open CLI config file: /Users/chris_lee/.terraformrc | |
| 2019/11/03 20:47:32 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
| 2019/11/03 20:47:32 [DEBUG] checking for credentials in "/Users/chris_lee/.terraform.d/plugins" | |
| 2019/11/03 20:47:32 [INFO] CLI command args: []string{"output", "-json"} | |
| 2019/11/03 20:47:32 [DEBUG] checking for provider in "." | |
| 2019/11/03 20:47:32 [DEBUG] checking for provider in "/usr/local/bin" | |
| 2019/11/03 20:47:32 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64" |
| upstream www { | |
| server 127.0.0.1:9999; | |
| } | |
| upstream redis { | |
| server 127.0.0.1:6379; | |
| keepalive 1024; | |
| } | |
| lua_shared_dict srcache_locks 100k; | |
| server { |
| --- | |
| ### | |
| # Elasticsearch Rolling restart using Ansible | |
| ### | |
| ## | |
| ## Why is this needed? | |
| ## | |
| # | |
| # Even if you use a serial setting to limit the number of nodes processed at one |
| <?php | |
| class test | |
| { | |
| private $test = null; | |
| public function testMethod() | |
| { | |
| $this->test = "abc"; | |
| $count = 0; |
| interface: 0.0.0.0 | |
| publish_port: 4505 | |
| sign_pub_messages: True | |
| file_roots: | |
| base: | |
| - /srv/salt | |
| pillar_roots: | |
| base: |
| There is partial log that IST Received Failed | |
| [CODE] | |
| 2015-09-12 15:07:20 16752 [Note] WSREP: gcomm/src/gmcast.cpp:update_addresses():842: (94043ae8, 'tcp://0.0.0.0:4567') address 'tcp://10.88.3.25:4567' pointing to uuid 94043ae8 is blacklisted, skipping | |
| 2015-09-12 15:07:20 16752 [Note] WSREP: gcomm/src/gmcast.cpp:update_addresses():842: (94043ae8, 'tcp://0.0.0.0:4567') address 'tcp://10.88.3.25:4567' pointing to uuid 94043ae8 is blacklisted, skipping | |
| 2015-09-12 15:07:20 16752 [Note] WSREP: gcomm/src/gmcast.cpp:update_addresses():842: (94043ae8, 'tcp://0.0.0.0:4567') address 'tcp://10.88.3.25:4567' pointing to uuid 94043ae8 is blacklisted, skipping | |
| 2015-09-12 15:07:20 16752 [Note] WSREP: gcomm/src/gmcast.cpp:update_addresses():842: (94043ae8, 'tcp://0.0.0.0:4567') address 'tcp://10.88.3.25:4567' pointing to uuid 94043ae8 is blacklisted, skipping | |
| 2015-09-12 15:07:20 16752 [Note] WSREP: gcomm/src/gmcast.cpp:update_addresses():842: (94043ae8, 'tcp://0.0.0.0:4567') address 'tcp://10.88.3.25:4567' pointing to uuid |
| There is partial log that IST Received Success. | |
| [CODE] | |
| 2015-09-12 13:14:20 16752 [Note] WSREP: gcomm/src/gmcast.cpp:update_addresses():842: (94043ae8, 'tcp://0.0.0.0:4567') address 'tcp://10.88.3.25:4567' pointing to uuid 94043ae8 is blacklisted, skipping | |
| 2015-09-12 13:14:20 16752 [Note] WSREP: gcomm/src/gmcast.cpp:update_addresses():842: (94043ae8, 'tcp://0.0.0.0:4567') address 'tcp://10.88.3.25:4567' pointing to uuid 94043ae8 is blacklisted, skipping | |
| 2015-09-12 13:14:20 16752 [Note] WSREP: gcomm/src/gmcast.cpp:update_addresses():842: (94043ae8, 'tcp://0.0.0.0:4567') address 'tcp://10.88.3.25:4567' pointing to uuid 94043ae8 is blacklisted, skipping | |
| 2015-09-12 13:14:20 16752 [Note] WSREP: gcomm/src/gmcast.cpp:update_addresses():842: (94043ae8, 'tcp://0.0.0.0:4567') address 'tcp://10.88.3.25:4567' pointing to uuid 94043ae8 is blacklisted, skipping | |
| 2015-09-12 13:14:20 16752 [Note] WSREP: gcomm/src/gmcast.cpp:update_addresses():842: (94043ae8, 'tcp://0.0.0.0:4567') address 'tcp://10.88.3.25:4567' pointing to uu |
| #!/bin/bash | |
| # | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2014 Mathias Leppich <[email protected]> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |