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
Some scripts to help with DEB Repo Management. | |
See http://blog.schlomo.schapiro.org/2013/04/how-to-create-debianubuntu-repository.html for how to use this. |
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
Moved to https://github.com/schlomo/openssh-config-test |
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 | |
# | |
# search for .m2ts, .mov, .mp4 files and convert them to .m4v files with HandBrake | |
# search in current dir or in files/folders given as args | |
if [[ "$*" == *--help* ]] ; then | |
cat <<EOF | |
Usage: $0 [path or file] ... | |
Convert all .m2ts, .mov, .mp4 videos in given paths or files |
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
# This rsh wrapper supports reporting the exit code of the remote program. | |
# Assumes that remote shell is Bash or compatible and that you don't call | |
# exit directly (that would yield a return 127 regardless of the remote | |
# exit code!) | |
# | |
# Written by Schlomo Schapiro @ ImmobilienScout24 | |
# Licensed under the GNU General Public License, see http://www.gnu.org/licenses/gpl.html for full text | |
# | |
function rsh { | |
local res=$( |
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
# Service definition for Upstart, put into /etc/init | |
description "Record TS stream from VGADVIRecorder" | |
start on started autofs | |
stop on stopping autofs | |
respawn | |
# who else will have access | |
umask 0000 |
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 | |
# | |
# concatenate several SOURCE_CONCAT_FILE_NAMES files into a mp4 | |
# FIRST_NAME and second argument are file names or parts of a filename. All files inbetween will be concatenated. | |
START="$1" ; shift | |
END="$1" ; shift | |
COMMON_PREFIX="" | |
# find all input files |
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 | |
# xauth handling, code adapted from sshd(8) | |
if type -p xauth >/dev/null && read proto cookie && [[ "$DISPLAY" ]]; then | |
if [[ "${DISPLAY:0:10}" = 'localhost:' ]] ; then | |
# X11UseLocalhost=yes | |
#echo add unix:"${DISPLAY:11}" $proto $cookie #### egrehm changed to :10 because seems to be broken on rhel6 and clones | |
echo add unix:"${DISPLAY:10}" $proto $cookie | |
else | |
# X11UseLocalhost=no | |
echo add "$DISPLAY" $proto $cookie |
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
sed -i -f - /etc/ssh/sshd_config <<EOF | |
1{ | |
i # this content comes from the %{name}-%{version}-%{release} package | |
i AddressFamily inet | |
i Protocol 2 | |
i LogLevel VERBOSE | |
i HostbasedAuthentication yes | |
i IgnoreUserKnownHosts yes | |
i IgnoreRhosts yes | |
i Banner /etc/ssh/banner.txt |
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
if ! echo '# HTTPD conf framework. Will be overwritten to this content on each install of the rpm package!!! | |
# This file is managed by %{name}-%{version}-%{release} | |
ServerRoot "/etc/httpd" | |
Include conf/basic/*.conf | |
Include conf/main/*.conf | |
Include conf/other/*.conf | |
' >/etc/httpd/conf/httpd.conf ; then | |
logger -p user.err -s -t %name -- "ERROR: Could not replace content of '/etc/httpd/conf/httpd.conf'" | |
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
# See also http://wiki.xbmc.org/index.php?title=Autoexec.py | |
# Put this into the userdata folder, see http://wiki.xbmc.org/index.php?title=Userdata for details where this is for each platform | |
import xbmc | |
xbmc.executebuiltin('xbmc.PlayMedia("/storage/videos/","isdir")') | |
xbmc.executebuiltin('xbmc.PlayerControl(repeatall)') | |
xbmc.executebuiltin("Action(Fullscreen)") |
OlderNewer