I hereby claim:
- I am talarczykco on github.
- I am talarczykco (https://keybase.io/talarczykco) on keybase.
- I have a public key whose fingerprint is 23E6 1B9C ABC8 6803 E6D6 9839 AF0F C079 23B4 BE7F
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'mysql2' | |
require 'stringex' | |
require 'preamble' | |
outdir = ARGV[0] | |
if outdir.nil? || !File.directory?(outdir) | |
puts 'Usage: wordpress-to-jekyll.rb <outdir>' |
I hereby claim:
To claim this, I am signing this object:
curl -O https://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub | |
sudo apt-key add VMWARE-PACKAGING-GPG-DSA-KEY.pub | |
curl -O https://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub | |
sudo apt-key add VMWARE-PACKAGING-GPG-RSA-KEY.pub | |
echo 'deb https://packages.vmware.com/packages/ubuntu precise main' \ | |
| sudo tee /etc/apt/sources.list.d/vmware-tools.list | |
sudo apt-get -y install apt-transport-https |
#!/usr/bin/env ruby | |
# See also: | |
# - https://github.com/timkay/aws/wiki/netrc-and-netrc.gpg-support-(store-your-passwords-in-a-file) | |
# - http://bryanwweber.com/writing/personal/2016/01/01/how-to-set-up-an-encrypted-.netrc-file-with-gpg-for-github-2fa-access/ | |
# - http://www.issihosts.com/haveged/ | |
begin | |
require 'netrc' | |
netrc = Netrc.read | |
entry = ARGV[0] || 'default' |
#!/usr/bin/env ruby | |
# https://gist.github.com/mijit/72d31e53156fe82cecf8dc8c71421280 | |
require 'thor' | |
module App | |
class Foo < Thor | |
desc "bar", "do some bar thing" | |
def bar |
#!/usr/bin/env ruby | |
# https://github.com/chef/mixlib-cli | |
# https://github.com/rest-client/rest-client | |
# https://github.com/sensu-plugins/sensu-plugin | |
require "json" | |
require "netrc" | |
require "rest-client" | |
require "sensu-plugin/check/cli" |
Create a new app password in Gmail for Postfix (Optional - this is required only if you have 2-Step Verification enabled.)
Edit /etc/postfix/sasl_passwd
with your username and app password:
smtp.gmail.com:587 [email protected]:CHANGEME
If you use elasticsearch-curator on AWS (or possibly other hosted or self-hosted Elasticsearch installations that use SSL,) and you get this when curating:
elasticsearch.exceptions.ElasticsearchException: Unable to create client connection to Elasticsearch. Error: Root certificates are missing for certificate validation. Either pass them in using the ca_certs parameter or install certifi to use it automatically.
Then make sure the client.use_ssl key is present and True. This is a non-obvious error that led me down a rathole of Googling. Don't bother specifying root certificates, or installing certifi (it's probably already installed, if you installed elasticsearch-curator with pip.)
---
# https://www.elastic.co/guide/en/elasticsearch/client/curator/current/configfile.html
client: