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, 10 June, 2020

Recently Installed Packages Ubuntu

Try this from the terminal: grep " install " /var/log/dpkg.log

Tags

  • Script
By Greg Nowak, 4 June, 2020

Converting PNG to SVG

In a lot of cases it is useful to convert bitmaps like jpg, png to vector graphics like SVG or AI.

Inkscape -> Path -> Trace Bitmap

BASH

convert file.png file.pnm
potrace file.pnm -s -o file.svg

Tags

  • bash
  • Script
  • graphics
By Greg Nowak, 4 April, 2020

Find and replace string in files recursively

This is the best option I have found so far: find . -type f -exec sed -i 's/foo/bar/g' {} +
foo is replaced with bar.

Source: https://linuxize.com/post/how-to-use-sed-to-find-and-replace-string-in-…

Also quite handy to be able to search and replace filenames.

Tags

  • Script
By Greg Nowak, 30 May, 2019

Composer tips and tricks

Composer without root

Run this in ~/composer: curl -sS https://getcomposer.org/installer | php

Put this in .bashrc: alias composer="php ~/composer/composer.phar"

Install Drupal 8 With Composer In Custom Web Folder

composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --no-interaction --no-install
Adjust web folder in composer.json file and then run "composer install".

Check available versions of a package

composer show package_name --available

Tags

  • Linux
  • Script
  • Web
By Greg Nowak, 20 November, 2017

Upgrading PHP 5 to PHP 7

A couple of notes on upgrading from PHP 5 to PHP 7.

Firstly you can try to copy your site or code to a server with PHP 7 and see how your PHP 5 application runs and then move forward. You can also try to use a tool to help you with finding code that needs to be upgraded and reading the documentation. See the links below.

Tags

  • Script
By Greg Nowak, 9 November, 2017

Fix mailR java issues

You might have a couple of issues with mailR when running on a server.

When installing or after installing the r package: rJava you might encounter the following: libjvm.so: cannot open shared object file: No such file or directory

I fixed this on a ubuntu server with this command: sudo R CMD javareconf
 

Tags

  • Linux
  • Script
  • r-project
By Greg Nowak, 17 August, 2015

Append Multiple MOV Files and Edit Video

Appending MOV files efficiently can be a challenge. The only "safe" and easy way without destroying the video or the sound is done by using Avidemux which is a free video editing tool for Linux.

Here is my modified image-convert bash script used for the appending all .MOV files in a folder and have the full video ready for editing in the Avidemux graphical user interface (GUI).

Tags

  • Linux
  • Video
  • Script

Pagination

  • Previous page
  • 3
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.