Skip to content

Instantly share code, notes, and snippets.

View yoyosan's full-sized avatar
🏠
Working from home

Marius P. yoyosan

🏠
Working from home
View GitHub Profile
@yoyosan
yoyosan / truenas-upgrade.md
Last active August 28, 2022 10:31
TrueNAS upgrade

Upgrade TrueNAS

Use the web interface to upgrade the os

If upgrade fails with a message similar to Host: 12.2-RELEASE is not greater than target: 12.3-RELEASE run

iocage fetch
@yoyosan
yoyosan / swap.md
Last active October 15, 2024 20:55
Enabling swap on Scaleway or any other 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) :

sudo dd if=/dev/zero of=/swap bs=1024 count=8388608
sudo chmod 0600 /swap
sudo mkswap /swap
sudo swapon /swap
free -h
@yoyosan
yoyosan / quasar-grid.sass
Last active October 11, 2023 15:46
Grid classes for Quasar framework - inspired from Tailwindcss
.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 May 26, 2025 23:34
File upload example for Quasar framework
// Laravel 7 example

namespace App\Http\Controllers;

class Contact extends Controller
{
    // ...

    /**
@yoyosan
yoyosan / cleancrap.md
Last active August 31, 2025 22:21
How to clean kdetmpdevfsi or .ICEd-unix suspicious files/folders or processes

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 December 13, 2022 07:30
Reverting from Open WRT to OEM firmware for Zyxel Armor Z2 NBG6817

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 August 13, 2019 07:50
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: 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
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
@yoyosan
yoyosan / research_tech_documentation.md
Last active March 1, 2019 17:50
Research about how others do technical documentation

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.