This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watch tc -s qdisc ls dev $dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# modprobe zram | |
# echo lz4 > /sys/block/zram0/comp_algorithm | |
# echo 10G > /sys/block/zram0/disksize | |
# zpool add tanka log /dev/zram0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in 1 2 3 4 5; do | |
pool_mnt='/tanka /sftponly/*/tanka' | |
pool_name='tanka' | |
handle_count="$(lsof $pool_mnt | grep -v ' cwd ' | grep -v ^COMMAND | wc -l)" | |
if [ "$handle_count" -ne 0 ]; then | |
rm -f /tmp/spindown_harddrives.marker* | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install yum-utils -y | |
package-cleanup --oldkernels --count=2 | |
find /lib/modules/$(uname -r)/extra -name "splat.ko" -or -name "zcommon.ko" -or -name "zpios.ko" -or -name "spl.ko" -or -name "zavl.ko" -or -name "zfs.ko" -or -name "znvpair.ko" -or -name "zunicode.ko" | xargs rm -f | |
find /lib/modules/$(uname -r)/weak-updates -name "splat.ko" -or -name "zcommon.ko" -or -name "zpios.ko" -or -name "spl.ko" -or -name "zavl.ko" -or -name "zfs.ko" -or -name "znvpair.ko" -or -name "zunicode.ko" | xargs rm -f | |
modprobe -r zfs | |
yum remove zfs zfs-dkms spl spl-dkms dkms -y | |
yum install zfs -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git merge v1.0 --no-commit --no-ff | |
rm .git/MERGE_HEAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Grégoire Seux <grego_aur@familleseux.net> | |
# Contributor: Dean Galvin <deangalvin3@gmail.com> | |
_pkgname="home-assistant" | |
pkgname="python-home-assistant" | |
pkgdesc='Home Assistant is an open-source home automation platform running on Python 3' | |
pkgver=0.24.1 | |
pkgrel=1 | |
url="https://home-assistant.io/" | |
license=('MIT') | |
arch=('any') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo systemctl mask NetworkManager | |
sudo systemctl stop NetworkManager | |
sudo ip link set dev wlp3s0 down | |
sudo iw dev wlp3s0 del | |
sudo iw phy phy0 interface add mon0 type monitor | |
sudo horst -i mon0 | |
sudo iw dev mon0 del | |
sudo iw phy phy0 interface add wlp3s0 type managed | |
sudo ip link set dev wlp3s0 up | |
sudo systemctl unmask NetworkManager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LAST_KERNEL=$(rpm -q --last kernel | perl -pe 's/^kernel-(\S+).*/$1/' | head -1) | |
CURRENT_KERNEL=$(uname -r) | |
if [ "$LAST_KERNEL" != "$CURRENT_KERNEL" ]; then | |
logger 'automatic reboot by yum-daily in 10 seconds' | |
sleep 10 | |
sync | |
systemctl reboot& | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 0a89047e105431ddca682f9ea7ce62d0f869f052 Mon Sep 17 00:00:00 2001 | |
From: RubenKelevra <ruben@vfn-nrw.de> | |
Date: Wed, 21 Sep 2016 11:05:50 +0200 | |
Subject: [PATCH] fix multi-monitor-support | |
--- | |
client/X11/xf_window.c | 139 +++++++++++++++++++------------------------------ | |
1 file changed, 55 insertions(+), 84 deletions(-) | |
diff --git a/client/X11/xf_window.c b/client/X11/xf_window.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 1cc4b03fc2740bdad1debcffec10cb8141b40b94 Mon Sep 17 00:00:00 2001 | |
From: RubenKelevra <ruben@vfn-nrw.de> | |
Date: Fri, 16 Sep 2016 11:16:53 +0200 | |
Subject: [PATCH] revert commit which breaks multi-monitor-support | |
--- | |
freerdp/trunk/PKGBUILD | 14 +++++++++++--- | |
1 file changed, 11 insertions(+), 3 deletions(-) | |
diff --git a/freerdp/trunk/PKGBUILD b/freerdp/trunk/PKGBUILD |