Artillery Sidewinder X1 3D Printer

I was looking for a good 3D printer in terms of quality and price and I found this Artillery Sidewinder X1 3D Printer. Looks like to be new (year 2020) and very popular among 3D printer geeks, so here is an image of the printer: You will need also these items: Creality 3D® PLA Filament […]

Share Buttons for Facebook, Twitter and LinkedIn

I was looking for PNG images of Facebook, Twitter and LinkedIn share buttons to use with A HREF links (I didn’t want to use Javascript or third-parties code). Here you can find PNG images for Facebook, Twitter, LinkedIn share buttons. To download them just right-click on the image and select “Save Image As…” Feel free […]

Count and sort IP addresses in Nginx access logs

You can count and sort IP addresses in Nginx access logs: cat access.log | awk ‘{print $1}’ | sort | uniq -c | sort -nrcat access.log | awk ‘{print $1}’ | sort | uniq -c | sort -nr Below there is an example output: 612 216.X.X.X 251 54.X.X.X 238 18.X.X.X 147 178.X.X.X 138 106.X.X.X 78 […]

User-Agent Strings of Perl, Wget, cURL, Python, Java

User-agent strings of Perl, Wget, cURL, Python, Java: Apache-HttpClient/4.5.9 (Java/1.8.0_222) Wget/1.15 (linux-gnu) Python-urllib/2.7 curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.44 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 libwww-perl/5.76Apache-HttpClient/4.5.9 (Java/1.8.0_222) Wget/1.15 (linux-gnu) Python-urllib/2.7 curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.44 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 libwww-perl/5.76

Download Latest Raspbian ISO for Raspberry Pi

Here you can download the latest Raspbian ISO files: https://www.raspberrypi.org/downloads/raspbian/ You will find following ISOs: Raspbian Buster with desktop and recommended software Raspbian Buster with desktop Raspbian Buster Lite Then use Win32Disk Imager to write the ISO in the SD card: https://sourceforge.net/projects/win32diskimager/

How to Install Pi-Hole on Raspbian for Raspberry Pi

First you need to install Raspbian on your Raspberry: Download Raspbian for Raspberry Pi Then login on your Raspberry and type these commands to update the OS: sudo apt-get update sudo apt-get dist-upgradesudo apt-get update sudo apt-get dist-upgrade To start the assisted Pi-Hole installation, type these commands: wget -O pihole-install.sh https://install.pi-hole.net sudo bash pihole-install.sh sudo […]

3 Cards in a Row with Bootstrap 4.4

Example of 3 cards in a row with Bootstrap 4.4: <div class="row py-3"> <div class="col-sm-4 py-3"> <div class="card"> <div class="card-body"> <h5 class="card-title">Example Title 1</h5> <p class="card-text">With supporting text below as a natural lead-in to additional content.</p> <a href="#" class="btn btn-primary">Go somewhere</a> </div> </div> </div> <div class="col-sm-4 py-3"> <div class="card"> <div class="card-body"> <h5 class="card-title">Example Title 2</h5> […]

Debug 502 Errors in Google Cloud Load Balancer

If your Google Load Balancer shows 502 errors read below: First go to Logs Viewer: https://console.cloud.google.com/logs/viewer Then in the search filter editbox enter: httpRequest.status:502httpRequest.status:502 This will search all 502 errors in the selected Load Balancer. Click on the specific line with the 502 error and expand “jsonPayload”: jsonPayload: { @type: "type.googleapis.com/google.cloud.loadbalancing.type.LoadBalancerLogEntry" statusDetails: "backend_timeout" }jsonPayload: { […]

Python if-then-else in one line example

You can put if-then-else in one line in Python like this: value_when_true if condition else value_when_falsevalue_when_true if condition else value_when_false Here is a quick example: ‘Yes’ if color == ‘Blue’ else ‘No”Yes’ if color == ‘Blue’ else ‘No’ Here is an example using assignment and contrast: color = ‘Blue’ isBlue = True if color == […]