Import Site into WordPress – “WP All Import”

Change Footer
/wp-content/themes/twentyseventeen/template-parts/footer/site-info.php

Might need to change Settings, Permalinks, and use category and tag, if the category and tag links do not wori.

Copyright © 2007-17 | PeterJohnRoss.com | Designed by Maurice Ruckman

WP All Import - Import all of the content from another site
By Soflyy

Custom Meta Widget - Use this to customize the Meta Widget
By bitacre

Disable Embeds - Disble Converting Embedded Links
By Pascal Birchler

WP All Import

Refer: https://wordpress.org/plugins/wp-all-import
Refer: https://www.wpallimport.com/documentation/getting-started/importing-an-xml-or-csv-file

Adding Adsense
Refer: https://www.tipsandtricks-hq.com/wordpress-plugin-for-simple-google-adsense-insertion-170

Possible XML Used for an Import

<entry>
<title>Blog Post by Date</title>
<description>This is something that I want to say</description>
<published>2016-01-02</published>
<category>blog|articles|info</category>
</entry>

How to get IP address to point to Akamai Staging

Quick Utlity Using Docker

Refer: https://github.com/markSmurphy/akamai-staging

docker run --rm -it \
  node:18-alpine \
  sh -lc "\
    npm install -g akamai-staging && \
    staging www.hollandamerica.com \
  "

Online Tool

https://www.digwebinterface.com/?hostnames=api.barclays.hollandamerica.com.edgekey-staging.net%0D%0Adev-api.barclays.hollandamerica.com.edgekey-staging.net.&type=&ns=resolver&useresolver=9.9.9.10&nameservers=

Overview of Steps

Step 1: dig book.hollandamerica.com | grep -i edgekey
Step 2: take the edgekey value and append -staging to it and dig it again
Step 3: dig www.hollandamerica.com.edgekey-staging.net
Step 4: Use the answer section and grab the IP address, use in your hosts file
Step 5: Turn on modify headers with Akamai Pragma and look for X-Akamai-Staging

Doing the work

$ dig book.hollandamerica.com | grep -i edgekey
book.hollandamerica.com. 29706 IN CNAME book.hollandamerica.com.edgekey.net.
book.hollandamerica.com.edgekey.net. 6 IN CNAME e4069.x.akamaiedge.net.

$ dig book.hollandamerica.com.edgekey-staging.net
;; ANSWER SECTION:
book.hollandamerica.com.edgekey-staging.net. 300 IN CNAME e4069.x.akamaiedge-staging.net.
e4069.x.akamaiedge-staging.net. 20 IN A 23.34.148.111

This works as of 2017-09-22
/etc/hosts
72.246.55.134 book.hollandamerica.com

You shoud now see this in the header response:
X-Akamai-Staging ESSL

Using Fiddler to set Akamai Headers
Refer: https://community.akamai.com/blogs/EmilioMurillo/2016/04/21/troubleshooting-with-fiddler

Simple test page on book.hollandamerica.com to make sure you can see Akamai Stage
https://book.hollandamerica.com/utilities/SessionDump.jsp

Install Python on GoDaddy.com Account

Use the following steps to setup Python on your GoDaddy account

SSH onto your account, and you'll need a couple of starter scripts

virtual-python-py.txt (rename)
ez_setup-py.txt (rename)

Bonus - Send Email with Python
send-email-py.txt (rename)

Reference Article
Installing Python Libraries on GoDaddy Shared Hosting : Create Awesome

Refer: http://blog.cosmocatalano.com/installing-python-libraries-on-godaddy-shared-hosting/

$ python -V
# cd ~
$ /usr/local/bin/python2.7 virtual-python.py
$ ~/bin/python ez_setup.py -U setuptools
$ ~/bin/python ~/lib/python2.7/site-packages/easy_install.py beautifulsoup4
$ ~/bin/python ~/lib/python2.7/site-packages/easy_install.py requests

Now you will execute your python scripts like this:

$ ~/bin/python your-script-here.py

 

Digital Ocean Droplets

From: "Peters, Lenny (HAL)"
Subject: Continuous Integration Resources... Cross-Team Demo follow-up
Date: September 12, 2017 at 1:20:02 PM PDT

For less than a cup of coffee! The 5 dollar CI/CD flow for continuous intergration!

Tutorial: https://code.tutsplus.com/tutorials/setting-up-continuous-integration-continuous-deployment-with-jenkins--cms-21511
Repo: https://github.com/Loonz206/hello-jenkins
Cloud Servers: https://www.digitalocean.com/ (one for Jenkins, one for application hosting etc.)

Other resources:
https://jenkins.io/
https://eslint.org/
https://www.npmjs.com/package/npm-release

Next Steps:
Docker containerization with Jenkins workflow (hint hint, Maurice… HACKATHON)
Docker Image/Repo cleanup tasks
Tagging via npm-release

Obviously, the demo was related to UI code but it’s fundamentals can be extended to Services code, fortify scans, analytics and several other integrations.
This was a fun demo to show and really grateful at these demos cross-team. Thank you Allison for putting this on, supporting this.

Ubuntu Command Line Short Cuts (CLI)

Some useful line editing key bindings provided by the Readline library:

  • Ctrl-A: go to the beginning of line
  • Ctrl-E: go to the end of line
  • Alt-B: skip one word backward
  • Alt-F: skip one word forward
  • Ctrl-U: delete to the beginning of line
  • Ctrl-K: delete to the end of line
  • Alt-D: delete to the end of word

Grep only certain files

$ grep -ir --include pom.xml "<java.version>"

Refer: https://stackoverflow.com/questions/12516937/grep-but-only-certain-file-extensions

$ grep -r -i --include \*.h --include \*.cpp CP_Image ~/path[12345] | mailx -s GREP email@domain.com