bash script to resize multiple files
This is a small bash script to decrease resolution of JPG photo or other image files. It searches all
.JPGfiles recursively from the current directory
.and the converts them to
1200pixel wide. It uses ImageMagick’s convert tool, so you will need
imagemagickpackage to execute this command. By changing the search pattern and the expected resolution you can customize it to you needs…
mosquitto_sub with timestamp
mosquitto_sub is an MQTT version 3.1 client for subscribing to topics.
Value was either too large or too small for a UINT32
Visual Studio 2015 with GIT source control plugin shows
Value was either too large or too small for a UINT32error message, when unsaved items are in the commit list. Click to
Save Alland try to commit again.
Vim automatically set paste mode
Vim automatically tires to indent pasted text when running inside a terminal. To avoid this ‘paste’ mode can be set and unset before and after the paste operation, by the following commands:
Automatic backup with tar
The Internet is full with backup scripts, using tar and create a backup file, but most of them just creates the archive and that’s all. I also wanted to keep only a limited number of archives in my backup folder. And also the ability to handle archives from the file system and from other sources such as database backups.
Angular service vs provider vs factory
The difference between angular service, factory and provider when declaring as an injectable argument.
I am using Linux for several years, but just started with Screen. From my personal view, this is a magical tool to:
jquery: Checking if an element is hidden
Checking if an element is hidden:
Delete a Git branch both locally and remotely
To delete a branch locally:
Audit log with entity framework
The EntytyFramework’s context has the list of the created, changed, deleted entities, so it is not so hard to create an audit log using these values.
PREV 1 of 2 NEXT