Skip to content

Instantly share code, notes, and snippets.

Working from home

Marius Palade yoyosan

Working from home
View GitHub Profile
yoyosan /
Created Dec 11, 2020
MariaDB 10.2 upgrade on CentOS 7

A MySQL or MariaDB server package (MariaDB-server-10.1.48-1.el7.centos.x86_64) is installed.

Upgrading directly from MySQL 10.1 to MariaDB 10.2 may not be safe in all cases. A manual dump and restore using mysqldump is recommended. It is important to review the MariaDB manual's Upgrading section for version-specific incompatibilities.

A manual upgrade is required.

  • Ensure that you have a complete, working backup of your data and my.cnf
yoyosan /
Created Jul 31, 2020
Enabling swap on Scaleway dev vps

It seems all new scaleway servers are created without swap. For people, like me who want to use some, there is the easy way (ex. is for 8Go) :

# dd if=/dev/zero of=/swap bs=1024 count=8388608
# chmod 0600 /swap
# mkswap /swap
# swapon /swap
# free -h
yoyosan / quasar-grid.sass
Last active Mar 15, 2021
Grid classes for Quasar framework - inspired from Tailwindcss
View quasar-grid.sass
display: grid
// Grid template columns
grid-template-columns: repeat(1, minmax(0, 1fr))
grid-template-columns: repeat(2, minmax(0, 1fr))
yoyosan /
Last active Jul 28, 2020
File upload example for Quasar framework
// Laravel 7 example

namespace App\Http\Controllers;

class Contact extends Controller
    // ...

yoyosan /
Last active Mar 26, 2021
How to clean kdetmpdevfsi or .ICEd-unix suspicious files/folders or processes


I've recently been hacked on my VPS(using Centos 7.6 and CWP up to date) and the following files/folders were created:

  • /tmp/.ICEd-unix
  • /var/tmp/.ICEd-unix
  • /tmp/kdevtmpfsi
  • /var/tmp/kinsing

The following processes were running and using 100% CPU and Memory:

yoyosan /
Last active Nov 10, 2019
Reverting from Open WRT to OEM firmware for Zyxel Armor Z2 NBG6817


I'm using Manjaro but this is valid for Arch.

Install atftp and net-tools. I'm using trizen and ohmyzsh aliases.

trin atftp net-tools
yoyosan /
Last active Aug 13, 2019
FreeNAS 11.2 - Update Emby server to recent release

Install through the web interface a fresh jail of EmbyServer.

Connect to the NAS through SSH:

iocage console emby
service emby-server stop
cd /tmp
# latest releases can be found here:
View gist:bc809775f885ab71d02372eac1c13a78 - nu mai au varianta mea
View gist:29b088228b29f7dcf2da880264d9632d

F                                                                   1 / 1 (100%)

Time: 2.52 seconds, Memory: 34.00MB

There was 1 failure:

1) Tests\Unit\Dispatcher\Engine\BatchingTest::batching_selects_the_closest_order_to_the_current_one
Failed asserting that 255 matches expected 251.