This file contains hidden or 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 | |
EDIT=0 | |
while (($#)) ; do | |
[[ ${1:0:1} != - ]] && break | |
case ${1:1} in | |
e) EDIT=1 ; shift ;; | |
*) echo "Unknown option $1, ignoring" ; shift ;; | |
esac |
This file contains hidden or 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 | |
# | |
# touchpad-toggle: Toggle touchpad activation with gsettings. | |
# Copyright (C) 2015 Guillaume Kulakowski <[email protected]> | |
# Version 1.0 | |
# | |
SCHEMA="org.gnome.desktop.peripherals.touchpad" | |
KEY="send-events" |
This file contains hidden or 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
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 | |
} |
This file contains hidden or 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
# 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 |
This file contains hidden or 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 | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
This file contains hidden or 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
[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 |
This file contains hidden or 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 | |
if [ "$1" == "" ]; then | |
echo Usage: $0 pngfile | |
exit 0; | |
fi | |
FILE=`basename $1 .png` | |
if [ ! -e $FILE.png ]; then |
This file contains hidden or 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
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> |
This file contains hidden or 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
--- 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. |
This file contains hidden or 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/env bash | |
# runafteridle.sh | |
TIME=$1 | |
COMMAND=$2 | |
LOGFILE="${HOME}/.runafteridle.log" | |
usage() { | |
echo "" | |
echo "$0 - Изпълни команда след определено време на застой" |