Skip to main content
GrN.dk

Main navigation

  • 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

Script

By Greg Nowak, 17 July, 2021

Ubuntu Select Touch Device

Quick note: xinput map-to-output 11 eDP

I have a thinkpad laptop with a touchscreen. When I connect my external screen, then the touch sensor on my laptop screen moves the cursor on the external screen, which is not what I want. I want to keep my touch on my laptop screen.

I followed the instructions here: https://askubuntu.com/questions/51445/how-do-i-calibrate-a-touchscreen-…

First run:

xinput

Output:

Tags

  • Linux
  • screen
  • Script
By Greg Nowak, 9 July, 2021

Handling Multibyte Characters And Strings In R Project

If you encounter this problem when reading csv-files, you might want to try to change the encoding from UTF-8 to latin1. This worked for me when using the tolower function in R.

Pretty nice solution here with gsub (https://stackoverflow.com/questions/38828620/how-to-remove-strange-char…):

Tags

  • Script
  • rscript
  • rstudio
By Greg Nowak, 9 June, 2021

HTTRACK and wayback machine

https://www.httrack.com/

https://gist.github.com/adliwahid/8256ab77cf585a249c215e8f831efbd4

https://superuser.com/questions/532036/trouble-using-wget-or-httrack-to…

Tags

  • Script
  • Web
By Greg Nowak, 25 April, 2021

Run process in the background Linux

To detach a process started in the terminal, you can always add & at the end. For example: npm run evaluation &

Or: nohup bash script.bash &

After that you can run "jobs", to see the running jobs for that user.

Otherwise you can use "htop" or "ps -ef |grep bash" to find all bash jobs for instance.

References:

https://www.dev2qa.com/how-to-run-node-js-server-in-background/

Tags

  • Script
  • Linux
By Greg Nowak, 10 April, 2021

Wget The Non-Interactive Network Downloader Tips and Tricks

Many times you need to download files from the internet, specifically when you want to automate a process or two. Here is where wget comes in handy. This is a standard tool on most Linux systems.

In some cases the server you want to download from does a couple of checks, so your automation fails. You can come by that by adding a couple of switches like:

wget --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" --auth-no-challenge URL_OF_FILE_TO_DOWNLOAD

Tags

  • Linux
  • Script
By Greg Nowak, 17 March, 2021

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-…

Tags

  • Script
By Greg Nowak, 26 February, 2021

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

Tags

  • Script
  • pdf
By Greg Nowak, 25 February, 2021

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…

Tags

  • Linux
  • Script
By Greg Nowak, 12 November, 2020

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…

Tags

  • Linux
  • Script
By Greg Nowak, 28 October, 2020

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

 

Tags

  • Script
  • Linux

Pagination

  • Previous page
  • 2
  • Next page
Script

Review Greg on Google

Greg Nowak Google Reviews

 

  • Portfolio
  • About Greg Nowak
  • Gregs IT and Logistics Optimization
  • Shrink PDF In Linux
  • Running Linux on T450s T495s T14, Thinkpads and Others
RSS feed

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