Initial bin folder

This commit is contained in:
Dirk Alders 2020-01-26 17:28:29 +01:00
parent a2524a758f
commit 6f61f0dfea
42 changed files with 1035 additions and 0 deletions

31
amplifier Executable file
View File

@ -0,0 +1,31 @@
#!/usr/bin/env python2
import subprocess
import time
def monitor_state():
mon_state = subprocess.check_output(['/usr/bin/tvservice', '-s'])
return mon_state.split(' ')[1] in ['0xa', '0x12000a', '0x40002']
def kodi_state():
response = urllib2.urlopen('http://music:8080/jsonrpc?request={%22jsonrpc%22:%20%222.0%22,%20%22method%22:%20%22Player.GetActivePlayers%22,%20%22id%22:%201}')
json_txt = response.read()
response.close() # best practice to close the file
response = json.loads(json_txt)
return len(response['result']) > 0
prev_state = None
while True:
# second count
curr_state = monitor_state()
# check if there is a change in the screen state
if curr_state != prev_state:
if curr_state is True:
subprocess.check_output(['sispmctl', '-o', '1'])
else:
subprocess.check_output(['sispmctl', '-f', '1'])
prev_state = curr_state
time.sleep(1.)

1
apt-install-from-list Executable file
View File

@ -0,0 +1 @@
xargs -a "$1" apt-get install

1
apt-package-list Executable file
View File

@ -0,0 +1 @@
dpkg --get-selections | awk '!/deinstall|purge|hold/ {print $1}'

1
backup_data.sh Executable file
View File

@ -0,0 +1 @@
sudo obnam backup /data

1
dvd2wav Executable file
View File

@ -0,0 +1 @@
mplayer -vo null -ao pcm -ao pcm:file=audio.wav dvd://01

3
ffmpeg2avi Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
#
ffmpeg -i $1 -qscale:v 5 -c:v libxvid -tune film $2

3
ffmpeg2avi_169 Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
#
ffmpeg -i $1 -qscale:v 5 -c:v libxvid -aspect 16:9 $2

3
ffmpeg2mp4 Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
#
ffmpeg -i $1 -vcodec libx264 -crf 18 -tune animation $2

3
ffmpeg2mp4_169 Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
#
ffmpeg -i $1 -vcodec libx264 -crf 18 -tune animation -aspect 16:9 $2

3
garage Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
#
python3 ~/prj/clients/garage/tcp_client.py

8
gitconfig Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
#
git config --global user.name "Dirk Alders"
git config --global user.email dirk@mount-mockery.de
#
git config --global diff.tool meld
git config --global merge.tool meld
git config --global --add difftool.prompt false

68
giti Executable file
View File

@ -0,0 +1,68 @@
#!/bin/bash
#
usage="Usage: $0 [-n | no details] [-r | repeat]"
while getopts "hnrs" options; do
case $options in
n ) NO_DETAILS="True";;
r ) REPEAT="True";;
h ) echo $usage
exit 0
;;
\? ) echo $usage
exit 1
;;
esac
done
if [[ $REPEAT == "True" ]]; then
watch -n 1 -c "clear && $0 -s"
else
COLOR_WHITE="\033[00m"
COLOR_CYAN="\033[1;36m"
COLOR_RED="\033[1;31m"
COLOR_YELLOW="\033[1;33m"
COLOR_DARKYELLOW="\033[0;33m"
COLOR_GREEN="\033[1;32m"
COLOR_DARKGREEN="\033[0;32m"
COLOR_OCHRE="\033[38;5;95m"
#
git_status="$(LANGUAGE='en_US.UTF-8 git' git status 2> /dev/null)"
git_diff="$(git status --porcelain 2> /dev/null)"
#
if [[ ! $git_status = "" ]]; then
git_branch="$(git branch 2> /dev/null | sed --quiet 's/* \(.*\)/\1/p')"
git_url="$(git config --get remote.origin.url 2> /dev/null)"
if [[ ! $git_status =~ "working tree clean" ]] && [[ ! $git_status =~ "working directory clean" ]]; then
git_status_color="$COLOR_RED"
git_status_text="╡ local changes ╞"
elif [[ $git_status =~ "Your branch is behind" ]]; then
git_status_color="$COLOR_YELLOW"
git_status_text="╡ pull required ╞"
elif [[ $git_status =~ "Your branch is ahead of" ]]; then
git_status_color="$COLOR_YELLOW"
git_status_text="╡ push required ╞"
elif [[ $git_status =~ "nothing to commit" ]]; then
git_status_color="$COLOR_DARKGREEN"
git_status_text="╡ clean ╞════════"
else
git_status_color="$COLOR_OCHRE"
git_status_text="╡ unknown ╞══════"
fi
echo -e "$git_status_color╔═══$git_status_text════════════════════════════════════════════════════════════════"
echo -e "$git_status_color║ $COLOR_GREEN($git_branch) $COLOR_CYAN$git_url"
if [[ ! $git_diff == "" && $NO_DETAILS != "True" ]]; then
echo -e "$git_status_color╠════════════════════════════════════════════════════════════════════════════════════"
IFS=$'\n'
for ENTRY in $git_diff; do
if [[ $ENTRY = "D "* ]] || [[ $ENTRY = "A "* ]] || [[ $ENTRY = "M "* ]] || [[ $ENTRY = "R "* ]]; then
echo -e "$git_status_color║ $COLOR_DARKYELLOW$ENTRY"
else
echo -e "$git_status_color║ $COLOR_YELLOW$ENTRY"
fi
done
fi
echo -e "$git_status_color╚════════════════════════════════════════════════════════════════════════════════════$COLOR_WHITE\n \b"
fi
fi

3
gits Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
#
git status

3
gitt Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
#
git log --graph --oneline --all --decorate --topo-order

13
init_homepath Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
#
rm -f $HOME/data; ln -s /user_data/data/$USER $HOME/data
for folder in Bilder Dokumente eclipse Musik prj Schreibtisch; do
rm -rf $HOME/$folder; ln -s /user_data/data/$USER/$folder $HOME
done
for folder in Audio Downloads Videos; do
rm -rf $HOME/$folder; ln -s /user_data/static_data/$USER/$folder $HOME
done

3
irssi_mm Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
#
ssh mount-mockery.de -t "tmux attach-session -t irssi || tmux new-session -s irssi"

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -0,0 +1,82 @@
% Copyright 2007 by Till Tantau
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.
\ProvidesPackageRCS $Header: /Users/joseph/Documents/LaTeX/beamer/base/themes/theme/compatibility/beamerthemeshadow.sty,v d02a7cf4d8ae 2010/06/17 09:11:41 rivanvx $
\usepackage[utf8]{inputenc}
\usepackage{german}
\usepackage{etoolbox}
\usepackage[absolute,overlay]{textpos}
\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{\TPHorizModule}
\newif\ifconfidential
\newcommand{\SetConfidential}{\confidentialtrue}
\mode<presentation>
\logo{\includegraphics[width=12.5cm]{connect_style_new/connect_header.png}\hspace*{0.1cm}\vspace*{7.65cm}}
\definecolor{MyRed}{RGB}{160,0,32}
\definecolor{MyGrey}{RGB}{18,27,39}
\definecolor{MyBlue}{RGB}{99,137,149}
% MyLight...[i] = My...[i] + (255-My...[i]) * 0.95
\definecolor{MyLightRed}{RGB}{250,242,244}
\definecolor{MyLightGrey}{RGB}{243,244,244}
\definecolor{MyLightBlue}{RGB}{247,249,250}
\setbeamercolor{title}{fg=MyRed}
\setbeamercolor{frametitle}{fg=MyRed}
\setbeamerfont{frametitle}{size=\Large}
\setbeamercolor{framesubtitle}{fg=MyGrey}
\setbeamerfont{framesubtitle}{size=\large\bf}
\setbeamercolor{structure}{fg=MyRed}
\useinnertheme[shadow=true]{rounded}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamercolor{block title}{fg=black,bg=MyGrey}
\setbeamercolor{block body}{bg=MyLightGrey}
\AtBeginEnvironment{block}{\setbeamercolor{item projected}{bg=MyGrey}}
\setbeamercolor{block title example}{fg=white,bg=MyBlue}
\setbeamercolor{block body example}{bg=MyLightBlue}
\AtBeginEnvironment{exampleblock}{\setbeamercolor{item projected}{bg=MyBlue}}
\setbeamercolor{block title alerted}{fg=white,bg=MyRed}
\setbeamercolor{block body alerted}{bg=MyLightRed}
\AtBeginEnvironment{alertblock}{\setbeamercolor{item projected}{bg=MyRed}}
\beamersetuncovermixins{\opaqueness<1>{25}}{\opaqueness<2->{15}}
\beamertemplatenavigationsymbolsempty
\setbeamertemplate{footline}[text line]{%
\parbox{\linewidth}{\vspace*{-9pt}\hspace*{-17pt}\textcolor{MyGrey}{{\bf\thepage}\hspace*{4em}\inserttitle~-~\insertauthor~-~\today}}}
\renewcommand{\titlepage}[0]{
\begin{textblock}{125}(0,0)
\includegraphics[width=12.8cm]{connect_style_new/connect_title_page}
\end{textblock}
\begin{textblock}{75}(16,60)
\textcolor{MyRed}{\bf\inserttitle}\\[3pt]\scriptsize\textcolor{MyGrey}{\bf\insertsubtitle}
\end{textblock}
\begin{textblock}{75}(16,71)
\tiny\insertauthor~---~\insertdate
\end{textblock}
\ifconfidential
\begin{textblock}{59}(3,60)
\scriptsize
\textcolor{MyRed}{Dieses Dokument und dessen Inhalt ist vertraulich und darf
ohne Einverständnis von LMH/ ELE2 weder vollständig noch teilweise
weitergegeben werden.}\\[6pt] \textcolor{MyRed}{This document and it's content
is confidential. It is not allowed to pass it fully or partially without
agreement of LMH/ ELE2.}
\end{textblock}
\fi
}
\mode
<all>

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

View File

@ -0,0 +1,77 @@
% Copyright 2007 by Till Tantau
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.
\ProvidesPackageRCS $Header: /Users/joseph/Documents/LaTeX/beamer/base/themes/theme/compatibility/beamerthemeshadow.sty,v d02a7cf4d8ae 2010/06/17 09:11:41 rivanvx $
\usepackage[utf8]{inputenc}
\usepackage{german}
\usepackage{etoolbox}
\usepackage[absolute,overlay]{textpos}
\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{\TPHorizModule}
\newif\ifconfidential
\newcommand{\SetConfidential}{\confidentialtrue}
\mode<presentation>
\logo{\includegraphics[width=12.4cm]{kion_style/kion_header.png}\hspace*{0.1cm}\vspace*{7.65cm}}
\definecolor{MyRed}{RGB}{174,0,85}
\definecolor{MyGrey}{RGB}{56,54,51}
\definecolor{MyBlue}{RGB}{0,135,185}
% MyLight...[i] = My...[i] + (255-My...[i]) * 0.95
\definecolor{MyLightRed}{RGB}{251,242,247}
\definecolor{MyLightGrey}{RGB}{245,245,244}
\definecolor{MyLightBlue}{RGB}{242,249,252}
\setbeamercolor{title}{fg=MyRed}
\setbeamercolor{frametitle}{fg=MyRed}
\setbeamercolor{structure}{fg=MyRed}
\useinnertheme[shadow=true]{rounded}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamercolor{block title}{fg=white,bg=MyGrey}
\setbeamercolor{block body}{bg=MyLightGrey}
\AtBeginEnvironment{block}{\setbeamercolor{item projected}{bg=MyGrey}}
\setbeamercolor{block title example}{fg=white,bg=MyBlue}
\setbeamercolor{block body example}{bg=MyLightBlue}
\AtBeginEnvironment{exampleblock}{\setbeamercolor{item projected}{bg=MyBlue}}
\setbeamercolor{block title alerted}{fg=white,bg=MyRed}
\setbeamercolor{block body alerted}{bg=MyLightRed}
\AtBeginEnvironment{alertblock}{\setbeamercolor{item projected}{bg=MyRed}}
\beamersetuncovermixins{\opaqueness<1>{25}}{\opaqueness<2->{15}}
\beamertemplatenavigationsymbolsempty
\setbeamertemplate{footline}[text line]{%
\parbox{\linewidth}{\vspace*{-8pt}\textcolor{MyRed}{\inserttitle\hfill\insertshortauthor}}}
\renewcommand{\titlepage}[0]{
\begin{textblock}{125}(2,20)
\includegraphics[width=12.4cm]{kion_style/kion_title_page}
\end{textblock}
\begin{textblock}{90}(20,25)
\inserttitle\\\textcolor{MyRed}{\insertsubtitle}
\end{textblock}
\begin{textblock}{90}(20,45)
{\scriptsize\insertauthor}\\{\scriptsize\insertdate}
\end{textblock}
\ifconfidential
\begin{textblock}{120}(4,72)
\scriptsize
\textcolor{MyRed}{Dieses Dokument und dessen Inhalt ist vertraulich und darf
ohne Einverständnis von LMH/ ELE2 weder vollständig noch teilweise
weitergegeben werden.}\\[3pt] \textcolor{MyRed}{This document and it's content
is confidential. It is not allowed to pass it fully or partially without agreement of
LMH/ ELE2.}
\end{textblock}
\fi
}
\mode
<all>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 852 KiB

View File

@ -0,0 +1,79 @@
% Copyright 2007 by Till Tantau
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.
\ProvidesPackageRCS $Header: /Users/joseph/Documents/LaTeX/beamer/base/themes/theme/compatibility/beamerthemeshadow.sty,v d02a7cf4d8ae 2010/06/17 09:11:41 rivanvx $
\usepackage[utf8]{inputenc}
\usepackage{german}
\usepackage{etoolbox}
\usepackage[absolute,overlay]{textpos}
\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{\TPHorizModule}
\newif\ifconfidential
\newcommand{\SetConfidential}{\confidentialtrue}
\mode<presentation>
\logo{\includegraphics[width=12.4cm]{linde_style/linde_header.png}\hspace*{0.1cm}\vspace*{7.65cm}}
\definecolor{MyRed}{RGB}{160,0,32}
\definecolor{MyGrey}{RGB}{18,27,39}
\definecolor{MyBlue}{RGB}{99,137,149}
% MyLight...[i] = My...[i] + (255-My...[i]) * 0.95
\definecolor{MyLightRed}{RGB}{250,242,244}
\definecolor{MyLightGrey}{RGB}{243,244,244}
\definecolor{MyLightBlue}{RGB}{247,249,250}
\setbeamercolor{title}{fg=MyRed}
\setbeamercolor{frametitle}{fg=black}
\setbeamercolor{structure}{fg=MyRed}
\useinnertheme[shadow=true]{rounded}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamercolor{block title}{fg=white,bg=MyGrey}
\setbeamercolor{block body}{bg=MyLightGrey}
\AtBeginEnvironment{block}{\setbeamercolor{item projected}{bg=MyGrey}}
\setbeamercolor{block title example}{fg=white,bg=MyBlue}
\setbeamercolor{block body example}{bg=MyLightBlue}
\AtBeginEnvironment{exampleblock}{\setbeamercolor{item projected}{bg=MyBlue}}
\setbeamercolor{block title alerted}{fg=white,bg=MyRed}
\setbeamercolor{block body alerted}{bg=MyLightRed}
\AtBeginEnvironment{alertblock}{\setbeamercolor{item projected}{bg=MyRed}}
\beamersetuncovermixins{\opaqueness<1>{25}}{\opaqueness<2->{15}}
\beamertemplatenavigationsymbolsempty
\setbeamertemplate{footline}[text line]{%
\parbox{\linewidth}{\vspace*{-8pt}\textcolor{MyRed}{\inserttitle\hfill\insertshortauthor}}}
\renewcommand{\titlepage}[0]{
\begin{textblock}{125}(0,0)
\includegraphics[width=12.8cm]{linde_style/linde_title_page}
\end{textblock}
\begin{textblock}{59}(66,34)
\textcolor{white}{\inserttitle}\\\scriptsize\textcolor{MyGrey}{\insertsubtitle}
\end{textblock}
\begin{textblock}{59}(66,75)
\scriptsize\insertauthor\\\insertdate
\end{textblock}
\ifconfidential
\begin{textblock}{59}(3,60)
\scriptsize
\textcolor{MyRed}{Dieses Dokument und dessen Inhalt ist vertraulich und darf
ohne Einverständnis von LMH/ ELE2 weder vollständig noch teilweise
weitergegeben werden.}\\[6pt] \textcolor{MyRed}{This document and it's content
is confidential. It is not allowed to pass it fully or partially without
agreement of LMH/ ELE2.}
\end{textblock}
\fi
}
\mode
<all>

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -0,0 +1,82 @@
\documentclass[12pt,german]{g-brief}
\usepackage[utf8]{inputenc}
\usepackage{eso-pic} %% AddtoShipPicture nutzen
\usepackage{url}
\usepackage{eurosym}
\usepackage{booktabs}
\usepackage{xcolor}
\def\blztext{{\footnotesize BIC:}}
\def\kontotext{{\footnotesize IBAN:}}
\renewcommand{\familydefault}{\sfdefault}
%\usepackage{helvet}
\usepackage{avant}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Daten zur eigenen Person %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\unserzeichen
\trennlinien
%\fenstermarken
%\lochermarke
\faltmarken
%\klassisch
\Name {Dirk Alders}
\Strasse {Am Spottenberg 7a}
\Zusatz {}
\Ort {63834 Sulzbach}
\Land {}
\RetourAdresse {\sf\name\ $\cdot$\ \strasse\ $\cdot$\ \ort} % einzeilig f¨ur Ihre Adresse im Sichtfenster;
\Unterschrift {Dirk Alders}
\Datum {\VAR{short_date}}
\Telefon {06028/\,40\,70\,41}
%\Telefax {}
%\HTTP {http://mount-mockery.de}
\EMail {dirk@mount-mockery.de}
%\Bank {Sparkasse Miltenberg Obernburg}
%\BLZ {BYLADEM1MIL}
%\Konto {DE98\,7965\,0000\,0500\,7933\,93}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Daten des jeweiligen Briefes, müssen jedesmal geändert werden %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Postvermerk {} % Einschreiben, Drucksache, etc.
\Adresse {Adressat\\
Straße Nummer\\[4pt]
PLZ Ort}
\Betreff {Betreff}
\Anrede {Sehr geehrte Damen und Herren,}
\Gruss {Mit freundlichen Grüßen}{1cm}
%\Anlagen {\begin{tabular}[t]{lp{439.4pt}}
% $\bullet$ & Test1\\
% $\bullet$ & Test2\\
% \end{tabular}
% }
%\Verteiler {
% }
%\MeinZeichen {\tiny\url{\VAR{full_folder}}}
%\IhrZeichen {Zeichen}
%\IhrSchreiben {dd.mm.yyyy}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% der eigentliche Text des Briefes %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\ClearShipoutPicture
\AddToShipoutPicture{\put(50,40){\tiny\url{\VAR{full_folder}}}}
\begin{g-brief}
Brieftext.
\end{g-brief}
\end{document}

View File

@ -0,0 +1,99 @@
\documentclass[10pt, a4paper,oneside]{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% alle benötigten Pakete werden hier eingebunden
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{german}
\usepackage[utf8]{inputenc} %Damit man ohne Probleme Umlaute eingeben kann
\usepackage{fancyhdr}
\usepackage{eso-pic} %% AddtoShipPicture nutzen
\usepackage{booktabs}
\usepackage{xcolor}
\usepackage{longtable}
\usepackage{graphicx}
\usepackage{longtable} %lange Tabellen über mehrere Seiten erstellen
\usepackage{lastpage}
\usepackage{url}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Selbst definierte Style-Dateien
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{blatt}[2]
{
\ClearShipoutPicture
\AddToShipoutPicture{
\renewcommand{\headrulewidth}{0.0pt}
\renewcommand{\footrulewidth}{0.0pt}
\thicklines
\put(60,52){\framebox(480,735){}}
\put(49,76){\rotatebox{90}{\makebox(100,7)[l]{\scriptsize\url{\VAR{full_path}}}}}
\put(545,104){\rotatebox{90}{\makebox(100,22)[l]{\bfseries #1\,(\thepage/\,\pageref{LastPage})}}}
\put(545,76){\includegraphics[height=20pt]{icons/#2}}
\put(75,40){\makebox(100,7)[l]{\scriptsize \today }}
}
}
{
\newpage
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Einzug verändert und größerer Zeilenabstand
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\parindent0.0em % 1. Zeile nicht einrücken
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Schriftart
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand\familydefault{\sfdefault}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Abstände
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{empty}
% Größe des Textbereiches in der Seite
\setlength{\textwidth}{16.4cm}
\setlength{\textheight}{24.5cm}
% Kopf- und Fußzeile, Höhe und Abstand vom Text
\setlength{\headheight}{0pt}
\setlength{\headsep}{0pt}
\setlength{\topmargin}{-1cm}
% Linker Seiteneinzug
\setlength{\oddsidemargin}{2.35cm} \addtolength{\oddsidemargin}{-1in}
\setlength{\evensidemargin}{2.35cm} \addtolength{\evensidemargin}{-1in}
\addtolength{\topmargin}{1.1cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Überschriftformatierung
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{titlesec}
\titleformat{name=\section}[block]
{\large}
{}
{0pt}
{\colorsection}
\titlespacing*{\section}{0pt}{\baselineskip}{\baselineskip}
\newcommand{\colorsection}[1]{%
\colorbox{black!25}{\parbox{\dimexpr\textwidth-2\fboxsep}{\bf #1}}}
\titleformat{name=\subsection}[block]
{\large}
{}
{0pt}
{\colorsubsection}
\titlespacing*{\subsection}{0pt}{\baselineskip}{\baselineskip}
\newcommand{\colorsubsection}[1]{%
\colorbox{black!10}{\parbox{\dimexpr\textwidth-2\fboxsep}{#1}}}
\begin{document}
%Schriftart setzen
\begin{blatt}{Titel des Dokuments}{info} % Possible Icons: folie, info, merk, station
\section{Überschrift}
Text
\end{blatt}
\end{document}

View File

@ -0,0 +1,173 @@
\documentclass{beamer}
%\documentclass[handout]{beamer}
%%% Deutsche Beschriftungen
\usepackage[utf8]{inputenc}
\usepackage{german}
\definecolor{links}{HTML}{2A1B81}
\hypersetup{colorlinks,linkcolor=,urlcolor=links}
\usepackage{beamerthemeshadow}
%\usepackage{my_style/beamertheme}
\beamersetuncovermixins{\opaqueness<1>{25}}{\opaqueness<2->{15}}
\usepackage{multicol}
\begin{document}
\title{Präsentationstitel}
\author{Vorname Nachname}
\date{\today}
\frame{\titlepage}
\frame{\frametitle{Table of contents}\tableofcontents}
\section{Section no.1}
\frame{\frametitle{Title}
Each frame should have a title.
}
\subsection{Subsection no.1.1 }
\frame{
Without title somethink is missing.
}
\section{Section no. 2}
\subsection{Lists I}
\frame{\frametitle{unnumbered lists}
\begin{itemize}
\item Introduction to \LaTeX
\item Course 2
\item Termpapers and presentations with \LaTeX
\item Beamer class
\end{itemize}
}
\frame{\frametitle{lists with pause}
\begin{itemize}
\item Introduction to \LaTeX \pause
\item Course 2 \pause
\item Termpapers and presentations with \LaTeX \pause
\item Beamer class
\end{itemize}
}
\subsection{Lists II}
\frame{\frametitle{numbered lists}
\begin{enumerate}
\item Introduction to \LaTeX
\item Course 2
\item Termpapers and presentations with \LaTeX
\item Beamer class
\end{enumerate}
}
\frame{\frametitle{numbered lists with pause}
\begin{enumerate}
\item Introduction to \LaTeX \pause
\item Course 2 \pause
\item Termpapers and presentations with \LaTeX \pause
\item Beamer class
\end{enumerate}
}
\section{Section no.3}
\subsection{Tables}
\frame{\frametitle{Tables}
\begin{tabular}{|c|c|c|}
\hline
\textbf{Date} & \textbf{Instructor} & \textbf{Title} \\
\hline
WS 04/05 & Sascha Frank & First steps with \LaTeX \\
\hline
SS 05 & Sascha Frank & \LaTeX \ Course serial \\
\hline
\end{tabular}}
\frame{\frametitle{Tables with pause}
\begin{tabular}{c c c}
A & B & C \\
\pause
1 & 2 & 3 \\
\pause
A & B & C \\
\end{tabular} }
\section{Section no. 4}
\subsection{blocs}
\frame{\frametitle{blocs}
\begin{block}{title of the bloc}
bloc text
\end{block}
\begin{exampleblock}{title of the bloc}
bloc text
\end{exampleblock}
\begin{alertblock}{title of the bloc}
bloc text
\end{alertblock}
}
\section{Section no. 5}
\subsection{split screen}
\frame{\frametitle{splitting screen}
\begin{columns}
\begin{column}{5cm}
\begin{itemize}
\item Beamer
\item Beamer Class
\item Beamer Class Latex
\end{itemize}
\end{column}
\begin{column}{5cm}
\begin{tabular}{|c|c|}
\hline
\textbf{Instructor} & \textbf{Title} \\
\hline
Sascha Frank & \LaTeX \ Course 1 \\
\hline
Sascha Frank & Course serial \\
\hline
\end{tabular}
\end{column}
\end{columns}
}
\subsection{Pictures}
\frame{\frametitle{pictures in latex beamer class}
\begin{figure}
\includegraphics[scale=0.5]{PIC1}
\caption{show an example picture}
\end{figure}}
\subsection{joining picture and lists}
\frame{
\frametitle{pictures and lists in beamer class}
\begin{columns}
\begin{column}{5cm}
\begin{itemize}
\item<1-> subject 1
\item<3-> subject 2
\item<5-> subject 3
\end{itemize}
\vspace{3cm}
\end{column}
\begin{column}{5cm}
\begin{overprint}
\includegraphics<2>{PIC1}
\includegraphics<4>{PIC2}
\includegraphics<6>{PIC3}
\end{overprint}
\end{column}
\end{columns}}
\end{document}

3
leyk Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
#
python3 ~/prj/clients/leyk/tcp_client.py

88
mkdoc Executable file
View File

@ -0,0 +1,88 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import jinja2
import optparse
import os
import shutil
import time
TYPES = [u'brief', u'merkblatt', u'präsentation']
TARGET_EXTENTION = u'.tex'
def mkdir(path):
""".. warning:: Needs to be documented
"""
path=os.path.abspath(path)
if not os.path.exists(os.path.dirname(path)):
mkdir(os.path.dirname(path))
if not os.path.exists(path):
os.mkdir(path)
return os.path.isdir(path)
def get_path_replace_list():
HOME_PATH_REPLACEMENT = '~'
rv = []
home_path = os.getenv("HOME")
rv.append( (home_path, HOME_PATH_REPLACEMENT) )
for p in os.listdir(home_path):
full_path = os.path.join(home_path, p)
if os.path.islink(full_path):
rv.append( (os.path.realpath(full_path), os.path.join(HOME_PATH_REPLACEMENT, p)) )
return rv
template_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'latex_doc', 'templates')
static_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'latex_doc', 'static')
if __name__ == "__main__":
parser = optparse.OptionParser("usage: %%prog [options] folder_for_document")
parser.add_option("-t", "--type", dest="type", default=None, type="string", help="|".join(TYPES))
parser.add_option("-f", "--force", dest="force", action="store_true", default=False)
(options, args) = parser.parse_args()
if len(args) != 1 or options.type is None or options.type not in TYPES:
parser.print_help()
else:
target_file = os.path.join(os.path.abspath('.'), args[0])
if not target_file.endswith(TARGET_EXTENTION):
target_file = os.path.join(target_file, os.path.basename(target_file) + TARGET_EXTENTION)
full_path = target_file
for original, replacement in get_path_replace_list():
if full_path.startswith(original):
full_path = replacement + full_path[len(original):]
break
full_folder = os.path.dirname(full_path)
filename = os.path.splitext(os.path.basename(target_file))[0]
short_date = time.strftime('%d.%m.%Y')
#
# Main Actions
#
latex_jinja_env = jinja2.Environment(
block_start_string = '\BLOCK{',
block_end_string = '}',
variable_start_string = '\VAR{',
variable_end_string = '}',
comment_start_string = '\#{',
comment_end_string = '}',
line_statement_prefix = '%_',
line_comment_prefix = '%#',
trim_blocks = True,
autoescape = False,
loader = jinja2.FileSystemLoader(template_path)
)
if not os.path.exists(target_file) or options.force:
mkdir(os.path.dirname(target_file))
with open(target_file, 'w') as fh:
fh.write(latex_jinja_env.get_template(options.type + TARGET_EXTENTION).render(
full_path=full_path,
full_folder=full_folder,
filename=filename,
short_date=short_date).encode('UTF-8'))
if options.type == 'merkblatt':
shutil.copytree(os.path.join(static_path, options.type), os.path.join(os.path.dirname(target_file), 'icons'))
else:
print("File exists. Use option -f to create file")

158
mkunittest Executable file
View File

@ -0,0 +1,158 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import os
import stat
name = os.path.basename(os.path.abspath('.'))
gitignore = """# general stuff
*~
unittest/testresults/*
unittest/output_data/*
# eclipse stuff
.settings/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
# Translations
*.mo
*.pot
# Django stuff:
*.log
# Sphinx documentation
docs/_build/
# PyBuilder
target/
"""
unittest_py = """#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
import optparse
import os
import report
import unittest
import tests
parser = optparse.OptionParser("usage: %prog [clean|run|coverage|pdf|copy|release]")
parser.add_option("-e", "--execution-level", dest="execution_level", default="full", help="sets the execution level [full | short | smoke | single]")
(options, args) = parser.parse_args()
if report.TCEL_REVERSE_NAMED.get(tests.execution_level, report.TCEL_FULL) < report.TCEL_REVERSE_NAMED.get(options.execution_level, report.TCEL_FULL):
options.execution_level = tests.execution_level
unittest.run.unittest(options, args, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
"""
config_py = """#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import optparse
import os
import %s as lib
release_unittest_version = 'xxx'
lib_path = os.path.realpath(lib.__path__[0])
additional_loggers_to_catch = []
if __name__ == "__main__":
parser = optparse.OptionParser("usage: %%prog [options] folder_for_document")
parser.add_option("-p", "--path", dest="libpath", action="store_true", default=False, help="prints the library path")
(options, args) = parser.parse_args()
if options.libpath:
print(lib_path)
""" % name
test_init_py = """#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import %s
from report import TCEL_FULL
from report import TCEL_SHORT
from report import TCEL_SINGLE
from report import TCEL_SMOKE
#from tests import test_
execution_level = 'full'
def testrun(tcl):
#
# caching.property_cache_json
#
tcl.testCase('description', TCEL_FULL, test_.func, *args, **kwargs)
""" % name
with open('.gitignore', 'w') as fh:
fh.write(gitignore)
os.mkdir('docs')
os.mkdir('examples')
os.symlink('../pylibs/%s' % name, 'examples/%s' % name)
os.mkdir('pylibs')
os.mkdir('requirements')
os.mkdir('unittest')
os.symlink('../pylibs/unittest/unittest_flow.sh', 'unittest/unittest.sh')
os.mkdir('unittest/input_data')
os.mkdir('unittest/output_data')
os.mkdir('unittest/src')
with open('unittest/src/config.py', 'w') as fh:
fh.write(config_py)
with open('unittest/src/unittest.py', 'w') as fh:
fh.write(unittest_py)
for lib_name in [name, 'report', 'unittest', 'fstools', 'reqif']:
os.symlink('../../pylibs/%s' % lib_name, 'unittest/src/%s' % lib_name)
os.mkdir('unittest/src/tests')
with open('unittest/src/tests/__init__.py', 'w') as fh:
fh.write(test_init_py)

15
nemo-terminal-settings Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
#
#######################################################################################
# See /usr/share/glib-2.0/schemas/org.nemo.extensions.nemo-terminal.gschema.xml
# for more information
#######################################################################################
# <enum id="org.nemo.extensions.nemo-terminal.TerminalPosition">
# <value value="0" nick="top"/>
# <value value="1" nick="bottom"/>
# </enum>
gsettings set org.nemo.extensions.nemo-terminal terminal-position 'top'
gsettings set org.nemo.extensions.nemo-terminal default-terminal-height '12'

9
terminal_exec Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
#
if ! gnome-terminal -- $*; then
if ! konsole -e $*; then
if ! xfce4-terminal -e $*; then
$*
fi
fi
fi

3
tmux_local Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
#
tmux attach-session -t local || tmux new-session -s local

1
wav2mp3 Executable file
View File

@ -0,0 +1 @@
lame -V 0 -F -h -b 160 $1 $2

BIN
wdfs Executable file

Binary file not shown.

18
wma2mp3 Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
# Dump wma to mp3
# from http://ocaoimh.ie/2005/08/16/how-to-convert-from-wma-to-mp3/
for src in *.wma
do
if [ -f "$src" ]
then
fifo=`echo "$src"|sed -e 's/wma$/wav/'`
rm -f "$fifo"
mkfifo "$fifo"
mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader "$src" -ao pcm:file="$fifo" &
dest=`echo "$src"|sed -e 's/wma$/mp3/'`
lame --vbr-new "$fifo" "$dest"
rm -f "$fifo"
fi
done