Skip to main content
GrN.dk

Main navigation

  • Articles
  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Breadcrumb

  1. Home

Articles

Web Browser Automation

There are many ways to autamte tidious browser tasks. You can use a plugin for your favorite browser, python, R-Project/R-Studio or another free or proprietary tool. I love R, so my goto place will be Selenium with R called RSelenium.

Links

https://cran.r-project.org/web/packages/RSelenium/RSelenium.pdf

https://cran.r-project.org/web/packages/RSelenium/vignettes/basics.html

Git Tips And Tricks

When you want to clone into a non empty folder or directory (https://stackoverflow.com/questions/9864728/how-to-get-git-to-clone-int…): 
git init .
git remote add -t \* -f origin [repository-URL]
git checkout master

 

SoapUI

SoapUI is a smart and advanced open source tool to test APIs.

Notes and Resources

Generate Sample XML using a WSDL in SOAP UI: https://www.youtube.com/watch?v=btS84mlJeNo

https://stackoverflow.com/questions/12222607/how-to-do-a-soap-wsdl-web-…

R XML2

R-Project can be used to parse, build and validate XML files. The xml2 R library is the latest xml parsing library and should be used instead of the outdated xml library.

Install dev version from github:

# install.packages("devtools")
devtools::install_github("r-lib/xml2")

Links

Manual: https://rdrr.io/cran/xml2/man/

PDF to Word Conversion

There are many tools and a lot of software out there to convert PDFs to Word.

Online tools like:

GrN.dk

convertio.co
altoconvertpdftoword.com

Get Current Working Directory In Any Window Linux Bash

readlink -e /proc/$(xprop -id $(xdotool getactivewindow) _NET_WM_PID | awk '{print $3}')/cwd

Inspired by: https://superuser.com/questions/1116636/open-a-terminal-from-any-direct…

Adjust power management settings for Ryzen Processors

This might be useful when your machine shuts down unexpectadly under heavy loads: https://github.com/FlyGoat/RyzenAdj

For me it only happens in Windows when the batery is charging too. I think charging thresholds are a must. In linux we have tlp: https://linrunner.de/tlp/ and https://wiki.archlinux.org/index.php/TLP and https://github.com/linrunner/TLP :-D

Rewrite index.html and index.php to root

#Rewrite index.html pages to the root domain
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} ^.*/index\.html
RewriteRule ^(.*)index.html$ /$1 [R=301,L]
</IfModule>

#Rewrite index.php to root
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]
</IfModule>

Trello Tips and Tricks

Recovering overwritten description (https://help.trello.com/article/783-recovering-the-description-of-a-car…): 

https://trello.com/1/cards/[card ID]/actions?filter=updateCard:desc (replace [card ID]).

 

Info of entire board:

trello.com/boards/BOARD-ID/actions?filter=updateCard:desc

MySQL Tips And Tricks

If you encounter errors when importing or creating tables in MySQL with default date values as zero, then you might want to change your 

Check your setting: show variables like 'sql_mode' ;

Set new settings without "NO_ZERO_IN_DATE,NO_ZERO_DATE":
set global sql_mode = 'ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';

OLCPT installation on Windows

Install latest version of R-studio

Install R-tools 35: https://cran.r-project.org/bin/windows/Rtools/Rtools35.exe

Install R 3.6.3: https://cran.r-project.org/bin/windows/base/old/3.6.3/

Install JRE 8 from https://www.java.com/en/download/ and add it to JAVA_HOME system variable name. For example system variable value: C:\Program Files\Java\jre1.8.0_281

Enable SMART on Old External Seagate SSD Ubuntu 20.10

I have an old external seagate ssd 2TB for backup called "BUP Slim BL". It was a challenge to enable the SMART capability on Ubuntu 20.10.

You might give this a go: sudo smartctl -d sat -T permissive --smart=on /dev/sda1

If that does not work, you might need:

echo options usb-storage quirks=$(lsusb | awk '/Seagate/ {print $6}'):u | sudo tee -a /etc/modprobe.d/ignore_uas.conf
sudo update-initramfs -u

Reinstalling and Updating All Current R-Packages To New Version of R

In bash: R -e 'update.packages(checkBuilt = TRUE, ask = FALSE)'

Source: https://community.rstudio.com/t/reinstalling-packages-on-new-version-of…

Webshop systems

As a drupal fanboy I like Drupal Commerce, but there are many others out there.

Drupal Commerce

https://github.com/drupalcommerce/demo-project

Default theme: https://www.drupal.org/project/belgrade

Read more about how to install Drupal Commerce.

Prestashop

Woocommerce

Wordpress commerce.

Magento

Vegan Power Game Privacy Policy

Only High Score is saved on the mobile phone and is not shared with anyone.

USB headphone detection reintroduced in Ubuntu 20.10

Fix with: pkill -U $USER pulseaudio

(https://bugs.launchpad.net/ubuntu/+source/alsa-lib/+bug/1865499)

Tonsil Fix

Notes to help others with tonsil stones and pain in the tonsils.

  • A lot of sleep and rest
  • Vegetable soup
  • Ginger -> ginger tea etc
  • Garlic
  • Drink lime water
  • Gurgle saltwater multiple times per day
Tidy Up composer.json

Are you looking for an automatic tool to tidy up your composer.json? Look no further with normalize: https://localheinz.com/blog/2018/01/15/normalizing-composer.json/

Linux Show Final URL Programatically

curl tags: https://stackoverflow.com/questions/3074288/get-final-url-after-curl-is…

How to solve CloudFlare protection: https://stackoverflow.com/questions/18500088/curl-load-a-site-with-clou…

Strip Metadata

PDF

https://blog.joshlemon.com.au/protecting-your-pdf-files-and-metadata/

https://gist.github.com/hubgit/6078384

exiftool -all:all= $FILE ; qpdf --linearize $FILE output.pdf

Images

imagemagick: mogrify -strip NAME_OF_FILE

 

Test with: exiftool -all NAME_OF_FILE

 

Pagination

  • First page
  • Previous page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • …
  • Next page
  • Last page

Review Greg on Google

Greg Nowak Google Reviews

 

  • Cloudflare Tunnel observability is better in 2026, which makes undocumented tunnel sprawl harder to ignore
  • Cloudflare Cache Response Rules Made Origin Header Debt a Paid Cleanup Job
  • Cloudflare Service Key Deprecation Turns Old DNS and SSL Scripts Into a 2026 Cleanup Project
  • Unsupported Theme Contracts Made WordPress 6.9.3 a Paid Troubleshooting Story
  • WordPress Playground Made Faster Reproduction Easier, but Plugin and Hosting Bugs Are Still Paid Troubleshooting
RSS feed

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.