Friday, August 25, 2017

how to debug yaml files (puppet hiera)

/opt/puppet/bin/ruby -e "require 'yaml'; YAML.load_file('./theyamlfile.yaml')"

Tuesday, May 24, 2016

App Suppressed Your app was removed from Amazon Appstore on 24 May 2016.

My experience with The Amazon Appstore. I submitted a pretty innocuous app.  An audiobook player that plays the Librivox audiobook "Six Month in Mexico" by Nellie Bly .  I submitted the app and it was approved for non-Amazon devices.  I'm ok with that, who really cares about kindles and fire phones or whatever they are called.  I never seen one and don't know anyone that has one.  When I went to find my app in the Amazon Appstore I could not find it.  I found plenty of crappy kindle eBooks of "Six Month in Mexico" but I could not find my app.  I looked for another app of mine "Flappy Trump" and there is a link to "All App from This Developer".  I clicked on that I saw that was a link that read something like "Click here to see Adult Content".  I was like "what the ..."? I clicked on the link and that's where I finally found my audiobook app of  "Six Month in Mexico".  I figured it was an honest mistake so I opened a case:

[CASE 1752845801] Red Cricket: APP_TESTING_RESULTS [M3H65JIIQDEFA7] [Bronze]
Date: Fri, 20 May 2016 13:42:49 +0000
From: Amazon Mobile App Distribution Support Team <>
To: "" <>
Subject: RE:[CASE 1752845801] Red Cricket: APP_TESTING_RESULTS
[M3H65JIIQDEFA7] [Bronze]

Hi Russell, Thanks for reaching out! I have escalated your case to the testing team, and will get back to you as soon as I have an update. Thanks! Best regards, Levon L.
Amazon Mobile App Distribution Support Team
================================ More questions? Check out our FAQ:
FAQ: Need tools to build or improve your apps? Check out the AWS Mobile SDK: Please do not reply to this email. To respond to us again about this issue, please use the following link: To contact us about a separate issue, please open a new case:
Well nothing happened so I went to their link to ask what was up and got this response:

Hi Russell,

As I mentioned in the previous message, your case has been escalated, and we will get back to you as soon as there's something to share. Thank you for your patience in this matter.

Best regards,

Levon L.
Amazon Mobile App Distribution Support Team

Well there are no case notes I can review and see what I asked them about and what if anything is happening. Well the next day I get an "Notification" that read:

I went to the dash board and saw a message that read:

No one ever got back to me to explain why they thought my boring Nellie Bly audiobook was pornographic and why they removed my app.  What gives amazon? 


I went to the "Review Status" tab today and submitted "feedback" with "feedback category" set to "other" asking simply:

"Why did you suppress my app?"

Later that day. Not bad they got back to me within 24 hours! But the answer was kind of dumb at not realistically actionable:

Hi Russell,
The app was suspended, as we believe your content is better suited for publication on our Audible store. Please submit your content at Audiobook Creation Exchange (ACX) instead.
I hope that clarifies the situation and apologies for the confusion and any inconvenience this might have caused you. Please let us know if you have any further questions. Thanks!
Also did not supply a link to ACX.  They probably don't even know what it is.

Monday, May 23, 2016

Doing video screen capture with AndroidStudio and lbgdx games

I had to use these settings ...
... to get my video game to operate correctly when doing screen capture.

Friday, April 15, 2016

Setting root password for a Centos Cloud image

[red@vm-red ~]$ guestfish --rw -a ./CentOS-6-x86_64-GenericCloud-1508.qcow2 

Welcome to guestfish, the libguestfs filesystem interactive shell for
editing virtual machine filesystems.

Type: 'help' for help on commands
      'man' to read the manual
      'quit' to quit the shell

><fs> run
 100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00
><fs> list-filesystems
/dev/sda1: ext4
><fs> mount /dev/sda1 /
><fs> vi /etc/shadow


Note above not tested on Centos7

Tuesday, April 12, 2016

Listing Puppet Classes via REST API

As root on the puppet master execute this script:

[root@ost-puppet-el7-001 manifests]# cat 

PEFQDN=`hostname -f`
curl -X GET -H 'Content-Type: application/json' \
--cert /etc/puppetlabs/puppet/ssl/certs/${PEFQDN}.pem \
--key /etc/puppetlabs/puppet/ssl/private_keys/${PEFQDN}.pem \
--cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem \
https://${PEFQDN}:4433/classifier-api/v1/classes | python -m json.tool

Monday, February 01, 2016

Purging a file from a git repo

Step 1) Clone the repo.

Step 2) Remove the file from current repo.
$ git rm Documentation/master/rc.slack
$ git commit -m 'remove unneeded file'
$ git push origin uno_v0

Step 3) Purge the file

You need to run this command from the toplevel of the working tree.

$ git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch Documentation/master/rc.slack' --prune-empty --tag-name-filter cat -- --all

Note: the output:
WARNING: Ref 'refs/remotes/origin/uno_v0' is unchanged

That is why we needed to `git rm ...` and `git commit ...` and `git push ...` in Step 2.

Step 4) push the changes to the remote

$ git push -f --all origin

This will remove the file from all branches in the remote. However, if other people have cloned this repo and have a local copy of it, they either need to throw away the old copy and re-clone or rebase all of their branches to the new history, otherwise they will bring back the file when they merge/do pull requests.