Blog Spot!


Use `.hidden` to hide directories in Linux without using '.' in front

Added on 14.May.2021
Tags: linux hidden hide config

What is Neutralinojs? -- Desktop application development

Neutralinojs is a lightweight cross-platform desktop application development framework written in C/C++. Similar to Tauri, Neutralino motivates developers to use any frontend framework to build the GUI of the application. It also offers a JavaScript API for native operations similar to Electron.

Let’s write a simple cross-platform application with Neutralino.

Installation

Neutralino doesn’t require any additional libraries for application development. All you need to do is install its CLI on any operating system:

$ npm install -g @neutralinojs/neu

Development

A fresh Neutralino application can be created using the following command:

$ neu create neutralino-app

The above command will create a new project by downloading the prebuilt JavaScript template. It will also download the latest prebuilt Neutralinojs binaries for each operating system. The main view (app/index.html) of this example application has the following content:

<h1 style="padding-top: 45vh; text-align: center;" >Hello Neutralinojs!</h1>

The application can be launched by simply entering the neu run command.

Releasing a Neutralinojs app

We can release our application for others by entering neu build command. The command will make binaries inside the dist directory.

Neutralino doesn’t offer single binary creation support as Tauri does. It will always create a single resource file along with the platform-specific binary.

Added on 13.Apr.2021
Tags: spa desktop app electron lightweight cross-platform

Partclone - partition clone and restore tool.

How to make a backup patriot clone.

You need partclone.[PARTITON] ex. partclone.ntfs | partclone.ext4.. It copies partitions without zero sectors.

partclone.org

Backup partition example:

partclone.ext4 -c -s /dev/sda1 -o dir_with_backups/sda1.img

-c copy mode
-s source (what to backup)
-o output (where to backup)

Restore partition example:

partclone.ext4 -r -o /dev/sda1 -s dir_with_backups/sda1.img

-r recover mode

Add group to existing user

Ex. given by docker group.

If you want to avoid typing sudo whenever you run the docker command, add your username to the docker group:

sudo usermod -aG docker ${USER}

To apply the new group membership, log out of the server and back in, or type the following:

su - ${USER}

You will be prompted to enter your user’s password to continue.

Added on 22.Mar.2021
Tags: linux user group terminal docker permissions access

How to compact VirtualBox's VDI file size?

Answer at superuser

You have to do the following steps:

  1. Run defrag in the guest (Windows only)
  2. Nullify free space:
    With a Linux Guest run this:

    dd if=/dev/zero of=/var/tmp/bigemptyfile bs=4096k ; rm /var/tmp/bigemptyfile

    or

    telinit 1
    mount -o remount,ro /dev/sda1
    zerofree -v /dev/sda1

    With a Windows Guest, download SDelete from Sysinternals and run this:

    sdelete.exe c: -z

    (replace C: with the drive letter of the VDI)

  3. Shutdown the guest VM
  4. Now run VBoxManage's modifymedium command with the --compact option:
    With a Linux Host run this:
    vboxmanage modifymedium --compact /path/to/thedisk.vdi

    With a Windows Host run this:

    VBoxManage.exe modifymedium --compact c:\path\to\thedisk.vdi

    With a Mac Host run this:

    VBoxManage modifymedium --compact /path/to/thedisk.vdi

This reduces the vdi size.

Added on 20.Mar.2021
Tags: how-to image size compact shrink vdi

Search


PHP Libraries


Carbon lib / docs
Idiorm lib / docs
Image Workshop lib / docs
lorenzos/Minixed lib / docs
Parsedown lib / docs
PHP Paginator lib / docs
PHP Redis lib / docs
QrCode lib / docs
Requests lib / docs
Slim lib / docs
Spyc lib / docs
TWIG lib / docs
Upload lib / docs
Validation lib / docs
Zebra Image lib / docs

JS Libraries


AJV lib / docs
BackboneJS lib / docs
Bootstrap Notify lib / docs
C3.js lib / docs
ChartJS lib / docs
FastMD5 lib / docs
HighlightJS lib / docs
jQuery-Storage lib / docs
JS-Cookie lib / docs
Leaflet JS lib / docs
LowDB lib / docs
Marked lib / docs
NeedlyJS lib / docs
ParcelJS lib / docs
RequireJS lib / docs
Swig lib / docs
Toastr lib / docs
Underscore lib / docs
ValidateJS lib / docs
top