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 / 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 / covid-19-vaccines-reactions.md
Last active August 23, 2021 05:02
COVID 19 Vaccines Reactions
@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 / hdmi-switch.sh
Last active May 19, 2021 08:55
Example scripts of switching HDMI outputs when using Pipewire
#!/bin/bash
hdmi="$(pactl list sinks|grep Name|grep hdmi|sed 's/Name: //'|sed 's/\s//')"
pactl set-default-sink "$hdmi"
pactl set-sink-port "$hdmi" hdmi-output-2
pactl set-card-profile alsa_card.pci-0000_0b_00.1 output:hdmi-stereo-extra2
pactl set-sink-volume @DEFAULT_SINK@ 50%
# obtain ports: pactl list
@yoyosan
yoyosan / mariadb.md
Created December 11, 2020 07:35
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
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
@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 March 28, 2022 11:05
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))