Skip to content

Instantly share code, notes, and snippets.

View ivoarch's full-sized avatar

ivoarch

  • none
View GitHub Profile
--- terminix-orig.spec 2016-05-22 23:55:26.342662000 +0200
+++ terminix.spec 2016-05-23 00:16:11.280897290 +0200
@@ -32,6 +32,8 @@
#fix wrong category
sed -i -e 's/Categories=Utilities/Categories=GNOME;GTK;System;TerminalEmulator;/' %{buildroot}%{_datadir}/applications/com.gexperts.Terminix.desktop
+#fix #337
+sed -i -e 's/DBusActivatable=true/DBusActivatable=false/' %{buildroot}%{_datadir}/applications/com.gexperts.Terminix.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/com.gexperts.Terminix.desktop
#!/bin/bash
EDIT=0
while (($#)) ; do
[[ ${1:0:1} != - ]] && break
case ${1:1} in
e) EDIT=1 ; shift ;;
*) echo "Unknown option $1, ignoring" ; shift ;;
esac
@ivoarch
ivoarch / touchpad-toggle.sh
Created February 28, 2016 23:25 — forked from llaumgui/touchpad-toggle.sh
Toggle touchpad activation with gsettings.
#!/bin/bash
#
# touchpad-toggle: Toggle touchpad activation with gsettings.
# Copyright (C) 2015 Guillaume Kulakowski <guillaume@kulakowski.fr>
# Version 1.0
#
SCHEMA="org.gnome.desktop.peripherals.touchpad"
KEY="send-events"
@ivoarch
ivoarch / xstat
Created November 24, 2015 23:32 — forked from moiseevigor/xstat
xstat bash function to get file creation time on Linux with EXT4
xstat() {
for target in "${@}"; do
inode=$(ls -di "${target}" | cut -d ' ' -f 1)
fs=$(df "${target}" | tail -1 | awk '{print $1}')
crtime=$(sudo debugfs -R 'stat <'"${inode}"'>' "${fs}" 2>/dev/null |
grep -oP 'crtime.*--\s*\K.*')
printf "%s\t%s\n" "${crtime}" "${target}"
done
}
@ivoarch
ivoarch / compile-kmod.sh
Created September 12, 2015 09:01
compile a kmod against self compiled or other kernels
# How to compile a kmod against self compiled or other kernels
# Source: http://rpmfusion.org/Packaging/KernelModules/Kmods2
# Step 1
# If you don't have a rpm build environment set one up like this
su -c "yum -y install rpmdevtools kmodtool kernel-devel"
rpmdev-setuptree
# Step 2
@ivoarch
ivoarch / bash-cheatsheet.sh
Last active September 5, 2015 21:57 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@ivoarch
ivoarch / emacs-el6.repo
Last active February 8, 2016 07:50 — forked from AaronTheApe/emacs.repo
Emacs 24 CentOS Repo
[emacs]
name=Emacs repo
baseurl=http://pj.freefaculty.org/EL/6/x86_64/
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=http://pj.freefaculty.org/EL/PaulJohnson-BinaryPackageSigningKey
@ivoarch
ivoarch / png2svg.sh
Last active August 29, 2015 14:28 — forked from ykarikos/png2svg.sh
Convert png to svg using imagemagick and potrace
#!/bin/bash
if [ "$1" == "" ]; then
echo Usage: $0 pngfile
exit 0;
fi
FILE=`basename $1 .png`
if [ ! -e $FILE.png ]; then
diff -Nru ExMplayer-orig/src/playerwindow.ui ExMplayer/src/playerwindow.ui
--- ExMplayer-orig/src/playerwindow.ui 2014-02-01 08:29:44.000000000 +0100
+++ ExMplayer/src/playerwindow.ui 2015-03-20 12:55:24.386708044 +0100
@@ -2908,7 +2908,7 @@
<property name="maxLength">
<number>32766</number>
</property>
- <property name="placeholderText">
+ <property name="text">
<string>Enter command</string>
--- exmplayer-orig.spec 2015-04-04 18:02:19.173215364 +0200
+++ exmplayer.spec 2015-03-20 13:31:32.000000000 +0100
@@ -3,17 +3,17 @@
Name: exmplayer
Version: 3.8.0
-Release: 1%{?dist}
-Summary: MPlayer GUI with thumbnail seeking, 3D Video support,
+Release: 2%{?dist}.sos
+Summary: MPlayer GUI with thumbnail seeking and 3D Video support.