Author:
erics, July 16th, 2019
Tungsten Clustering provides high availability, disaster recovery, and a host of other benefits for MySQL / MariaDB / Percona Server databases. In this blog post we will explore some of the shell aliases I use every day to administer various Tungsten Clusters.
Categories: Mastering Tungsten Clustering, Monitor Tags: Aliases, bash, cli, Command, Command line, HA, High Availability, monitoring, mysql, Tungsten
|
Comments Off on Slick Command-Line Tricks for a Tungsten MySQL / MariaDB Database Cluster
Author:
erics, February 4th, 2019
Use the ssh-keygen command on a computer to which you’ve downloaded your private key .pem file; for example: First, ensure permissions will allow ssh-keygen to work: chmod 600 /path/to/the/file/your-key-pair.pem Then generate an RSA public key: ssh-keygen -y -f /path/to/the/file/your-key-pair.pem > your-key-pair.pub
Categories: How-To's, Technology Tags: .pem, .pub, Amazon, apple, AWS, cli, howto, key, key-pair, KeyPair, Linux, Mac, MacOS, macosx, Pubkey, public, Public Key, ssh-keygen, tips
|
No comments
Author:
erics, September 27th, 2018
There are many things to configure in Nagios, especially when using custom check commands. Recently I needed to configure all of the Continuent Clustering Nagios checks. Once setup on the database side, I wanted to confirm that everything was working. Basics: Run a Remote NRPE Check To test a remote NRPE client command from a […]
Categories: How-To's, Technology Tags: cli, Clustering, Command, Command line, Continuent, Disaster REcovery, DR, HA, High Availability, howto, mysql, nagios, NRPE, Test, tips
|
No comments
Author:
erics, May 7th, 2018
h Shows you a screenful of message headers (a “header” being the number, sender, date, size and subject). h with no message number shows the current screenful of messages (the number that make up a screenful is set with the screen variable, described below). h$ shows you the last screenful of messages — which is […]
Categories: How-To's, Technology Tags: cli, CLI Mail, howto, Linux, mail, Move, tips
|
No comments
Author:
erics, October 6th, 2017
echo “show stat” | nc -U /var/lib/haproxy/stats | cut -d “,” -f 1,2,5-11,18,24,27,30,36,50,37,56,57,62 | column -s, -t
Categories: How-To's, Technology Tags: cli, Command, Command line, haproxy, howto, Linyx, proxy, socket, Status, tips
|
No comments
Author:
erics, February 4th, 2017
Make sure you have Ghostscript installed, then:
|
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS="/ebook" -sOutputFile=output.pdf input.pdf |
-dPDFSETTINGS={value} where {value} is one of: /screen – the lowest resolution and lowest file size, fine for viewing on a screen /ebook – mid-range resolution and file size /printer – high-quality setting used for printing PDFs /prepress – high-quality setting used for printing PDFs As always, YMMV…
Categories: How-To's, Technology Tags: Adobe, cli, Command line, Ghostscript, gs, howto, Linux, macosx, PDF, Reduce, Resize, Smaller, tips
|
No comments
Author:
erics, January 29th, 2017
I wanted to send email from cron for various reasons, but the emails would bounce with an error 554: 554 5.1.8 : Sender address rejected: Domain not found Clearly, Postfix was using the “internal” hostname of myappledesktop.local (MacOSX has TWO hostnames! also, myappledesktop.local is not the real hostname ;-). So, I needed two things: 1. […]
Categories: How-To's, Technology Tags: 10.10.5, Bounce, cli, Command line, Email, FQDN, howto, macosx, mail, main.cf, PostFix, Send, tips, Yosemite
|
No comments
Author:
erics, August 12th, 2016
sudo /usr/sbin/installer -pkg /path/to/yourFile.pkg -target /
Categories: How-To's, Technology Tags: apple, cli, Command, Command line, howto, Install, installer, macosx, OSX, Package, pkg, sudo, Terminal, tips, Yosemite
|
No comments
Author:
erics, June 6th, 2016
convert myFile*.jpg myFile.pdf convert myFile*.png myFile.pdf
Categories: How-To's, Technology Tags: cli, Command line, convert, howto, IM, ImageMagick, JPG, Linux, PDF, PNG, tips
|
No comments
Author:
erics, March 29th, 2016
http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
|
cd curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" unzip awscli-bundle.zip yum install python26 /usr/bin/python26 awscli-bundle/install -i /opt/aws/awscli -b /usr/bin/aws aws configure aws s3 ls aws ec2 describe-instances --output text |
ls -l ~/.aws
|
total 8 -rw------- 1 root root 43 Mar 24 18:05 config -rw------- 1 root root 116 Mar 24 18:05 credentials |
cat ~/.aws/config
|
[default] output = json region = us-east-1 |
cat ~/.aws/credentials
|
[default] aws_access_key_id = NNNNNNNNNNNNNNNNNNNN aws_secret_access_key = NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN |
Categories: How-To's, Technology Tags: AWS, cli, configure, Credentials, Creds, howto, Install, Python, python26, tips, Yum
|
No comments