Getting Ubuntu to Update Behind Firewall

This worked

Sample Error:

Err:70 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages 503 Service Unavailable [IP: 91.189.88.161 80]

Refer: https://askubuntu.com/questions/26528/error-503-service-unavailable-when-using-apt-get-update-behind-proxy

$ sudo su -

$ echo 'Acquire { http::User-Agent "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"; };' >> /etc/apt/apt.conf

You could also just update the apt.conf file in place instead of using the echo command.

update-ubuntu-user-agent.txt

In case you cannot update from a repository, you can select the best mirror possible.

Ideas to try:

  • Get keys manually - http://redcrackle.com/blog/how-add-ubuntu-apt-get-key-behind-firewall
  • Adding a repository to use port 80 - https://gist.github.com/maciakl/4531580

VMWare Download Page

They make it quite difficult to find the non-paid version of VMWare Workstation for download.

Refer: https://my.vmware.com/en/web/vmware/free#desktop_end_user_computing/vmware_workstation_player/12_0

Docker Oracle Client

$ docker pull store/oracle/database-instantclient:12.2.0.1

Refer: https://store.docker.com/profiles/mruckman/content/sub-e067a44b-9ead-41c7-b597-de06ee2ef454

About this Docker Image

This Docker image contains the Oracle Instant Client 'Basic', 'SDK' and 'SQL*Plus' packages. It can be extended to run OCI, OCCI, and JDBC applications. It can also be extended to build and run scripting language drivers that use OCI such as Python's cx_Oracle, Node.js's node-oracledb, PHP's OCI8, and Ruby's ruby-oci8.

The SQL*Plus command-line query tool is also included, allowing quick ad-hoc SQL and PL/SQL execution.

About Oracle Instant Client

Oracle Instant Client is a repackaging of Oracle Database libraries, tools and header files usable to create and run applications that connect to a remote (or local) Oracle Database.

Usage

You can run a container interactively to execute ad-hoc SQL and PL/SQL statements in SQL*Plus:

docker run -ti --rm store/oracle/database-instantclient:12.2.0.1 sqlplus hr/welcome@example.com/pdborcl

Adding Oracle Database Drivers

To extend the image with optional Oracle Database drivers, follow your desired driver installation steps. The Instant Client libraries are in /usr/lib/oracle/12.2/client64/lib and the Instant Client headers are in /usr/include/oracle/12.2/client64/.

The Instant Client libraries are in the default library search path.

Create Swagger from API Utility

Apigee Utility to create an Open API Spec directly from a URL
http://specgen.apistudio.io/open-api/53d49866-433b-476e-bf19-96d312b92f36/run-api

Or via npm: https://www.npmjs.com/package/api2swagger

Nginx Mechanic

https://github.com/punkave/mechanic

Command-line tool to manage nginx-powered proxies for node apps. Static file delivery, load balancing, HTTPS, all that jazz with a clean interface.

Headless Chrome

Overview Refer: https://developers.google.com/web/updates/2017/04/headless-chrome

With Python: https://duo.com/blog/driving-headless-chrome-with-python

Puppeteer: https://github.com/GoogleChrome/puppeteer

Example Automation: https://tutorialzine.com/2017/08/automating-google-chrome-with-node-js

Getting Started: https://medium.com/@e_mad_ehsan/getting-started-with-puppeteer-and-chrome-headless-for-web-scrapping-6bf5979dee3e

Docker: Refer: https://hub.docker.com/r/justinribeiro/chrome-headless/

NodeJS: Refer: https://www.npmjs.com/package/simple-headless-chrome

$ chromium-browser --headless --disable-gpu --dump-dom https://www.chromestatus.com/