Skip to content

Instantly share code, notes, and snippets.

@Sharm
Sharm / extend_raid.sh
Created August 18, 2022 18:59
Extend Ubuntu raid partition "/" by deleting "/home" partition using mdadm and parted
# Based on
# https://docs.hetzner.com/robot/dedicated-server/raid/exchanging-hard-disks-in-a-software-raid/
# https://documentation.suse.com/sles/12-SP4/html/SLES-all/cha-raid-resize.html
# https://redhatlinux.guru/2016/08/24/how-to-remove-mdadm-raid-devices/
# https://help.ubuntu.com/community/Partitioning/Home/Moving
# https://askubuntu.com/questions/116351/increase-partition-size-on-which-ubuntu-is-installed
lsblk
---------------------------------------------
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
@Sharm
Sharm / main.cpp
Created October 26, 2016 19:54 — forked from andref/main.cpp
Calling QMetaMethods with QVariant arguments and best-effort type conversion
#include <QtCore>
#include <QtDebug>
QVariant call(QObject* object, QMetaMethod metaMethod, QVariantList args)
{
// Convert the arguments
QVariantList converted;
// We need enough arguments to perform the conversion.
From b86040a5b96460748af8c3949ffd1ad18a9a6bc2 Mon Sep 17 00:00:00 2001
From: walkline <walkline.ua@gmail.com>
Date: Sun, 3 Jun 2012 15:29:04 +0300
Subject: [PATCH] Implemented Arena Spectator.
diff --git a/sql/updates/fc_updates_world/arena_spectator.sql b/sql/updates/fc_updates_world/arena_spectator.sql
new file mode 100644
index 0000000..280de81
--- /dev/null