Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Marius Palade yoyosan

🏠
Working from home
View GitHub Profile
@yoyosan
yoyosan / mariadb.md
Created Dec 11, 2020
MariaDB 10.2 upgrade on CentOS 7
View mariadb.md

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
yoyosan / swap.md
Created Jul 31, 2020
Enabling swap on Scaleway dev vps
View swap.md

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
yoyosan / quasar-grid.sass
Last active Mar 15, 2021
Grid classes for Quasar framework - inspired from Tailwindcss
View quasar-grid.sass
.grid
display: grid
// Grid template columns
.grid-cols-1
grid-template-columns: repeat(1, minmax(0, 1fr))
.grid-cols-2
grid-template-columns: repeat(2, minmax(0, 1fr))
@yoyosan
yoyosan / Upload.php.md
Last active Jul 28, 2020
File upload example for Quasar framework
View Upload.php.md
// Laravel 7 example

namespace App\Http\Controllers;

class Contact extends Controller
{
    // ...

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

Problem

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
yoyosan / revertzyxelz2.md
Last active Nov 10, 2019
Reverting from Open WRT to OEM firmware for Zyxel Armor Z2 NBG6817
View revertzyxelz2.md

Easyguide

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
yoyosan / emby-upgrade.md
Last active Aug 13, 2019
FreeNAS 11.2 - Update Emby server to recent release
View emby-upgrade.md

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: https://github.com/MediaBrowser/Emby.Releases/releases
fetch https://github.com/MediaBrowser/Emby.Releases/releases/download/4.2.1.0/emby-server-freebsd11_4.2.1.0_amd64.txz
View gist:bc809775f885ab71d02372eac1c13a78
https://www.europosters.ro/never-give-up-motivational-quote-f112518765
https://www.europosters.ro/don-t-stop-when-you-re-tired-f163177255 - nu mai au varianta mea
https://www.europosters.ro/motivational-fitness-quote-f117808152
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.