Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
tmp [2013-01-08 16:27] – gelöscht fzap | tmp [2019-04-16 09:51] (aktuell) – fzap | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== vfat mounten, dass Umlaute funktionieren ======= | ||
+ | <code bash> | ||
+ | sudo mount -t auto /dev/sda1 / | ||
+ | </ | ||
+ | |||
+ | ====== WiFi-QRCode mit qrencode ====== | ||
+ | <code bash> | ||
+ | $ qrencode -t SVG -o wifi.svg " | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Individuelle body id in typoscript ====== | ||
+ | <code typoscript> | ||
+ | # überschreibt den gesetzten BODY-Tag | ||
+ | page.bodyTag > | ||
+ | # CObject vom Typ TEXT | ||
+ | page.bodyTagCObject = TEXT | ||
+ | # Die ID mit der die Seite gespeichert wird wird genommen (hierum wrappen wir in der nächsten Zeile) | ||
+ | page.bodyTagCObject.field = uid | ||
+ | page.bodyTagCObject.wrap = ‹body id=" | ||
+ | </ | ||
+ | |||
+ | ====== send-hook mit Datum in mutt ====== | ||
+ | |||
+ | <code rc> | ||
+ | set record=+sent-`date +%Y` | ||
+ | </ | ||
+ | |||
+ | ergibt '' | ||
+ | |||
+ | |||
+ | |||
+ | <code rc> | ||
+ | set record=+sent-`date +%Y-%m` | ||
+ | </ | ||
+ | |||
+ | ergibt '' | ||
+ | |||
+ | |||
+ | |||
+ | ====== countdown-script ====== | ||
+ | |||
+ | countdown script | ||
+ | |||
+ | <file bash countdown> | ||
+ | #!/bin/bash | ||
+ | # | ||
+ | ############################################################################## | ||
+ | # | ||
+ | # countdown : bash script to visually count down a specified number of seconds | ||
+ | # | ||
+ | ############################################################################## | ||
+ | # | ||
+ | # This program is free software; you can redistribute it and/or | ||
+ | # modify it under the terms of the GNU General Public License | ||
+ | # as published by the Free Software Foundation; either version 2 | ||
+ | # of the License, or (at your option) any later version. | ||
+ | # | ||
+ | # This program is distributed in the hope that it will be useful, | ||
+ | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
+ | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
+ | # GNU General Public License for more details. | ||
+ | # | ||
+ | # You should have received a copy of the GNU General Public License | ||
+ | # along with this program; if not, write to the Free Software | ||
+ | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
+ | # | ||
+ | ############################################################################## | ||
+ | # | ||
+ | MY_NAME=countdown | ||
+ | MY_VERSION=1.1 | ||
+ | MY_RELDATE=2000-07-06 | ||
+ | MY_AUTHOR_NAME=" | ||
+ | MY_AUTHOR_MAIL=" | ||
+ | # | ||
+ | ############################################################################## | ||
+ | # | ||
+ | STAMP=/ | ||
+ | # | ||
+ | function init_timer() { | ||
+ | [ -f $STAMP.stop ] && rm -f $STAMP.stop 2>/ | ||
+ | echo S=`date +%s` >$STAMP | ||
+ | } | ||
+ | function run_timer() { | ||
+ | while [ ! -f $STAMP.stop ]; do | ||
+ | echo S=`date +%s` >$STAMP | ||
+ | sleep 1 | ||
+ | done | ||
+ | rm -f $STAMP $STAMP.stop | ||
+ | } | ||
+ | function stop_timer() { | ||
+ | touch $STAMP.stop | ||
+ | } | ||
+ | function clean_exit() { | ||
+ | stop_timer | ||
+ | echo " " | ||
+ | echo " | ||
+ | mpv $HOME/ | ||
+ | trap "" | ||
+ | exit 0 | ||
+ | } | ||
+ | function syntax_error() { | ||
+ | cat << | ||
+ | |||
+ | $MY_NAME $MY_VERSION ($MY_RELDATE) - bash script to visually count down | ||
+ | Copyright 2000: $MY_AUTHOR_NAME < | ||
+ | Usage: | ||
+ | |||
+ | $0 [[h] m] s | ||
+ | counts down h hours, m minutes and s seconds | ||
+ | |||
+ | EOF | ||
+ | exit 1 | ||
+ | } | ||
+ | function get_diff() { | ||
+ | let DIFF=0 | ||
+ | [ " | ||
+ | while [ " | ||
+ | let p=0 | ||
+ | [ " | ||
+ | [ $p -lt 0 ] && syntax_error | ||
+ | let DIFF=$DIFF*60+$p | ||
+ | shift | ||
+ | done | ||
+ | } | ||
+ | function display_nice() { | ||
+ | local s=$1; local h=0; local m=0; ni="" | ||
+ | [ $s -ge 3600 ] && let h=$[ s/3600 ] && let s=$[ s%3600 ] | ||
+ | [ $s -ge 60 ] && | ||
+ | [ $h -lt 10 ] && ni=" | ||
+ | [ $m -lt 10 ] && ni=" | ||
+ | [ $s -lt 10 ] && ni=" | ||
+ | echo -n " | ||
+ | } | ||
+ | # | ||
+ | # main script | ||
+ | # | ||
+ | get_diff $* | ||
+ | trap clean_exit 0 1 3 5 9 15 | ||
+ | echo " | ||
+ | if [ $DIFF -le 0 ]; then | ||
+ | echo " | ||
+ | exit 2 | ||
+ | fi | ||
+ | echo " Elapsed | ||
+ | let START=`date +%s` | ||
+ | declare -a HASH=( [0]=". " [1]="o " [2]="O " [3]="- " ) | ||
+ | compl="##################################################" | ||
+ | blank=" | ||
+ | let ha=0 | ||
+ | init_timer | ||
+ | run_timer & | ||
+ | while true; do | ||
+ | . $STAMP | ||
+ | let R=$DIFF-$S+$START | ||
+ | if [ $R -gt 0 ]; then | ||
+ | echo -n " | ||
+ | let P=$[ ($S-$START) * 100 / $DIFF ] | ||
+ | echo -ne " | ||
+ | else | ||
+ | echo -n " | ||
+ | echo -ne " | ||
+ | clean_exit | ||
+ | fi | ||
+ | let ha=$[ (ha+1) % 4 ] | ||
+ | sleep 1 | ||
+ | done | ||
+ | </ | ||
+ | ====== Checksummen prüfen ====== | ||
+ | <code shell> | ||
+ | md5sum -c md5sums 2> /dev/null | grep OK | ||
+ | </ | ||
+ | ====== Hash von Passwort bilden und nach stdout geben ====== | ||
+ | <code shell> | ||
+ | $ echo -n sehrgeheim | sha256sum | ||
+ | </ | ||
+ | |||
+ | ===== Board ===== | ||
+ | gibbet leider nicht mehr | ||
+ | |||
+ | MSI Z170A GAMING PRO CARBON Intel Z170 So.1151 Dual Channel DDR4 ATX Retail (66053) |