Create an __init__.py file in each directory that will be in the tree of your import. For example, if you have the following directory structure… /opt/software/com/yourcompany/yourdivision/yourfile.py …you would issue the following commands: export PYTHONPATH=$PYTHONPATH:/opt/software touch /opt/software/com/__init__.py touch /opt/software/com/yourcompany/__init__.py touch /opt/software/com/yourcompany/yourdivision/__init__.py…
Getting started with github
I had a prebuilt Node.js application. It is nothing fancy, but I wanted to create a repository for it. This is simply a screenshot of the commands used to do this. -bash-4.1$ cd arch/ -bash-4.1$ ls node_modules package-lock.json server.js -bash-4.1$…
How to map host IP, gateway, and broadcast address to troubleshoot
Get the following: IP address of host IP address of gateway (usually router or firewall) get subnet mask on host Get network CIDR (can be calculated) For example, assume we have the following output of ifconfig… [root@CMHLDORLGRD01 ~]# ifconfig eth0…
Poor man’s way to calculate query time from app server
I wanted to understand where an app was spending time. I couldn’t get the granularity I needed from New Relic, and SSMS aggregated the data so I couldn’t see it. I came up with what is below, admittedly, somewhat obtuse,…
Windows – who has a file open?
Use resmon.exe as shown below…
Good java decompiler
I had a need to find all classes that exposed a REST based interface. I couldn’t figure out how to do this with jd-gui, so this will be my new go-to for decompiling… https://bitbucket.org/mstrobel/procyon/wiki/Java%20Decompiler $ for f in $(find .…