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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<script type="text/javasc |
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
@ECHO OFF | |
REM Windows version | |
REM call make-nxm <image-filename> rows columms [postfilter-command] | |
IF (%1)==() GOTO HELP | |
IF (%2)==() GOTO HELP | |
IF (%3)==() GOTO HELP | |
SET POSTFILTER=%~4 %~5 %~6 %~7 %~8 %~9 | |
IF (%4)==() SET POSTFILTER=-gaussian-blur 0.5x0.5 |
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 | |
# LINUX convert \( aa.png aa.png aa.png aa.png aa.png +append \) \( aa.png aa.png aa.png aa.png aa.png +append \) -append -gaussian-blur 0.5x0.5 x.png | |
# call make-nxm <image-filename> rows columms [postfilter-command] | |
if [ $# -lt 3 ] ; then | |
echo | |
echo "Create a composed n x m image from a single image" |
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 | |
d=$(pwd) | |
lastDirectoryComponent=${d##*/} | |
title=$lastDirectoryComponent | |
if [ -n "$1" ]; then | |
title="$1 ($lastDirectoryComponent)" |
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 | |
# Page watcher Cronscript | |
# initial 201804xx | |
if [ $# -lt 1 ] ; then | |
echo "pagewatcher watches an url and sends an e-mail in case of changes." | |
echo | |
echo "usage: pagewatcher.sh url [additional-mail-recipients] | clean" | |
echo |
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
convert -size 400x200 xc:none -font Hack-Bold -pointsize 25 -kerning 1 -gravity center -fill red -annotate 330x330+0+0 "Vorabzug - nicht für Veröffentlichung" -fill yellow -annotate 330x330+2+2 "Vorabzug . nicht für Veröffentlichung" WATERMARK_FILE.png | |
for i in *.jpg; do composite -dissolve 20% -tile WATERMARK_FILE.png $i ${i%.*}_x.jpg; done |
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
# Firefox lovers use | |
for i in 1 2 3 4; do firefox --headless --screenshot $i.pdf https://fahrplan.events.ccc.de/congress/2018/Fahrplan/schedule/$i.html; done | |
# Chromium lover use | |
for i in 1 2 3 4;do chromium --headless --disable-gpu --print-to-pdf=$i.pdf https://fahrplan.events.ccc.de/congress/2018/Fahrplan/schedule/$i.html;done | |
# the simple way: fetch the small B/W pdf and compose a single pdf | |
for i in 1 2 3 4; do wget https://fahrplan.events.ccc.de/congress/2018/Fahrplan/schedule/$i.pdf; done | |
# put all into one file |
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 | |
https://forums.linuxmint.com/viewtopic.php?p=1578018#p1578018 | |
The bug has been fixed in the source so fingers crossed another cinnamon update will come out fairly quickly. | |
https://github.com/linuxmint/Cinnamon/commit/c42a03a01e988ad6160187c7697425cd99992f08 | |
If not to apply the fix now download the attached patch file | |
cinnamon-desktop-editor-c42a03a.py.patch |
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
#!/usr/bin/python | |
# copy all files used in a m3u playlist to a new subdirectory | |
# and prefix the filenames with a number nnnn00 in ascending order | |
# initial version 20200206 | |
# | |
# based on ideas from https://forum.videolan.org/viewtopic.php?t=114141 | |
import os.path, shutil, sys | |
def main(): |
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
from glob import glob | |
from pydub import AudioSegment | |
i = 0 | |
for name in sorted(glob("*.mp3")): | |
i = i+1 | |
print str(i)+" "+name | |
playlist_songs = [AudioSegment.from_mp3(mp3_file) for mp3_file in sorted(glob("*.mp3"))] |
OlderNewer