git commit -m "gay"

All of the blunderous commit messages from John.

2020 Commits

LogicMonitorGroovy

Updated the device discovery to only include customer routers from 2 MSP management groups in NCM.

12/04/2020 18:41:12

LogicMonitorPwsh

Changed the router discover for a customer to only include the routers in one of the two MSP management groups configured in NCM.

12/04/2020 18:34:37

LogicMonitorGroovy

Added individual counters to track the number of open tickets by block-of-hours or prepaid support along with the total number of open tickets.

12/03/2020 16:10:36

O365MalwareAlerts

Added checks to account for when there are no results for either flagged malware or phishing. This is useful at the start of the month given that the check is month-to-date for both scripts. It avoids graphs showing as having no data and breaking within the Dashboard view.

12/02/2020 20:13:10

LogicMonitorGroovy

Wrapped the output of the variables to ensure proper expansion.

12/02/2020 15:01:45

LogicMonitorGroovy

Modified the script to account for time different billable types between support contract and block of hours. Metrics on monthly tickets, total time, and average time per ticket are calculated for each billable type independently. The script will also now determine the total number of open tickets across both billable types.

12/01/2020 22:09:12

LogicMonitorGroovy

Merge pull request #4 from jfabry-noc/Bob_test Added ERS Switch OID active discovery.

11/30/2020 18:39:46

CPPushAPI

Fixed a typo on the dumps method for json when we hit a subscription expiration notice.

11/30/2020 13:57:19

LogicMonitorGroovy

Re-added a code block that was accidentally removed in 5291837 to check the routers for current or outdated firmware.

11/19/2020 17:08:01

LogicMonitorGroovy

Updated the discovery scripts to omit routers for a particular customer which were not members of particular groups.

11/19/2020 16:41:59

LogicMonitorPwsh

Modified the router discovery to filter out devices for a customer if they do not match particular group membership.

11/19/2020 16:15:54

LogicMonitorGroovy

Modified the parsing to make a per-device query for additional metrics like the memory and CPU utilization. These are only returned when checking for a specific device, not when querying for all of the devices, making the additional queries necessary outside of discovery.

11/19/2020 15:17:32

GitCommit

Fixed a bug I introduced in 7d7b730 where I changed the commit message to be grammatically correct. This broke my filter for those messages from posting to the site and creating an endless loop of posts. The filter should now work again for the new commit message, and the errant postings have been cleaned up.

11/18/2020 23:04:48

CPPushAPI

Added a new .gitignore entry for an external Python file for the shared secret used to authenticate communication. Updated the webhook listener to now calculate the hash of the response body with the shared secret as SHA256 in order to validate that the message came from a legitimate server. This is used in conjunction with firewalling access to just the documented IPs to the Flask server.

11/18/2020 22:47:46

CPPushAPI

Moved the writing of the JSON file to a function and added error checking to it.

11/16/2020 18:41:56

GitCommit

Changed the phrasing of the commit message from commits to commit(s) so that it doesn't look quite as gross by being grammatically incorrect when only a single commit is included.

11/16/2020 16:19:40

CPPushAPI

Updated the check for a router in the alert to compare the key to None rather than if the key exist. Added a conditional block to handle expiring subscription alerts.

11/16/2020 15:39:00

CPPushAPI

Updated the listener to grab a header provided by the push service. The header is a hash of the secret key in the push policy and the body of the message so that pushed data can be authenticated.

11/13/2020 22:14:38

CPPushAPI

Modified the listener to remove references from the API call to an undefined function used in a previous script. Alerts featuring a router query the router's friendly name and write a local JSON file for ingestion into LM.

11/13/2020 15:47:09

GitCommit

Fixed a semi-duplicate entry in the HTML because I managed to create a merge conflict for myself by forgetting to Already up to date. before committing in a copy of the repo that I hadn't used for a while.

11/13/2020 00:14:52

jfabry-noc.github.io

Moved the music link back to my Apple Music profile.

11/12/2020 22:53:06

CPPushAPI

Removed __pycache__ since that was not meant to be committed originally. Modified the push_configs file provided from CP to allow me to quickly re-enable the push config while I'm testing the handling of the data. Updated the listener to start parsing out the data provided from the hook and create local files for LM.

11/12/2020 21:09:24

CPPushAPI

Included the config push script supplied by CP. Updated .gitignore to not include a config_constants file with connection-specific details to import.

11/12/2020 18:13:07

Dashboard

Added an indicator to the reboot prompt to let the user know they need to enter Y or N. The code ignores the case.

11/12/2020 16:44:50

Dashboard

Updated the periodic displays of what stage the script is at to clearly delineate them from the command outputs. We do not want to suppress the command output, so this just makes it easier to keep tabs on what is executing without excessive hunting.

11/10/2020 20:10:06

Dashboard

Added a conditional to the start of the script to check for the uid. If it isn't 0, which would mean the script was executed with sudo, the user is notified and the script exits. Several sections were updated to include -y on apt commands that were previously missing. The default php.ini setting includes the " =" after the ";date.timezone" listing. The sed commands were updated to reflect this.

11/10/2020 17:50:12

LogicMonitorGroovy

Merge pull request #3 from jfabry-noc/Bob_test Bob test

11/10/2020 16:43:29

Dashboard

Added a check for the current PHP version. If it's 7.2, the script will add the PPAs and install everything. If it's already 7.4, the script will start straight at the configuration stage.

11/10/2020 16:03:14

Dashboard

Modified the parts of the script calling another user account so that all commands can execute under the new user before gracefully exiting back to the original shell without user intervention.

11/09/2020 22:57:51

Dashboard

Added the option to specify 'DEV' as a second parameter. If provided, development mode will be enabled. In this mode, the user will be prompted after each stage of the script if they would like to continue or kill the operation. Prevents the script from running amuck when testing it if, for example, the last command executes successfully but does not yield the expected result.

11/09/2020 21:44:53

Dashboard

Added sed commands for modifying the php.ini files where a timezone update is necessary. Also added a sed command to escape the backslash in the timezone name so that it can be re-used in another sed command later without escaping.

11/09/2020 19:38:21

Dashboard

Added additional installations for the full suite of dependencies. Added a CLI parameter where the timezone must be specified as one value out of an array. Improperly specifying a timezone will result in the options being printed and the script halting. Added a prompt to the very end of the script to reboot the entire server.

11/09/2020 18:57:18

Dashboard

Updated the .gitignore file to remove unneeded Python references but to avoid capturing a test script and the .swp files from Vim.

11/09/2020 16:11:28

Dashboard

Added a base shell script for updating the PHP components from 7.2 to 7.4

11/09/2020 16:11:01

CPPushAPI

Added a different sample route to the listener.

11/09/2020 14:05:55

GitCommit

Additional HTML fixes for the tag closing bug.

11/06/2020 16:36:14

GitCommit

Merge branch 'main' of https://github.com/jfabry-noc/GitCommit into main

11/06/2020 16:34:53

GitCommit

Fixed a bug where the paragraph tags for the commit comment were being closed by an h3 tag. I also updated the current entries in the HTML that had been written in this way.

11/06/2020 16:34:31

O365MalwareAlerts

Redid the phishing code to move from BatchScript to just script and handle instancing through Active Discovery in LogicMonitor.

11/06/2020 16:25:23

O365MalwareAlerts

Modified the script to print only the prefix of the email address to simplify the BatchScript creation process within LogicMonitor.

11/05/2020 20:32:25

O365MalwareAlerts

Created a script for a LogicMonitor DataSource to process the phishing results from the local collector's filesystem as a BatchScript. Also updated the .gitignore file to avoid commiting the sample result .csv file.

11/05/2020 20:02:59

O365MalwareAlerts

Added a check for an existing result file and removing it prior to starting anything else.

11/05/2020 16:27:23

O365MalwareAlerts

Shifted the script to be designed for running as a Scheduled Task or cron job rather than by LogicMonitor directly due to the authentication requirements. Added logging.

11/05/2020 16:11:27

O365MalwareAlerts

Created a new script file for querying the O365 quarantine for messages filtered there via transport rule. The script will validate that the appropriate transport rule caught the message (not filterable in the original call) and then report back how many users have received phishing messages blocked this way. Handles the metrics on a month-to-date basis.

11/04/2020 20:20:44

CPPushAPI

Added the baseline files that were created for generic webhook listener testing. Also included the sample nginx.conf file for Gunicorn as the Flask + Nginx serving combo.

11/04/2020 15:03:08

CPPushAPI

Initial commit

11/04/2020 12:55:47

GitCommit

Removed redundant logging when querying each repo for commits. Modified the HTML generation to stop adding an extra newline to the end of the HTML file each time. Removed a repeated line in the HTML file because I forgot how daylight saving time works.

11/03/2020 13:07:07

GitCommit

Modified the script to allow for commit messages on the GitCommit repo itself if they aren't the ones automatically generated for the sake of CI/CD to Netlify.

11/02/2020 22:55:35

GitCommit

Modified to remove a commit that will become duplicate due to my testing. Again because of the fact that I can't do block comments, apparently.

11/02/2020 21:35:59

GitCommit

Fixed yet another bug introduced by my inability to do block comments.

11/02/2020 21:33:41

GitCommit

Addressed a bug where I was erroneously doing an extra comparison for the time. This was code from prior to when the filter was applied to the URL. Any returned commits should be considered valid if my account is the author.

11/02/2020 21:31:00

LogicMonitorGroovy

Updated the Desk metrics to temporarily include the customer's internal blackhole alias.

11/02/2020 21:17:56

LogicMonitorGroovy

Modified the EventSource and corresponding URL filter to account for the job running every 15 minutes rather than every 30 minutes. The time variable is in milliseconds.

11/02/2020 20:52:56

jfabry-noc.github.io

Added a new link to gitcommit.gay and updated the CSS to include the alternate GitHub icon for it.

10/31/2020 18:11:00

CPSpeedTests

Moved the default timeframe from 60 seconds to a 20 second duration.

10/30/2020 20:58:51

OxidizedBackup

Created processing for each child directory in the SharePoint root, correlating it with the hostname of the Dashboard. If there is a match, parse together the new SharePoint URL for uploading the backup tarball and clearing out old tarballs.

10/29/2020 20:40:38

OxidizedBackup

Added the ability to query the MS Graph for the contents of a SharePoint directory.

10/29/2020 18:48:45

OxidizedBackup

Added skeleton code for handling a connection to the MS Graph and checking the validity of a Graph token. Also added to the repository the Python MSAL package and the dependencies for it.

10/29/2020 17:41:13

LogicMonitorPwsh

Modified the hourly collection script to execute every 15 minutes.

10/29/2020 17:34:50