Category Archives: Uncategorized

Getting correct image size from Eagle PCB

So, having issues getting the correct print size from Eagle PCB on printer.  These steps seem to work for me Create the board in Eagle Turn off all layers except those wanted, ie Top, Pads, Vias File -> Export -> Image Resolution: 600 Select Monochrome Give a file name Click OK Open file in Gimp […]

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> Uncategorized | Leave a comment

Updating code into ESP chip from factory

When getting a new module/board, you need to load code into it.  After the code is created in ESPHome, download it for manual install, then use the following command to load it into the chip esptool.py –chip auto -p /dev/ttyUSB0 write_flash 0x0 ~/snap/chromium/current/Downloads/file.bin  

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> Uncategorized | Leave a comment

Davmail and Office 365 MFA

Needed to set up getting email from Office365 for some DMARC reports through Elastic.  Parsedmarc requires a connection to an IMAP server, so what do you do, then when the account is on Office 365, and you need to use MFA, and app passwords are disabled. So, a program that can do this is DAVmail.  […]

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> Uncategorized | Leave a comment

NGINX Access log and NGINX Filebeat modification

Modifed the filebeat NGINX module, as the access log was extended to include upstream metrics. log_format log_requests ‘$remote_addr – $remote_user [$time_local] “$request” ‘ ‘$status $body_bytes_sent “$http_referer” ‘ ‘”$http_user_agent” ‘ ‘”$host” $SSL_protocol “$SSL_cipher” “$upstream_addr” ‘ ‘rt=$request_time uct=$upstream_connect_time ‘ ‘uht=$upstream_header_time urt=$upstream_response_time’; This is basically the combined log format with the additional metrics of host – server block […]

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> Uncategorized | Leave a comment

What the FLIRC

So, purchased a FLIRC to replace an older MCE USB IR receiver.  Wanted to do this, as I am going to upgrade OS, and didn’t want to muck around with LIRC settings.  Having something that just is a keyboard is a great concept.  Unfortunately, it took longer to get going than what I expected. I […]

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> Uncategorized | Leave a comment

nxlog and Logstash to parse Exchange SMTP Receive logs

Needed to parse the receive logs of the incoming SMTP traffic (Exchange 2010) to find out which devices are relaying mail through the system.  The receive connector was very loose about the devices that could relay traffic through.  So, needed to work out what will happen, so here it is.  The basic flow is this: […]

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> Uncategorized | Leave a comment

Automatic Screen Layout Change on Linux

Added another monitor onto my Linux desktop, and soon got sick on clicking the “Extend to Right” every time I turned the monitor on. So, started to investigate how to enable this automatically, I mean, Windows does this well. So, so googling I went. However, the found a lot of posts talking about using a […]

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> Uncategorized | Leave a comment

Teamviewer quick link

Here is a quick link to download teamviewer support https://download.teamviewer.com/download/TeamViewerQS.exe

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> Uncategorized | Leave a comment

Event Log XML Filtering

Been doing a lot with Elastic Stack and log ingestion. I had a very basic configuration file for NXlog for grabbing security events. However, I was getting lots of eventlogs into ElasticStack that I was not filtering on. So, as always, better to filter at the beginning and not at the end. I used this […]

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> Uncategorized | Leave a comment

Remove security headers from HTTP responses

Been doing some security work around securing HTTPS websites.  Here is a good resource about how to remove Application headers: https://veggiespam.com/headers/#x-powered-by-aspnet

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> Uncategorized | Leave a comment