Skip to content

Instantly share code, notes, and snippets.

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

Marius Palade yoyosan

🏠
Working from home
View GitHub Profile
@yoyosan
yoyosan / xprintidleinstall.md
Last active October 23, 2023 21:43
Install xprintidle on Fedora 25+

In order to use Safeeyes with the Smart Pause plugin you need install xprintidle. This process wasn't that simple for me so I thought about writing it down:

cd /tmp
git clone https://github.com/lucianposton/xprintidle
cd xprintidle
sudo dnf install libX11-devel libXScrnSaver-devel
sudo ln -s /usr/lib64/libXss.so.1.0.0 /usr/lib64/libXss.so
./configure
@yoyosan
yoyosan / cleancrap.md
Last active October 18, 2023 00:16
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 / 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 September 3, 2023 01:50
File upload example for Quasar framework
// Laravel 7 example

namespace App\Http\Controllers;

class Contact extends Controller
{
    // ...

    /**
@yoyosan
yoyosan / openfortigui.md
Last active June 16, 2023 12:17
Build openfortigui in Fedora 34+

Install needed packages:

sudo dnf install qt5-qtbase-devel openssl-devel qtkeychain-qt5-devel -y

# create a symlink to /usr/bin/qmake, if needed
sudo ln -s /usr/lib64/qt5/bin/qmake /usr/bin/qmake

cd ~/tools
git clone https://github.com/theinvisible/openfortigui.git
@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 / silencing-the-lambs.md
Created September 9, 2022 16:18
John Pilger - Reducerea la tăcere a mieilor. Cum funcționează propaganda

REDUCEREA LA TĂCERE A MIEILOR. CUM FUNCȚIONEAZĂ PROPAGANDA.

Sursa: http://johnpilger.com/articles/silencing-the-lambs-how-propaganda-works-

8 septembrie 2022

Într-un discurs rostit în cadrul Festivalului Mondial de la Trondheim, în Norvegia, John Pilger trasează istoria propagandei puterii și descrie modul în care aceasta își însușește jurnalismul într-un "imperialism profund" și este posibil să ne prindă în capcană pe toți, dacă îi permitem.


În anii 1970, am întâlnit-o pe una dintre principalele propagandiste ale lui Hitler, Leni Riefenstahl, ale cărei filme epice glorificau naziștii. S-a întâmplat să stăm la aceeași cabană din Kenya, unde ea se afla într-o misiune de fotografiere, după ce scăpase de soarta altor prieteni ai Fuhrerului.


@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 / ssl-renew.md
Last active June 30, 2022 10:54
Renew SSL certificate for yolosan.xyz in True NAS

For Nextcloud

Log into NAS ssh:

iocage console nextcloud
pkg install py38-certbot py38-certbot-nginx
certbot renew --nginx
service nginx restart