-
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 yourname@gmail.com:CHANGEME
This file contains 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 | |
require 'mysql2' | |
require 'stringex' | |
require 'preamble' | |
outdir = ARGV[0] | |
if outdir.nil? || !File.directory?(outdir) | |
puts 'Usage: wordpress-to-jekyll.rb <outdir>' |
This file contains 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 | |
# 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' |
This file contains 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 | |
# 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" |
This file contains 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
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 |
This file contains 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 | |
# https://gist.github.com/mijit/72d31e53156fe82cecf8dc8c71421280 | |
require 'thor' | |
module App | |
class Foo < Thor | |
desc "bar", "do some bar thing" | |
def bar |
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:
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:
OlderNewer